TypeConversions.idl [plain text]
enum UnionType { "node", "sequence", "dictionary" };
[
NoInterfaceObject,
ImplementationLacksVTable,
ExportMacro=WEBCORE_TESTSUPPORT_EXPORT,
] interface TypeConversions {
attribute long testLong;
[EnforceRange] attribute long testEnforceRangeLong;
attribute unsigned long testUnsignedLong;
[EnforceRange] attribute unsigned long testEnforceRangeUnsignedLong;
attribute long long testLongLong;
[EnforceRange] attribute long long testEnforceRangeLongLong;
attribute unsigned long long testUnsignedLongLong;
[EnforceRange] attribute unsigned long long testEnforceRangeUnsignedLongLong;
attribute byte testByte;
[EnforceRange] attribute byte testEnforceRangeByte;
attribute octet testOctet;
[EnforceRange] attribute octet testEnforceRangeOctet;
attribute short testShort;
[EnforceRange] attribute short testEnforceRangeShort;
attribute unsigned short testUnsignedShort;
[EnforceRange] attribute unsigned short testEnforceRangeUnsignedShort;
attribute DOMString testString;
attribute ByteString testByteString;
attribute USVString testUSVString;
attribute record<DOMString, long> testLongRecord;
attribute record<USVString, Node> testNodeRecord;
attribute record<ByteString, sequence<DOMString>> testSequenceRecord;
attribute (DOMString or long or boolean or Node or sequence<long>) testUnion;
void setTypeConversionsDictionary(TypeConversionsDictionary d);
readonly attribute long typeConversionsDictionaryLongValue;
readonly attribute DOMString typeConversionsDictionaryStringValue;
readonly attribute sequence<DOMString> typeConversionsDictionarySequenceValue;
readonly attribute UnionType typeConversionsDictionaryUnionType;
};
dictionary TypeConversionsOtherDictionary {
long longValue = 0;
DOMString stringValue = "";
};
dictionary TypeConversionsDictionary {
long longValue = 0;
DOMString stringValue = "";
sequence<DOMString> sequenceValue = [];
(Node or sequence<DOMString> or TypeConversionsOtherDictionary) unionValue = null;
};