2012-10-18 01:17:16 +00:00
|
|
|
/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
|
|
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this file,
|
|
|
|
* You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
|
|
*/
|
|
|
|
[Constructor,
|
|
|
|
Constructor(DOMString str),
|
|
|
|
Constructor(unsigned long num, boolean? boolArg),
|
|
|
|
Constructor(TestInterface? iface),
|
2013-01-22 10:51:15 +00:00
|
|
|
Constructor(long arg1, IndirectlyImplementedInterface iface),
|
2015-07-01 18:15:20 +00:00
|
|
|
Constructor(Date arg1),
|
|
|
|
Constructor(ArrayBuffer arrayBuf),
|
|
|
|
Constructor(Uint8Array typedArr),
|
2013-01-22 10:51:15 +00:00
|
|
|
// Constructor(long arg1, long arg2, (TestInterface or OnlyForUseInConstructor) arg3),
|
|
|
|
NamedConstructor=Example,
|
2013-05-03 01:00:50 +00:00
|
|
|
NamedConstructor=Example(DOMString str),
|
|
|
|
NamedConstructor=Example2(DictForConstructor dict, any any1, object obj1,
|
2014-04-04 03:32:11 +00:00
|
|
|
object? obj2, sequence<Dict> seq, optional any any2,
|
2014-10-01 18:43:26 +00:00
|
|
|
optional object obj3, optional object? obj4),
|
|
|
|
NamedConstructor=Example2((long or MozMap<any>) arg1)
|
2012-10-18 01:17:16 +00:00
|
|
|
]
|
|
|
|
interface TestExampleInterface {
|
|
|
|
// Integer types
|
|
|
|
// XXXbz add tests for throwing versions of all the integer stuff
|
|
|
|
readonly attribute byte readonlyByte;
|
|
|
|
attribute byte writableByte;
|
|
|
|
void passByte(byte arg);
|
|
|
|
byte receiveByte();
|
|
|
|
void passOptionalByte(optional byte arg);
|
2013-10-11 16:28:24 +00:00
|
|
|
void passOptionalByteBeforeRequired(optional byte arg1, byte arg2);
|
2012-10-18 01:17:16 +00:00
|
|
|
void passOptionalByteWithDefault(optional byte arg = 0);
|
2013-10-11 16:28:24 +00:00
|
|
|
void passOptionalByteWithDefaultBeforeRequired(optional byte arg1 = 0, byte arg2);
|
2012-10-18 01:17:16 +00:00
|
|
|
void passNullableByte(byte? arg);
|
|
|
|
void passOptionalNullableByte(optional byte? arg);
|
2012-12-11 22:50:56 +00:00
|
|
|
void passVariadicByte(byte... arg);
|
2013-12-04 13:02:17 +00:00
|
|
|
[Cached, Pure]
|
|
|
|
readonly attribute byte cachedByte;
|
2013-12-06 18:49:44 +00:00
|
|
|
[StoreInSlot, Constant]
|
|
|
|
readonly attribute byte cachedConstantByte;
|
2013-12-05 21:31:04 +00:00
|
|
|
[Cached, Pure]
|
|
|
|
attribute byte cachedWritableByte;
|
2015-01-15 22:39:01 +00:00
|
|
|
[Affects=Nothing]
|
|
|
|
attribute byte sideEffectFreeByte;
|
|
|
|
[Affects=Nothing, DependsOn=DOMState]
|
|
|
|
attribute byte domDependentByte;
|
|
|
|
[Affects=Nothing, DependsOn=Nothing]
|
|
|
|
readonly attribute byte constantByte;
|
2015-01-15 22:39:01 +00:00
|
|
|
[DependsOn=DeviceState, Affects=Nothing]
|
|
|
|
readonly attribute byte deviceStateDependentByte;
|
2015-01-15 22:39:01 +00:00
|
|
|
[Affects=Nothing]
|
|
|
|
byte returnByteSideEffectFree();
|
|
|
|
[Affects=Nothing, DependsOn=DOMState]
|
|
|
|
byte returnDOMDependentByte();
|
|
|
|
[Affects=Nothing, DependsOn=Nothing]
|
|
|
|
byte returnConstantByte();
|
2015-01-15 22:39:01 +00:00
|
|
|
[DependsOn=DeviceState, Affects=Nothing]
|
|
|
|
byte returnDeviceStateDependentByte();
|
2012-10-18 01:17:16 +00:00
|
|
|
|
|
|
|
readonly attribute short readonlyShort;
|
|
|
|
attribute short writableShort;
|
|
|
|
void passShort(short arg);
|
|
|
|
short receiveShort();
|
|
|
|
void passOptionalShort(optional short arg);
|
|
|
|
void passOptionalShortWithDefault(optional short arg = 5);
|
|
|
|
|
|
|
|
readonly attribute long readonlyLong;
|
|
|
|
attribute long writableLong;
|
|
|
|
void passLong(long arg);
|
|
|
|
long receiveLong();
|
|
|
|
void passOptionalLong(optional long arg);
|
|
|
|
void passOptionalLongWithDefault(optional long arg = 7);
|
|
|
|
|
|
|
|
readonly attribute long long readonlyLongLong;
|
|
|
|
attribute long long writableLongLong;
|
|
|
|
void passLongLong(long long arg);
|
|
|
|
long long receiveLongLong();
|
|
|
|
void passOptionalLongLong(optional long long arg);
|
|
|
|
void passOptionalLongLongWithDefault(optional long long arg = -12);
|
|
|
|
|
|
|
|
readonly attribute octet readonlyOctet;
|
|
|
|
attribute octet writableOctet;
|
|
|
|
void passOctet(octet arg);
|
|
|
|
octet receiveOctet();
|
|
|
|
void passOptionalOctet(optional octet arg);
|
|
|
|
void passOptionalOctetWithDefault(optional octet arg = 19);
|
|
|
|
|
|
|
|
readonly attribute unsigned short readonlyUnsignedShort;
|
|
|
|
attribute unsigned short writableUnsignedShort;
|
|
|
|
void passUnsignedShort(unsigned short arg);
|
|
|
|
unsigned short receiveUnsignedShort();
|
|
|
|
void passOptionalUnsignedShort(optional unsigned short arg);
|
|
|
|
void passOptionalUnsignedShortWithDefault(optional unsigned short arg = 2);
|
|
|
|
|
|
|
|
readonly attribute unsigned long readonlyUnsignedLong;
|
|
|
|
attribute unsigned long writableUnsignedLong;
|
|
|
|
void passUnsignedLong(unsigned long arg);
|
|
|
|
unsigned long receiveUnsignedLong();
|
|
|
|
void passOptionalUnsignedLong(optional unsigned long arg);
|
|
|
|
void passOptionalUnsignedLongWithDefault(optional unsigned long arg = 6);
|
|
|
|
|
|
|
|
readonly attribute unsigned long long readonlyUnsignedLongLong;
|
|
|
|
attribute unsigned long long writableUnsignedLongLong;
|
|
|
|
void passUnsignedLongLong(unsigned long long arg);
|
|
|
|
unsigned long long receiveUnsignedLongLong();
|
|
|
|
void passOptionalUnsignedLongLong(optional unsigned long long arg);
|
|
|
|
void passOptionalUnsignedLongLongWithDefault(optional unsigned long long arg = 17);
|
|
|
|
|
2012-11-27 20:32:05 +00:00
|
|
|
attribute float writableFloat;
|
|
|
|
attribute unrestricted float writableUnrestrictedFloat;
|
|
|
|
attribute float? writableNullableFloat;
|
|
|
|
attribute unrestricted float? writableNullableUnrestrictedFloat;
|
|
|
|
attribute double writableDouble;
|
|
|
|
attribute unrestricted double writableUnrestrictedDouble;
|
|
|
|
attribute double? writableNullableDouble;
|
|
|
|
attribute unrestricted double? writableNullableUnrestrictedDouble;
|
|
|
|
void passFloat(float arg1, unrestricted float arg2,
|
|
|
|
float? arg3, unrestricted float? arg4,
|
|
|
|
double arg5, unrestricted double arg6,
|
|
|
|
double? arg7, unrestricted double? arg8,
|
|
|
|
sequence<float> arg9, sequence<unrestricted float> arg10,
|
|
|
|
sequence<float?> arg11, sequence<unrestricted float?> arg12,
|
|
|
|
sequence<double> arg13, sequence<unrestricted double> arg14,
|
|
|
|
sequence<double?> arg15, sequence<unrestricted double?> arg16);
|
|
|
|
[LenientFloat]
|
|
|
|
void passLenientFloat(float arg1, unrestricted float arg2,
|
|
|
|
float? arg3, unrestricted float? arg4,
|
|
|
|
double arg5, unrestricted double arg6,
|
|
|
|
double? arg7, unrestricted double? arg8,
|
|
|
|
sequence<float> arg9,
|
|
|
|
sequence<unrestricted float> arg10,
|
|
|
|
sequence<float?> arg11,
|
|
|
|
sequence<unrestricted float?> arg12,
|
|
|
|
sequence<double> arg13,
|
|
|
|
sequence<unrestricted double> arg14,
|
|
|
|
sequence<double?> arg15,
|
|
|
|
sequence<unrestricted double?> arg16);
|
|
|
|
[LenientFloat]
|
|
|
|
attribute float lenientFloatAttr;
|
|
|
|
[LenientFloat]
|
|
|
|
attribute double lenientDoubleAttr;
|
|
|
|
|
2012-10-18 01:17:16 +00:00
|
|
|
// Castable interface types
|
|
|
|
// XXXbz add tests for throwing versions of all the castable interface stuff
|
|
|
|
TestInterface receiveSelf();
|
|
|
|
TestInterface? receiveNullableSelf();
|
|
|
|
TestInterface receiveWeakSelf();
|
|
|
|
TestInterface? receiveWeakNullableSelf();
|
|
|
|
void passSelf(TestInterface arg);
|
|
|
|
void passNullableSelf(TestInterface? arg);
|
|
|
|
attribute TestInterface nonNullSelf;
|
|
|
|
attribute TestInterface? nullableSelf;
|
2014-02-07 02:08:29 +00:00
|
|
|
[Cached, Pure]
|
|
|
|
readonly attribute TestInterface cachedSelf;
|
2012-10-18 01:17:16 +00:00
|
|
|
// Optional arguments
|
|
|
|
void passOptionalSelf(optional TestInterface? arg);
|
|
|
|
void passOptionalNonNullSelf(optional TestInterface arg);
|
|
|
|
void passOptionalSelfWithDefault(optional TestInterface? arg = null);
|
|
|
|
|
|
|
|
// Non-wrapper-cache interface types
|
2013-09-30 16:32:22 +00:00
|
|
|
[NewObject]
|
2012-10-18 01:17:16 +00:00
|
|
|
TestNonWrapperCacheInterface receiveNonWrapperCacheInterface();
|
2013-09-30 16:32:22 +00:00
|
|
|
[NewObject]
|
2012-10-18 01:17:16 +00:00
|
|
|
TestNonWrapperCacheInterface? receiveNullableNonWrapperCacheInterface();
|
2013-09-30 16:32:22 +00:00
|
|
|
[NewObject]
|
2012-10-18 01:17:16 +00:00
|
|
|
sequence<TestNonWrapperCacheInterface> receiveNonWrapperCacheInterfaceSequence();
|
2013-09-30 16:32:22 +00:00
|
|
|
[NewObject]
|
2012-10-18 01:17:16 +00:00
|
|
|
sequence<TestNonWrapperCacheInterface?> receiveNullableNonWrapperCacheInterfaceSequence();
|
2013-09-30 16:32:22 +00:00
|
|
|
[NewObject]
|
2012-10-18 01:17:16 +00:00
|
|
|
sequence<TestNonWrapperCacheInterface>? receiveNonWrapperCacheInterfaceNullableSequence();
|
2013-09-30 16:32:22 +00:00
|
|
|
[NewObject]
|
2012-10-18 01:17:16 +00:00
|
|
|
sequence<TestNonWrapperCacheInterface?>? receiveNullableNonWrapperCacheInterfaceNullableSequence();
|
|
|
|
|
|
|
|
// Non-castable interface types
|
2013-01-08 18:05:36 +00:00
|
|
|
IndirectlyImplementedInterface receiveOther();
|
|
|
|
IndirectlyImplementedInterface? receiveNullableOther();
|
|
|
|
IndirectlyImplementedInterface receiveWeakOther();
|
|
|
|
IndirectlyImplementedInterface? receiveWeakNullableOther();
|
|
|
|
void passOther(IndirectlyImplementedInterface arg);
|
|
|
|
void passNullableOther(IndirectlyImplementedInterface? arg);
|
|
|
|
attribute IndirectlyImplementedInterface nonNullOther;
|
|
|
|
attribute IndirectlyImplementedInterface? nullableOther;
|
2012-10-18 01:17:16 +00:00
|
|
|
// Optional arguments
|
2013-01-08 18:05:36 +00:00
|
|
|
void passOptionalOther(optional IndirectlyImplementedInterface? arg);
|
|
|
|
void passOptionalNonNullOther(optional IndirectlyImplementedInterface arg);
|
|
|
|
void passOptionalOtherWithDefault(optional IndirectlyImplementedInterface? arg = null);
|
2012-10-18 01:17:16 +00:00
|
|
|
|
|
|
|
// External interface types
|
|
|
|
TestExternalInterface receiveExternal();
|
|
|
|
TestExternalInterface? receiveNullableExternal();
|
|
|
|
TestExternalInterface receiveWeakExternal();
|
|
|
|
TestExternalInterface? receiveWeakNullableExternal();
|
|
|
|
void passExternal(TestExternalInterface arg);
|
|
|
|
void passNullableExternal(TestExternalInterface? arg);
|
|
|
|
attribute TestExternalInterface nonNullExternal;
|
|
|
|
attribute TestExternalInterface? nullableExternal;
|
|
|
|
// Optional arguments
|
|
|
|
void passOptionalExternal(optional TestExternalInterface? arg);
|
|
|
|
void passOptionalNonNullExternal(optional TestExternalInterface arg);
|
|
|
|
void passOptionalExternalWithDefault(optional TestExternalInterface? arg = null);
|
|
|
|
|
|
|
|
// Callback interface types
|
|
|
|
TestCallbackInterface receiveCallbackInterface();
|
|
|
|
TestCallbackInterface? receiveNullableCallbackInterface();
|
|
|
|
TestCallbackInterface receiveWeakCallbackInterface();
|
|
|
|
TestCallbackInterface? receiveWeakNullableCallbackInterface();
|
|
|
|
void passCallbackInterface(TestCallbackInterface arg);
|
|
|
|
void passNullableCallbackInterface(TestCallbackInterface? arg);
|
|
|
|
attribute TestCallbackInterface nonNullCallbackInterface;
|
|
|
|
attribute TestCallbackInterface? nullableCallbackInterface;
|
|
|
|
// Optional arguments
|
|
|
|
void passOptionalCallbackInterface(optional TestCallbackInterface? arg);
|
|
|
|
void passOptionalNonNullCallbackInterface(optional TestCallbackInterface arg);
|
|
|
|
void passOptionalCallbackInterfaceWithDefault(optional TestCallbackInterface? arg = null);
|
|
|
|
|
|
|
|
// Miscellaneous interface tests
|
|
|
|
IndirectlyImplementedInterface receiveConsequentialInterface();
|
|
|
|
void passConsequentialInterface(IndirectlyImplementedInterface arg);
|
|
|
|
|
|
|
|
// Sequence types
|
2013-12-04 13:02:18 +00:00
|
|
|
[Cached, Pure]
|
|
|
|
readonly attribute sequence<long> readonlySequence;
|
2013-12-05 16:39:50 +00:00
|
|
|
[Cached, Pure]
|
|
|
|
readonly attribute sequence<Dict> readonlySequenceOfDictionaries;
|
2013-12-05 21:07:33 +00:00
|
|
|
[Cached, Pure]
|
|
|
|
readonly attribute sequence<Dict>? readonlyNullableSequenceOfDictionaries;
|
2013-12-16 18:06:35 +00:00
|
|
|
[Cached, Pure, Frozen]
|
|
|
|
readonly attribute sequence<long> readonlyFrozenSequence;
|
|
|
|
[Cached, Pure, Frozen]
|
|
|
|
readonly attribute sequence<long>? readonlyFrozenNullableSequence;
|
2012-10-18 01:17:16 +00:00
|
|
|
sequence<long> receiveSequence();
|
|
|
|
sequence<long>? receiveNullableSequence();
|
|
|
|
sequence<long?> receiveSequenceOfNullableInts();
|
|
|
|
sequence<long?>? receiveNullableSequenceOfNullableInts();
|
|
|
|
void passSequence(sequence<long> arg);
|
|
|
|
void passNullableSequence(sequence<long>? arg);
|
|
|
|
void passSequenceOfNullableInts(sequence<long?> arg);
|
|
|
|
void passOptionalSequenceOfNullableInts(optional sequence<long?> arg);
|
|
|
|
void passOptionalNullableSequenceOfNullableInts(optional sequence<long?>? arg);
|
|
|
|
sequence<TestInterface> receiveCastableObjectSequence();
|
|
|
|
sequence<TestCallbackInterface> receiveCallbackObjectSequence();
|
|
|
|
sequence<TestInterface?> receiveNullableCastableObjectSequence();
|
|
|
|
sequence<TestCallbackInterface?> receiveNullableCallbackObjectSequence();
|
|
|
|
sequence<TestInterface>? receiveCastableObjectNullableSequence();
|
|
|
|
sequence<TestInterface?>? receiveNullableCastableObjectNullableSequence();
|
|
|
|
sequence<TestInterface> receiveWeakCastableObjectSequence();
|
|
|
|
sequence<TestInterface?> receiveWeakNullableCastableObjectSequence();
|
|
|
|
sequence<TestInterface>? receiveWeakCastableObjectNullableSequence();
|
|
|
|
sequence<TestInterface?>? receiveWeakNullableCastableObjectNullableSequence();
|
|
|
|
void passCastableObjectSequence(sequence<TestInterface> arg);
|
|
|
|
void passNullableCastableObjectSequence(sequence<TestInterface?> arg);
|
|
|
|
void passCastableObjectNullableSequence(sequence<TestInterface>? arg);
|
|
|
|
void passNullableCastableObjectNullableSequence(sequence<TestInterface?>? arg);
|
|
|
|
void passOptionalSequence(optional sequence<long> arg);
|
2014-06-23 20:03:57 +00:00
|
|
|
void passOptionalSequenceWithDefaultValue(optional sequence<long> arg = []);
|
2012-10-18 01:17:16 +00:00
|
|
|
void passOptionalNullableSequence(optional sequence<long>? arg);
|
|
|
|
void passOptionalNullableSequenceWithDefaultValue(optional sequence<long>? arg = null);
|
2014-06-23 20:03:57 +00:00
|
|
|
void passOptionalNullableSequenceWithDefaultValue2(optional sequence<long>? arg = []);
|
2012-10-18 01:17:16 +00:00
|
|
|
void passOptionalObjectSequence(optional sequence<TestInterface> arg);
|
2012-11-27 20:20:40 +00:00
|
|
|
void passExternalInterfaceSequence(sequence<TestExternalInterface> arg);
|
|
|
|
void passNullableExternalInterfaceSequence(sequence<TestExternalInterface?> arg);
|
2012-10-18 01:17:16 +00:00
|
|
|
|
|
|
|
sequence<DOMString> receiveStringSequence();
|
|
|
|
void passStringSequence(sequence<DOMString> arg);
|
|
|
|
|
2013-06-13 05:18:35 +00:00
|
|
|
sequence<ByteString> receiveByteStringSequence();
|
|
|
|
void passByteStringSequence(sequence<ByteString> arg);
|
|
|
|
|
2012-10-18 01:17:16 +00:00
|
|
|
sequence<any> receiveAnySequence();
|
|
|
|
sequence<any>? receiveNullableAnySequence();
|
2013-05-16 16:36:55 +00:00
|
|
|
//XXXbz No support for sequence of sequence return values yet.
|
|
|
|
//sequence<sequence<any>> receiveAnySequenceSequence();
|
|
|
|
|
|
|
|
sequence<object> receiveObjectSequence();
|
|
|
|
sequence<object?> receiveNullableObjectSequence();
|
2012-10-18 01:17:16 +00:00
|
|
|
|
2013-03-02 06:07:43 +00:00
|
|
|
void passSequenceOfSequences(sequence<sequence<long>> arg);
|
2015-02-09 16:42:27 +00:00
|
|
|
void passSequenceOfSequencesOfSequences(sequence<sequence<sequence<long>>> arg);
|
2013-04-03 00:20:38 +00:00
|
|
|
//XXXbz No support for sequence of sequence return values yet.
|
|
|
|
//sequence<sequence<long>> receiveSequenceOfSequences();
|
2013-03-02 06:07:43 +00:00
|
|
|
|
2014-05-23 21:32:39 +00:00
|
|
|
// MozMap types
|
|
|
|
void passMozMap(MozMap<long> arg);
|
|
|
|
void passNullableMozMap(MozMap<long>? arg);
|
|
|
|
void passMozMapOfNullableInts(MozMap<long?> arg);
|
|
|
|
void passOptionalMozMapOfNullableInts(optional MozMap<long?> arg);
|
|
|
|
void passOptionalNullableMozMapOfNullableInts(optional MozMap<long?>? arg);
|
|
|
|
void passCastableObjectMozMap(MozMap<TestInterface> arg);
|
|
|
|
void passNullableCastableObjectMozMap(MozMap<TestInterface?> arg);
|
|
|
|
void passCastableObjectNullableMozMap(MozMap<TestInterface>? arg);
|
|
|
|
void passNullableCastableObjectNullableMozMap(MozMap<TestInterface?>? arg);
|
|
|
|
void passOptionalMozMap(optional MozMap<long> arg);
|
|
|
|
void passOptionalNullableMozMap(optional MozMap<long>? arg);
|
|
|
|
void passOptionalNullableMozMapWithDefaultValue(optional MozMap<long>? arg = null);
|
|
|
|
void passOptionalObjectMozMap(optional MozMap<TestInterface> arg);
|
|
|
|
void passExternalInterfaceMozMap(MozMap<TestExternalInterface> arg);
|
|
|
|
void passNullableExternalInterfaceMozMap(MozMap<TestExternalInterface?> arg);
|
|
|
|
void passStringMozMap(MozMap<DOMString> arg);
|
|
|
|
void passByteStringMozMap(MozMap<ByteString> arg);
|
|
|
|
void passMozMapOfMozMaps(MozMap<MozMap<long>> arg);
|
|
|
|
MozMap<long> receiveMozMap();
|
|
|
|
MozMap<long>? receiveNullableMozMap();
|
|
|
|
MozMap<long?> receiveMozMapOfNullableInts();
|
|
|
|
MozMap<long?>? receiveNullableMozMapOfNullableInts();
|
|
|
|
//XXXbz No support for MozMap of MozMaps return values yet.
|
|
|
|
//MozMap<MozMap<long>> receiveMozMapOfMozMaps();
|
|
|
|
MozMap<any> receiveAnyMozMap();
|
|
|
|
|
2012-10-18 01:17:16 +00:00
|
|
|
// Typed array types
|
|
|
|
void passArrayBuffer(ArrayBuffer arg);
|
|
|
|
void passNullableArrayBuffer(ArrayBuffer? arg);
|
|
|
|
void passOptionalArrayBuffer(optional ArrayBuffer arg);
|
|
|
|
void passOptionalNullableArrayBuffer(optional ArrayBuffer? arg);
|
|
|
|
void passOptionalNullableArrayBufferWithDefaultValue(optional ArrayBuffer? arg= null);
|
|
|
|
void passArrayBufferView(ArrayBufferView arg);
|
|
|
|
void passInt8Array(Int8Array arg);
|
|
|
|
void passInt16Array(Int16Array arg);
|
|
|
|
void passInt32Array(Int32Array arg);
|
|
|
|
void passUint8Array(Uint8Array arg);
|
|
|
|
void passUint16Array(Uint16Array arg);
|
|
|
|
void passUint32Array(Uint32Array arg);
|
|
|
|
void passUint8ClampedArray(Uint8ClampedArray arg);
|
|
|
|
void passFloat32Array(Float32Array arg);
|
|
|
|
void passFloat64Array(Float64Array arg);
|
2013-08-05 17:40:02 +00:00
|
|
|
void passSequenceOfArrayBuffers(sequence<ArrayBuffer> arg);
|
|
|
|
void passSequenceOfNullableArrayBuffers(sequence<ArrayBuffer?> arg);
|
2014-05-23 21:32:39 +00:00
|
|
|
void passMozMapOfArrayBuffers(MozMap<ArrayBuffer> arg);
|
|
|
|
void passMozMapOfNullableArrayBuffers(MozMap<ArrayBuffer?> arg);
|
2013-08-05 17:40:02 +00:00
|
|
|
void passVariadicTypedArray(Float32Array... arg);
|
|
|
|
void passVariadicNullableTypedArray(Float32Array?... arg);
|
2012-10-18 01:17:16 +00:00
|
|
|
Uint8Array receiveUint8Array();
|
2014-08-25 19:07:45 +00:00
|
|
|
attribute Uint8Array uint8ArrayAttr;
|
2012-10-18 01:17:16 +00:00
|
|
|
|
2013-06-13 05:18:35 +00:00
|
|
|
// DOMString types
|
2012-10-18 01:17:16 +00:00
|
|
|
void passString(DOMString arg);
|
|
|
|
void passNullableString(DOMString? arg);
|
|
|
|
void passOptionalString(optional DOMString arg);
|
|
|
|
void passOptionalStringWithDefaultValue(optional DOMString arg = "abc");
|
|
|
|
void passOptionalNullableString(optional DOMString? arg);
|
|
|
|
void passOptionalNullableStringWithDefaultValue(optional DOMString? arg = null);
|
2012-12-11 22:50:56 +00:00
|
|
|
void passVariadicString(DOMString... arg);
|
2012-10-18 01:17:16 +00:00
|
|
|
|
2013-06-13 05:18:35 +00:00
|
|
|
// ByteString types
|
|
|
|
void passByteString(ByteString arg);
|
|
|
|
void passNullableByteString(ByteString? arg);
|
|
|
|
void passOptionalByteString(optional ByteString arg);
|
|
|
|
void passOptionalNullableByteString(optional ByteString? arg);
|
|
|
|
void passVariadicByteString(ByteString... arg);
|
2014-06-19 00:22:09 +00:00
|
|
|
void passUnionByteString((ByteString or long) arg);
|
2013-06-13 05:18:35 +00:00
|
|
|
|
2014-11-20 11:58:00 +00:00
|
|
|
// USVString types
|
|
|
|
void passSVS(USVString arg);
|
|
|
|
void passNullableSVS(USVString? arg);
|
|
|
|
void passOptionalSVS(optional USVString arg);
|
|
|
|
void passOptionalSVSWithDefaultValue(optional USVString arg = "abc");
|
|
|
|
void passOptionalNullableSVS(optional USVString? arg);
|
|
|
|
void passOptionalNullableSVSWithDefaultValue(optional USVString? arg = null);
|
|
|
|
void passVariadicSVS(USVString... arg);
|
|
|
|
USVString receiveSVS();
|
2014-08-01 20:23:48 +00:00
|
|
|
|
2012-10-18 01:17:16 +00:00
|
|
|
// Enumerated types
|
|
|
|
void passEnum(TestEnum arg);
|
2013-04-20 03:04:19 +00:00
|
|
|
void passNullableEnum(TestEnum? arg);
|
2012-10-18 01:17:16 +00:00
|
|
|
void passOptionalEnum(optional TestEnum arg);
|
|
|
|
void passEnumWithDefault(optional TestEnum arg = "a");
|
2013-04-20 03:04:19 +00:00
|
|
|
void passOptionalNullableEnum(optional TestEnum? arg);
|
|
|
|
void passOptionalNullableEnumWithDefaultValue(optional TestEnum? arg = null);
|
|
|
|
void passOptionalNullableEnumWithDefaultValue2(optional TestEnum? arg = "a");
|
2012-10-18 01:17:16 +00:00
|
|
|
TestEnum receiveEnum();
|
2013-04-20 03:04:19 +00:00
|
|
|
TestEnum? receiveNullableEnum();
|
2012-10-18 01:17:16 +00:00
|
|
|
attribute TestEnum enumAttribute;
|
|
|
|
readonly attribute TestEnum readonlyEnumAttribute;
|
|
|
|
|
|
|
|
// Callback types
|
|
|
|
void passCallback(TestCallback arg);
|
|
|
|
void passNullableCallback(TestCallback? arg);
|
|
|
|
void passOptionalCallback(optional TestCallback arg);
|
|
|
|
void passOptionalNullableCallback(optional TestCallback? arg);
|
|
|
|
void passOptionalNullableCallbackWithDefaultValue(optional TestCallback? arg = null);
|
|
|
|
TestCallback receiveCallback();
|
|
|
|
TestCallback? receiveNullableCallback();
|
|
|
|
void passNullableTreatAsNullCallback(TestTreatAsNullCallback? arg);
|
|
|
|
void passOptionalNullableTreatAsNullCallback(optional TestTreatAsNullCallback? arg);
|
|
|
|
void passOptionalNullableTreatAsNullCallbackWithDefaultValue(optional TestTreatAsNullCallback? arg = null);
|
|
|
|
|
|
|
|
// Any types
|
|
|
|
void passAny(any arg);
|
2013-05-16 16:36:55 +00:00
|
|
|
void passVariadicAny(any... arg);
|
2014-04-04 03:32:11 +00:00
|
|
|
void passOptionalAny(optional any arg);
|
2012-10-18 01:17:16 +00:00
|
|
|
void passAnyDefaultNull(optional any arg = null);
|
2013-05-16 16:36:55 +00:00
|
|
|
void passSequenceOfAny(sequence<any> arg);
|
|
|
|
void passNullableSequenceOfAny(sequence<any>? arg);
|
|
|
|
void passOptionalSequenceOfAny(optional sequence<any> arg);
|
|
|
|
void passOptionalNullableSequenceOfAny(optional sequence<any>? arg);
|
|
|
|
void passOptionalSequenceOfAnyWithDefaultValue(optional sequence<any>? arg = null);
|
|
|
|
void passSequenceOfSequenceOfAny(sequence<sequence<any>> arg);
|
|
|
|
void passSequenceOfNullableSequenceOfAny(sequence<sequence<any>?> arg);
|
|
|
|
void passNullableSequenceOfNullableSequenceOfAny(sequence<sequence<any>?>? arg);
|
|
|
|
void passOptionalNullableSequenceOfNullableSequenceOfAny(optional sequence<sequence<any>?>? arg);
|
2014-05-23 21:32:39 +00:00
|
|
|
void passMozMapOfAny(MozMap<any> arg);
|
|
|
|
void passNullableMozMapOfAny(MozMap<any>? arg);
|
|
|
|
void passOptionalMozMapOfAny(optional MozMap<any> arg);
|
|
|
|
void passOptionalNullableMozMapOfAny(optional MozMap<any>? arg);
|
|
|
|
void passOptionalMozMapOfAnyWithDefaultValue(optional MozMap<any>? arg = null);
|
|
|
|
void passMozMapOfMozMapOfAny(MozMap<MozMap<any>> arg);
|
|
|
|
void passMozMapOfNullableMozMapOfAny(MozMap<MozMap<any>?> arg);
|
|
|
|
void passNullableMozMapOfNullableMozMapOfAny(MozMap<MozMap<any>?>? arg);
|
|
|
|
void passOptionalNullableMozMapOfNullableMozMapOfAny(optional MozMap<MozMap<any>?>? arg);
|
|
|
|
void passOptionalNullableMozMapOfNullableSequenceOfAny(optional MozMap<sequence<any>?>? arg);
|
|
|
|
void passOptionalNullableSequenceOfNullableMozMapOfAny(optional sequence<MozMap<any>?>? arg);
|
2012-10-18 01:17:16 +00:00
|
|
|
any receiveAny();
|
|
|
|
|
|
|
|
// object types
|
|
|
|
void passObject(object arg);
|
2013-05-16 16:36:55 +00:00
|
|
|
void passVariadicObject(object... arg);
|
2012-10-18 01:17:16 +00:00
|
|
|
void passNullableObject(object? arg);
|
2013-05-16 16:36:55 +00:00
|
|
|
void passVariadicNullableObject(object... arg);
|
2012-10-18 01:17:16 +00:00
|
|
|
void passOptionalObject(optional object arg);
|
|
|
|
void passOptionalNullableObject(optional object? arg);
|
|
|
|
void passOptionalNullableObjectWithDefaultValue(optional object? arg = null);
|
2013-05-16 16:36:55 +00:00
|
|
|
void passSequenceOfObject(sequence<object> arg);
|
|
|
|
void passSequenceOfNullableObject(sequence<object?> arg);
|
2013-08-29 04:30:05 +00:00
|
|
|
void passNullableSequenceOfObject(sequence<object>? arg);
|
2013-05-16 16:36:55 +00:00
|
|
|
void passOptionalNullableSequenceOfNullableSequenceOfObject(optional sequence<sequence<object>?>? arg);
|
|
|
|
void passOptionalNullableSequenceOfNullableSequenceOfNullableObject(optional sequence<sequence<object?>?>? arg);
|
2014-05-23 21:32:39 +00:00
|
|
|
void passMozMapOfObject(MozMap<object> arg);
|
2012-10-18 01:17:16 +00:00
|
|
|
object receiveObject();
|
|
|
|
object? receiveNullableObject();
|
|
|
|
|
|
|
|
// Union types
|
|
|
|
void passUnion((object or long) arg);
|
2013-09-26 04:05:00 +00:00
|
|
|
// Some union tests are debug-only to avoid creating all those
|
|
|
|
// unused union types in opt builds.
|
|
|
|
#ifdef DEBUG
|
|
|
|
void passUnion2((long or boolean) arg);
|
2013-07-30 17:39:35 +00:00
|
|
|
void passUnion3((object or long or boolean) arg);
|
|
|
|
void passUnion4((Node or long or boolean) arg);
|
|
|
|
void passUnion5((object or boolean) arg);
|
|
|
|
void passUnion6((object or DOMString) arg);
|
|
|
|
void passUnion7((object or DOMString or long) arg);
|
|
|
|
void passUnion8((object or DOMString or boolean) arg);
|
2013-09-26 04:05:00 +00:00
|
|
|
void passUnion9((object or DOMString or long or boolean) arg);
|
2013-09-26 04:05:00 +00:00
|
|
|
void passUnion10(optional (EventInit or long) arg);
|
|
|
|
void passUnion11(optional (CustomEventInit or long) arg);
|
2013-10-28 04:33:15 +00:00
|
|
|
void passUnion12(optional (EventInit or long) arg = 5);
|
|
|
|
void passUnion13(optional (object or long?) arg = null);
|
|
|
|
void passUnion14(optional (object or long?) arg = 5);
|
2014-06-23 20:03:57 +00:00
|
|
|
void passUnion15((sequence<long> or long) arg);
|
|
|
|
void passUnion16(optional (sequence<long> or long) arg);
|
|
|
|
void passUnion17(optional (sequence<long>? or long) arg = 5);
|
|
|
|
void passUnion18((sequence<object> or long) arg);
|
|
|
|
void passUnion19(optional (sequence<object> or long) arg);
|
2014-06-23 20:03:58 +00:00
|
|
|
void passUnion20(optional (sequence<object> or long) arg = []);
|
2014-06-23 20:03:58 +00:00
|
|
|
void passUnion21((MozMap<long> or long) arg);
|
|
|
|
void passUnion22((MozMap<object> or long) arg);
|
2014-09-08 15:28:57 +00:00
|
|
|
void passUnion23((sequence<ImageData> or long) arg);
|
|
|
|
void passUnion24((sequence<ImageData?> or long) arg);
|
|
|
|
void passUnion25((sequence<sequence<ImageData>> or long) arg);
|
|
|
|
void passUnion26((sequence<sequence<ImageData?>> or long) arg);
|
2014-09-24 13:11:30 +00:00
|
|
|
void passUnion27(optional (sequence<DOMString> or EventInit) arg);
|
|
|
|
void passUnion28(optional (EventInit or sequence<DOMString>) arg);
|
2014-03-14 18:51:06 +00:00
|
|
|
void passUnionWithCallback((EventHandler or long) arg);
|
2014-08-01 20:23:48 +00:00
|
|
|
void passUnionWithByteString((ByteString or long) arg);
|
2014-06-25 17:25:09 +00:00
|
|
|
void passUnionWithMozMap((MozMap<DOMString> or DOMString) arg);
|
|
|
|
void passUnionWithMozMapAndSequence((MozMap<DOMString> or sequence<DOMString>) arg);
|
|
|
|
void passUnionWithSequenceAndMozMap((sequence<DOMString> or MozMap<DOMString>) arg);
|
2014-11-20 11:58:00 +00:00
|
|
|
void passUnionWithSVS((USVString or long) arg);
|
2013-09-26 04:05:00 +00:00
|
|
|
#endif
|
2012-10-18 01:17:16 +00:00
|
|
|
void passUnionWithNullable((object? or long) arg);
|
|
|
|
void passNullableUnion((object or long)? arg);
|
|
|
|
void passOptionalUnion(optional (object or long) arg);
|
|
|
|
void passOptionalNullableUnion(optional (object or long)? arg);
|
|
|
|
void passOptionalNullableUnionWithDefaultValue(optional (object or long)? arg = null);
|
|
|
|
//void passUnionWithInterfaces((TestInterface or TestExternalInterface) arg);
|
|
|
|
//void passUnionWithInterfacesAndNullable((TestInterface? or TestExternalInterface) arg);
|
|
|
|
//void passUnionWithSequence((sequence<object> or long) arg);
|
|
|
|
void passUnionWithArrayBuffer((ArrayBuffer or long) arg);
|
|
|
|
void passUnionWithString((DOMString or object) arg);
|
|
|
|
//void passUnionWithEnum((TestEnum or object) arg);
|
2012-11-09 15:43:58 +00:00
|
|
|
// Trying to use a callback in a union won't include the test
|
|
|
|
// headers, unfortunately, so won't compile.
|
|
|
|
// void passUnionWithCallback((TestCallback or long) arg);
|
2012-10-18 01:17:16 +00:00
|
|
|
void passUnionWithObject((object or long) arg);
|
|
|
|
//void passUnionWithDict((Dict or long) arg);
|
|
|
|
|
2013-08-30 03:29:38 +00:00
|
|
|
void passUnionWithDefaultValue1(optional (double or DOMString) arg = "");
|
|
|
|
void passUnionWithDefaultValue2(optional (double or DOMString) arg = 1);
|
|
|
|
void passUnionWithDefaultValue3(optional (double or DOMString) arg = 1.5);
|
|
|
|
void passUnionWithDefaultValue4(optional (float or DOMString) arg = "");
|
|
|
|
void passUnionWithDefaultValue5(optional (float or DOMString) arg = 1);
|
|
|
|
void passUnionWithDefaultValue6(optional (float or DOMString) arg = 1.5);
|
|
|
|
void passUnionWithDefaultValue7(optional (unrestricted double or DOMString) arg = "");
|
|
|
|
void passUnionWithDefaultValue8(optional (unrestricted double or DOMString) arg = 1);
|
|
|
|
void passUnionWithDefaultValue9(optional (unrestricted double or DOMString) arg = 1.5);
|
|
|
|
void passUnionWithDefaultValue10(optional (unrestricted double or DOMString) arg = Infinity);
|
|
|
|
void passUnionWithDefaultValue11(optional (unrestricted float or DOMString) arg = "");
|
|
|
|
void passUnionWithDefaultValue12(optional (unrestricted float or DOMString) arg = 1);
|
|
|
|
void passUnionWithDefaultValue13(optional (unrestricted float or DOMString) arg = Infinity);
|
|
|
|
|
|
|
|
void passNullableUnionWithDefaultValue1(optional (double or DOMString)? arg = "");
|
|
|
|
void passNullableUnionWithDefaultValue2(optional (double or DOMString)? arg = 1);
|
|
|
|
void passNullableUnionWithDefaultValue3(optional (double or DOMString)? arg = null);
|
|
|
|
void passNullableUnionWithDefaultValue4(optional (float or DOMString)? arg = "");
|
|
|
|
void passNullableUnionWithDefaultValue5(optional (float or DOMString)? arg = 1);
|
|
|
|
void passNullableUnionWithDefaultValue6(optional (float or DOMString)? arg = null);
|
|
|
|
void passNullableUnionWithDefaultValue7(optional (unrestricted double or DOMString)? arg = "");
|
|
|
|
void passNullableUnionWithDefaultValue8(optional (unrestricted double or DOMString)? arg = 1);
|
|
|
|
void passNullableUnionWithDefaultValue9(optional (unrestricted double or DOMString)? arg = null);
|
|
|
|
void passNullableUnionWithDefaultValue10(optional (unrestricted float or DOMString)? arg = "");
|
|
|
|
void passNullableUnionWithDefaultValue11(optional (unrestricted float or DOMString)? arg = 1);
|
|
|
|
void passNullableUnionWithDefaultValue12(optional (unrestricted float or DOMString)? arg = null);
|
|
|
|
|
2013-12-12 21:11:56 +00:00
|
|
|
void passSequenceOfUnions(sequence<(CanvasPattern or CanvasGradient)> arg);
|
2014-03-14 18:51:22 +00:00
|
|
|
void passSequenceOfUnions2(sequence<(object or long)> arg);
|
2013-12-12 21:11:56 +00:00
|
|
|
void passVariadicUnion((CanvasPattern or CanvasGradient)... arg);
|
|
|
|
|
2013-12-18 16:20:43 +00:00
|
|
|
void passSequenceOfNullableUnions(sequence<(CanvasPattern or CanvasGradient)?> arg);
|
|
|
|
void passVariadicNullableUnion((CanvasPattern or CanvasGradient)?... arg);
|
2014-05-23 21:32:39 +00:00
|
|
|
void passMozMapOfUnions(MozMap<(CanvasPattern or CanvasGradient)> arg);
|
|
|
|
// XXXbz no move constructor on some unions
|
|
|
|
// void passMozMapOfUnions2(MozMap<(object or long)> arg);
|
2013-12-18 16:20:43 +00:00
|
|
|
|
2014-08-19 15:41:26 +00:00
|
|
|
(CanvasPattern or CanvasGradient) receiveUnion();
|
|
|
|
(object or long) receiveUnion2();
|
|
|
|
(CanvasPattern? or CanvasGradient) receiveUnionContainingNull();
|
|
|
|
(CanvasPattern or CanvasGradient)? receiveNullableUnion();
|
|
|
|
(object or long)? receiveNullableUnion2();
|
|
|
|
|
|
|
|
attribute (CanvasPattern or CanvasGradient) writableUnion;
|
|
|
|
attribute (CanvasPattern? or CanvasGradient) writableUnionContainingNull;
|
|
|
|
attribute (CanvasPattern or CanvasGradient)? writableNullableUnion;
|
2013-07-26 18:25:54 +00:00
|
|
|
|
2013-05-02 18:38:20 +00:00
|
|
|
// Date types
|
|
|
|
void passDate(Date arg);
|
|
|
|
void passNullableDate(Date? arg);
|
|
|
|
void passOptionalDate(optional Date arg);
|
|
|
|
void passOptionalNullableDate(optional Date? arg);
|
|
|
|
void passOptionalNullableDateWithDefaultValue(optional Date? arg = null);
|
|
|
|
void passDateSequence(sequence<Date> arg);
|
|
|
|
void passNullableDateSequence(sequence<Date?> arg);
|
2014-05-23 21:32:39 +00:00
|
|
|
void passDateMozMap(MozMap<Date> arg);
|
2013-05-02 18:38:20 +00:00
|
|
|
Date receiveDate();
|
|
|
|
Date? receiveNullableDate();
|
|
|
|
|
2015-07-31 17:30:55 +00:00
|
|
|
// Promise types
|
|
|
|
void passPromise(Promise<any> arg);
|
|
|
|
void passNullablePromise(Promise<any>? arg);
|
|
|
|
void passOptionalPromise(optional Promise<any> arg);
|
|
|
|
void passOptionalNullablePromise(optional Promise<any>? arg);
|
|
|
|
void passOptionalNullablePromiseWithDefaultValue(optional Promise<any>? arg = null);
|
|
|
|
void passPromiseSequence(sequence<Promise<any>> arg);
|
|
|
|
void passNullablePromiseSequence(sequence<Promise<any>?> arg);
|
|
|
|
Promise<any> receivePromise();
|
|
|
|
Promise<any> receiveAddrefedPromise();
|
|
|
|
|
2012-10-18 01:17:16 +00:00
|
|
|
// binaryNames tests
|
|
|
|
void methodRenamedFrom();
|
2014-09-20 02:58:26 +00:00
|
|
|
[BinaryName="otherMethodRenamedTo"]
|
|
|
|
void otherMethodRenamedFrom();
|
2012-10-18 01:17:16 +00:00
|
|
|
void methodRenamedFrom(byte argument);
|
|
|
|
readonly attribute byte attributeGetterRenamedFrom;
|
|
|
|
attribute byte attributeRenamedFrom;
|
2014-09-20 02:58:26 +00:00
|
|
|
[BinaryName="otherAttributeRenamedTo"]
|
|
|
|
attribute byte otherAttributeRenamedFrom;
|
2012-10-18 01:17:16 +00:00
|
|
|
|
|
|
|
void passDictionary(optional Dict x);
|
2015-04-17 16:13:25 +00:00
|
|
|
void passDictionary2(Dict x);
|
2014-02-05 18:38:16 +00:00
|
|
|
[Cached, Pure]
|
|
|
|
readonly attribute Dict readonlyDictionary;
|
|
|
|
[Cached, Pure]
|
|
|
|
readonly attribute Dict? readonlyNullableDictionary;
|
|
|
|
[Cached, Pure]
|
|
|
|
attribute Dict writableDictionary;
|
|
|
|
[Cached, Pure, Frozen]
|
|
|
|
readonly attribute Dict readonlyFrozenDictionary;
|
|
|
|
[Cached, Pure, Frozen]
|
|
|
|
readonly attribute Dict? readonlyFrozenNullableDictionary;
|
|
|
|
[Cached, Pure, Frozen]
|
|
|
|
attribute Dict writableFrozenDictionary;
|
2013-12-05 16:39:50 +00:00
|
|
|
Dict receiveDictionary();
|
|
|
|
Dict? receiveNullableDictionary();
|
2012-10-18 01:17:16 +00:00
|
|
|
void passOtherDictionary(optional GrandparentDict x);
|
|
|
|
void passSequenceOfDictionaries(sequence<Dict> x);
|
2014-05-23 21:32:39 +00:00
|
|
|
void passMozMapOfDictionaries(MozMap<GrandparentDict> x);
|
2013-05-16 16:36:55 +00:00
|
|
|
// No support for nullable dictionaries inside a sequence (nor should there be)
|
|
|
|
// void passSequenceOfNullableDictionaries(sequence<Dict?> x);
|
2012-10-18 01:17:16 +00:00
|
|
|
void passDictionaryOrLong(optional Dict x);
|
|
|
|
void passDictionaryOrLong(long x);
|
|
|
|
|
|
|
|
void passDictContainingDict(optional DictContainingDict arg);
|
|
|
|
void passDictContainingSequence(optional DictContainingSequence arg);
|
2013-12-05 16:39:50 +00:00
|
|
|
DictContainingSequence receiveDictContainingSequence();
|
2014-09-19 04:02:33 +00:00
|
|
|
void passVariadicDictionary(Dict... arg);
|
2012-10-18 01:17:16 +00:00
|
|
|
|
|
|
|
// EnforceRange/Clamp tests
|
|
|
|
void dontEnforceRangeOrClamp(byte arg);
|
|
|
|
void doEnforceRange([EnforceRange] byte arg);
|
|
|
|
void doClamp([Clamp] byte arg);
|
2013-09-10 02:10:45 +00:00
|
|
|
[EnforceRange] attribute byte enforcedByte;
|
|
|
|
[Clamp] attribute byte clampedByte;
|
2012-10-18 01:17:16 +00:00
|
|
|
|
|
|
|
// Typedefs
|
|
|
|
const myLong myLongConstant = 5;
|
|
|
|
void exerciseTypedefInterfaces1(AnotherNameForTestInterface arg);
|
|
|
|
AnotherNameForTestInterface exerciseTypedefInterfaces2(NullableTestInterface arg);
|
|
|
|
void exerciseTypedefInterfaces3(YetAnotherNameForTestInterface arg);
|
|
|
|
|
2015-04-14 15:03:49 +00:00
|
|
|
// Deprecated methods and attributes
|
|
|
|
[Deprecated="GetAttributeNode"]
|
|
|
|
attribute boolean deprecatedAttribute;
|
|
|
|
[Deprecated="GetAttributeNode"]
|
|
|
|
void deprecatedMethod(boolean arg);
|
|
|
|
[Deprecated="GetAttributeNode"]
|
|
|
|
void deprecatedMethodWithContext(any arg);
|
|
|
|
|
2012-10-19 07:34:28 +00:00
|
|
|
// Static methods and attributes
|
|
|
|
static attribute boolean staticAttribute;
|
|
|
|
static void staticMethod(boolean arg);
|
2012-12-03 16:07:49 +00:00
|
|
|
static void staticMethodWithContext(any arg);
|
2012-10-19 07:34:28 +00:00
|
|
|
|
2015-04-14 15:03:49 +00:00
|
|
|
// Deprecated methods and attributes;
|
|
|
|
[Deprecated="GetAttributeNode"]
|
|
|
|
static attribute boolean staticDeprecatedAttribute;
|
|
|
|
[Deprecated="GetAttributeNode"]
|
|
|
|
static void staticDeprecatedMethod(boolean arg);
|
|
|
|
[Deprecated="GetAttributeNode"]
|
|
|
|
static void staticDeprecatedMethodWithContext(any arg);
|
|
|
|
|
2012-12-11 22:50:56 +00:00
|
|
|
// Overload resolution tests
|
|
|
|
//void overload1(DOMString... strs);
|
|
|
|
boolean overload1(TestInterface arg);
|
|
|
|
TestInterface overload1(DOMString strs, TestInterface arg);
|
2013-01-03 19:03:11 +00:00
|
|
|
void overload2(TestInterface arg);
|
2013-01-03 19:03:00 +00:00
|
|
|
void overload2(optional Dict arg);
|
2013-07-30 17:39:34 +00:00
|
|
|
void overload2(boolean arg);
|
2013-01-03 19:03:00 +00:00
|
|
|
void overload2(DOMString arg);
|
2013-05-02 18:38:20 +00:00
|
|
|
void overload2(Date arg);
|
2013-01-03 19:03:11 +00:00
|
|
|
void overload3(TestInterface arg);
|
|
|
|
void overload3(TestCallback arg);
|
2013-07-30 17:39:34 +00:00
|
|
|
void overload3(boolean arg);
|
2013-01-03 19:03:11 +00:00
|
|
|
void overload4(TestInterface arg);
|
|
|
|
void overload4(TestCallbackInterface arg);
|
|
|
|
void overload4(DOMString arg);
|
2013-07-30 17:39:34 +00:00
|
|
|
void overload5(long arg);
|
|
|
|
void overload5(TestEnum arg);
|
|
|
|
void overload6(long arg);
|
|
|
|
void overload6(boolean arg);
|
|
|
|
void overload7(long arg);
|
|
|
|
void overload7(boolean arg);
|
|
|
|
void overload7(ByteString arg);
|
|
|
|
void overload8(long arg);
|
|
|
|
void overload8(TestInterface arg);
|
2013-10-11 16:28:23 +00:00
|
|
|
void overload9(long? arg);
|
|
|
|
void overload9(DOMString arg);
|
|
|
|
void overload10(long? arg);
|
|
|
|
void overload10(object arg);
|
|
|
|
void overload11(long arg);
|
|
|
|
void overload11(DOMString? arg);
|
|
|
|
void overload12(long arg);
|
|
|
|
void overload12(boolean? arg);
|
|
|
|
void overload13(long? arg);
|
|
|
|
void overload13(boolean arg);
|
2013-10-11 16:28:24 +00:00
|
|
|
void overload14(optional long arg);
|
|
|
|
void overload14(TestInterface arg);
|
|
|
|
void overload15(long arg);
|
|
|
|
void overload15(optional TestInterface arg);
|
|
|
|
void overload16(long arg);
|
|
|
|
void overload16(optional TestInterface? arg);
|
2014-09-24 13:11:30 +00:00
|
|
|
void overload17(sequence<long> arg);
|
|
|
|
void overload17(MozMap<long> arg);
|
|
|
|
void overload18(MozMap<DOMString> arg);
|
|
|
|
void overload18(sequence<DOMString> arg);
|
|
|
|
void overload19(sequence<long> arg);
|
|
|
|
void overload19(optional Dict arg);
|
|
|
|
void overload20(optional Dict arg);
|
|
|
|
void overload20(sequence<long> arg);
|
2012-12-11 22:50:56 +00:00
|
|
|
|
|
|
|
// Variadic handling
|
|
|
|
void passVariadicThirdArg(DOMString arg1, long arg2, TestInterface... arg3);
|
|
|
|
|
2013-02-19 16:54:41 +00:00
|
|
|
// Conditionally exposed methods/attributes
|
|
|
|
[Pref="abc.def"]
|
|
|
|
readonly attribute boolean prefable1;
|
|
|
|
[Pref="abc.def"]
|
|
|
|
readonly attribute boolean prefable2;
|
|
|
|
[Pref="ghi.jkl"]
|
|
|
|
readonly attribute boolean prefable3;
|
|
|
|
[Pref="ghi.jkl"]
|
|
|
|
readonly attribute boolean prefable4;
|
|
|
|
[Pref="abc.def"]
|
|
|
|
readonly attribute boolean prefable5;
|
|
|
|
[Pref="abc.def", Func="nsGenericHTMLElement::TouchEventsEnabled"]
|
|
|
|
readonly attribute boolean prefable6;
|
|
|
|
[Pref="abc.def", Func="nsGenericHTMLElement::TouchEventsEnabled"]
|
|
|
|
readonly attribute boolean prefable7;
|
|
|
|
[Pref="ghi.jkl", Func="nsGenericHTMLElement::TouchEventsEnabled"]
|
|
|
|
readonly attribute boolean prefable8;
|
|
|
|
[Pref="abc.def", Func="nsGenericHTMLElement::TouchEventsEnabled"]
|
|
|
|
readonly attribute boolean prefable9;
|
|
|
|
[Pref="abc.def"]
|
|
|
|
void prefable10();
|
|
|
|
[Pref="abc.def", Func="nsGenericHTMLElement::TouchEventsEnabled"]
|
|
|
|
void prefable11();
|
|
|
|
[Pref="abc.def", Func="TestFuncControlledMember"]
|
|
|
|
readonly attribute boolean prefable12;
|
|
|
|
[Pref="abc.def", Func="nsGenericHTMLElement::TouchEventsEnabled"]
|
|
|
|
void prefable13();
|
|
|
|
[Pref="abc.def", Func="TestFuncControlledMember"]
|
|
|
|
readonly attribute boolean prefable14;
|
|
|
|
[Func="TestFuncControlledMember"]
|
|
|
|
readonly attribute boolean prefable15;
|
|
|
|
[Func="TestFuncControlledMember"]
|
|
|
|
readonly attribute boolean prefable16;
|
|
|
|
[Pref="abc.def", Func="TestFuncControlledMember"]
|
|
|
|
void prefable17();
|
|
|
|
[Func="TestFuncControlledMember"]
|
|
|
|
void prefable18();
|
|
|
|
[Func="TestFuncControlledMember"]
|
|
|
|
void prefable19();
|
|
|
|
|
2016-05-16 09:04:38 +00:00
|
|
|
// Conditionally exposed methods/attributes involving [SecureContext]
|
|
|
|
[SecureContext]
|
|
|
|
readonly attribute boolean conditionalOnSecureContext1;
|
|
|
|
[SecureContext, Pref="abc.def"]
|
|
|
|
readonly attribute boolean conditionalOnSecureContext2;
|
|
|
|
[SecureContext, Pref="abc.def", Func="nsGenericHTMLElement::TouchEventsEnabled"]
|
|
|
|
readonly attribute boolean conditionalOnSecureContext3;
|
|
|
|
[SecureContext, Pref="abc.def", Func="TestFuncControlledMember"]
|
|
|
|
readonly attribute boolean conditionalOnSecureContext4;
|
|
|
|
[SecureContext]
|
|
|
|
void conditionalOnSecureContext5();
|
|
|
|
[SecureContext, Pref="abc.def"]
|
|
|
|
void conditionalOnSecureContext6();
|
|
|
|
[SecureContext, Pref="abc.def", Func="nsGenericHTMLElement::TouchEventsEnabled"]
|
|
|
|
void conditionalOnSecureContext7();
|
|
|
|
[SecureContext, Pref="abc.def", Func="TestFuncControlledMember"]
|
|
|
|
void conditionalOnSecureContext8();
|
|
|
|
|
2012-10-18 01:17:16 +00:00
|
|
|
// Miscellania
|
|
|
|
[LenientThis] attribute long attrWithLenientThis;
|
2012-10-24 20:10:49 +00:00
|
|
|
[Unforgeable] readonly attribute long unforgeableAttr;
|
|
|
|
[Unforgeable, ChromeOnly] readonly attribute long unforgeableAttr2;
|
2014-07-04 13:02:10 +00:00
|
|
|
[Unforgeable] long unforgeableMethod();
|
|
|
|
[Unforgeable, ChromeOnly] long unforgeableMethod2();
|
2012-11-05 19:40:32 +00:00
|
|
|
stringifier;
|
2012-10-24 20:10:49 +00:00
|
|
|
void passRenamedInterface(TestRenamedInterface arg);
|
2012-08-13 12:20:49 +00:00
|
|
|
[PutForwards=writableByte] readonly attribute TestExampleInterface putForwardsAttr;
|
|
|
|
[PutForwards=writableByte, LenientThis] readonly attribute TestExampleInterface putForwardsAttr2;
|
|
|
|
[PutForwards=writableByte, ChromeOnly] readonly attribute TestExampleInterface putForwardsAttr3;
|
2012-11-09 16:24:32 +00:00
|
|
|
[Throws] void throwingMethod();
|
|
|
|
[Throws] attribute boolean throwingAttr;
|
|
|
|
[GetterThrows] attribute boolean throwingGetterAttr;
|
|
|
|
[SetterThrows] attribute boolean throwingSetterAttr;
|
2013-03-04 19:08:24 +00:00
|
|
|
legacycaller short(unsigned long arg1, TestInterface arg2);
|
2013-06-26 14:59:46 +00:00
|
|
|
void passArgsWithDefaults(optional long arg1,
|
|
|
|
optional TestInterface? arg2 = null,
|
|
|
|
optional Dict arg3, optional double arg4 = 5.0,
|
|
|
|
optional float arg5);
|
2013-07-30 14:04:04 +00:00
|
|
|
attribute any jsonifierShouldSkipThis;
|
|
|
|
attribute TestParentInterface jsonifierShouldSkipThis2;
|
|
|
|
attribute TestCallbackInterface jsonifierShouldSkipThis3;
|
2013-07-26 16:00:49 +00:00
|
|
|
jsonifier;
|
2012-10-18 01:17:16 +00:00
|
|
|
|
2014-09-20 02:58:27 +00:00
|
|
|
attribute byte dashed-attribute;
|
|
|
|
void dashed-method();
|
|
|
|
|
2013-03-18 23:08:50 +00:00
|
|
|
// If you add things here, add them to TestCodeGen and TestJSImplGen as well
|
2012-10-18 01:17:16 +00:00
|
|
|
};
|
2012-11-09 16:24:32 +00:00
|
|
|
|
|
|
|
interface TestExampleProxyInterface {
|
|
|
|
getter long longIndexedGetter(unsigned long ix);
|
|
|
|
deleter void (unsigned long ix);
|
|
|
|
setter creator void longIndexedSetter(unsigned long y, long z);
|
|
|
|
stringifier DOMString myStringifier();
|
|
|
|
getter short shortNameGetter(DOMString nom);
|
|
|
|
deleter void (DOMString nomnom);
|
|
|
|
setter creator void shortNamedSetter(DOMString me, short value);
|
|
|
|
};
|