2013-03-19 03:08:50 +04: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/.
|
|
|
|
*/
|
|
|
|
|
|
|
|
typedef TestJSImplInterface AnotherNameForTestJSImplInterface;
|
|
|
|
typedef TestJSImplInterface YetAnotherNameForTestJSImplInterface;
|
|
|
|
typedef TestJSImplInterface? NullableTestJSImplInterface;
|
|
|
|
|
|
|
|
callback MyTestCallback = void();
|
|
|
|
|
|
|
|
TestInterface implements ImplementedInterface;
|
|
|
|
|
|
|
|
enum MyTestEnum {
|
|
|
|
"a",
|
|
|
|
"b"
|
|
|
|
};
|
|
|
|
|
2013-05-03 05:00:50 +04:00
|
|
|
// We don't support multiple constructors (bug 869268) or named constructors
|
|
|
|
// for JS-implemented WebIDL.
|
|
|
|
[Constructor(DOMString str, unsigned long num, boolean? boolArg,
|
|
|
|
TestInterface? iface, long arg1,
|
|
|
|
DictForConstructor dict, any any1,
|
2013-05-16 20:36:55 +04:00
|
|
|
object obj1,
|
2014-02-19 19:13:38 +04:00
|
|
|
object? obj2, sequence<Dict> seq, optional any any2 = null,
|
2013-05-16 20:36:55 +04:00
|
|
|
optional object obj3,
|
2013-05-03 05:00:50 +04:00
|
|
|
optional object? obj4),
|
|
|
|
JSImplementation="@mozilla.org/test-js-impl-interface;1"]
|
2013-03-19 03:08:50 +04:00
|
|
|
interface TestJSImplInterface {
|
|
|
|
// 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 20:28:24 +04:00
|
|
|
void passOptionalByteBeforeRequired(optional byte arg1, byte arg2);
|
2013-04-02 01:17:17 +04:00
|
|
|
void passOptionalByteWithDefault(optional byte arg = 0);
|
2013-10-11 20:28:24 +04:00
|
|
|
void passOptionalByteWithDefaultBeforeRequired(optional byte arg1 = 0, byte arg2);
|
2013-03-19 03:08:50 +04:00
|
|
|
void passNullableByte(byte? arg);
|
|
|
|
void passOptionalNullableByte(optional byte? arg);
|
|
|
|
void passVariadicByte(byte... arg);
|
2013-12-04 17:02:17 +04:00
|
|
|
[Cached, Pure]
|
|
|
|
readonly attribute byte cachedByte;
|
2013-12-06 22:49:44 +04:00
|
|
|
[Cached, Constant]
|
|
|
|
readonly attribute byte cachedConstantByte;
|
2013-12-06 01:31:04 +04:00
|
|
|
[Cached, Pure]
|
|
|
|
attribute byte cachedWritableByte;
|
2013-03-19 03:08:50 +04:00
|
|
|
|
|
|
|
readonly attribute short readonlyShort;
|
|
|
|
attribute short writableShort;
|
|
|
|
void passShort(short arg);
|
|
|
|
short receiveShort();
|
|
|
|
void passOptionalShort(optional short arg);
|
2013-04-02 01:17:17 +04:00
|
|
|
void passOptionalShortWithDefault(optional short arg = 5);
|
2013-03-19 03:08:50 +04:00
|
|
|
|
|
|
|
readonly attribute long readonlyLong;
|
|
|
|
attribute long writableLong;
|
|
|
|
void passLong(long arg);
|
|
|
|
long receiveLong();
|
|
|
|
void passOptionalLong(optional long arg);
|
2013-04-02 01:17:17 +04:00
|
|
|
void passOptionalLongWithDefault(optional long arg = 7);
|
2013-03-19 03:08:50 +04:00
|
|
|
|
|
|
|
readonly attribute long long readonlyLongLong;
|
|
|
|
attribute long long writableLongLong;
|
|
|
|
void passLongLong(long long arg);
|
|
|
|
long long receiveLongLong();
|
|
|
|
void passOptionalLongLong(optional long long arg);
|
2013-04-02 01:17:17 +04:00
|
|
|
void passOptionalLongLongWithDefault(optional long long arg = -12);
|
2013-03-19 03:08:50 +04:00
|
|
|
|
|
|
|
readonly attribute octet readonlyOctet;
|
|
|
|
attribute octet writableOctet;
|
|
|
|
void passOctet(octet arg);
|
|
|
|
octet receiveOctet();
|
|
|
|
void passOptionalOctet(optional octet arg);
|
2013-04-02 01:17:17 +04:00
|
|
|
void passOptionalOctetWithDefault(optional octet arg = 19);
|
2013-03-19 03:08:50 +04:00
|
|
|
|
|
|
|
readonly attribute unsigned short readonlyUnsignedShort;
|
|
|
|
attribute unsigned short writableUnsignedShort;
|
|
|
|
void passUnsignedShort(unsigned short arg);
|
|
|
|
unsigned short receiveUnsignedShort();
|
|
|
|
void passOptionalUnsignedShort(optional unsigned short arg);
|
2013-04-02 01:17:17 +04:00
|
|
|
void passOptionalUnsignedShortWithDefault(optional unsigned short arg = 2);
|
2013-03-19 03:08:50 +04:00
|
|
|
|
|
|
|
readonly attribute unsigned long readonlyUnsignedLong;
|
|
|
|
attribute unsigned long writableUnsignedLong;
|
|
|
|
void passUnsignedLong(unsigned long arg);
|
|
|
|
unsigned long receiveUnsignedLong();
|
|
|
|
void passOptionalUnsignedLong(optional unsigned long arg);
|
2013-04-02 01:17:17 +04:00
|
|
|
void passOptionalUnsignedLongWithDefault(optional unsigned long arg = 6);
|
2013-03-19 03:08:50 +04:00
|
|
|
|
|
|
|
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);
|
2013-04-02 01:17:17 +04:00
|
|
|
void passOptionalUnsignedLongLongWithDefault(optional unsigned long long arg = 17);
|
2013-03-19 03:08:50 +04: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;
|
|
|
|
|
|
|
|
// Castable interface types
|
|
|
|
// XXXbz add tests for throwing versions of all the castable interface stuff
|
|
|
|
TestJSImplInterface receiveSelf();
|
|
|
|
TestJSImplInterface? receiveNullableSelf();
|
|
|
|
|
|
|
|
// Callback interface ignores 'resultNotAddRefed'. See bug 843272.
|
|
|
|
//TestJSImplInterface receiveWeakSelf();
|
|
|
|
//TestJSImplInterface? receiveWeakNullableSelf();
|
|
|
|
|
|
|
|
// A version to test for casting to TestJSImplInterface&
|
|
|
|
void passSelf(TestJSImplInterface arg);
|
|
|
|
void passNullableSelf(TestJSImplInterface? arg);
|
|
|
|
attribute TestJSImplInterface nonNullSelf;
|
|
|
|
attribute TestJSImplInterface? nullableSelf;
|
2014-02-07 06:08:29 +04:00
|
|
|
[Cached, Pure]
|
|
|
|
readonly attribute TestJSImplInterface cachedSelf;
|
2013-03-19 03:08:50 +04:00
|
|
|
// Optional arguments
|
|
|
|
void passOptionalSelf(optional TestJSImplInterface? arg);
|
|
|
|
void passOptionalNonNullSelf(optional TestJSImplInterface arg);
|
2013-04-02 01:17:17 +04:00
|
|
|
void passOptionalSelfWithDefault(optional TestJSImplInterface? arg = null);
|
2013-03-19 03:08:50 +04:00
|
|
|
|
|
|
|
// Non-wrapper-cache interface types
|
2013-09-30 20:32:22 +04:00
|
|
|
[NewObject]
|
2013-03-19 03:08:50 +04:00
|
|
|
TestNonWrapperCacheInterface receiveNonWrapperCacheInterface();
|
2013-09-30 20:32:22 +04:00
|
|
|
[NewObject]
|
2013-03-19 03:08:50 +04:00
|
|
|
TestNonWrapperCacheInterface? receiveNullableNonWrapperCacheInterface();
|
|
|
|
|
2013-09-30 20:32:22 +04:00
|
|
|
[NewObject]
|
2013-04-24 22:59:14 +04:00
|
|
|
sequence<TestNonWrapperCacheInterface> receiveNonWrapperCacheInterfaceSequence();
|
2013-09-30 20:32:22 +04:00
|
|
|
[NewObject]
|
2013-04-24 22:59:14 +04:00
|
|
|
sequence<TestNonWrapperCacheInterface?> receiveNullableNonWrapperCacheInterfaceSequence();
|
2013-09-30 20:32:22 +04:00
|
|
|
[NewObject]
|
2013-04-24 22:59:14 +04:00
|
|
|
sequence<TestNonWrapperCacheInterface>? receiveNonWrapperCacheInterfaceNullableSequence();
|
2013-09-30 20:32:22 +04:00
|
|
|
[NewObject]
|
2013-04-24 22:59:14 +04:00
|
|
|
sequence<TestNonWrapperCacheInterface?>? receiveNullableNonWrapperCacheInterfaceNullableSequence();
|
2013-03-19 03:08:50 +04:00
|
|
|
|
|
|
|
// Non-castable interface types
|
|
|
|
IndirectlyImplementedInterface receiveOther();
|
|
|
|
IndirectlyImplementedInterface? receiveNullableOther();
|
|
|
|
// Callback interface ignores 'resultNotAddRefed'. See bug 843272.
|
|
|
|
//IndirectlyImplementedInterface receiveWeakOther();
|
|
|
|
//IndirectlyImplementedInterface? receiveWeakNullableOther();
|
|
|
|
|
|
|
|
void passOther(IndirectlyImplementedInterface arg);
|
|
|
|
void passNullableOther(IndirectlyImplementedInterface? arg);
|
|
|
|
attribute IndirectlyImplementedInterface nonNullOther;
|
|
|
|
attribute IndirectlyImplementedInterface? nullableOther;
|
|
|
|
// Optional arguments
|
|
|
|
void passOptionalOther(optional IndirectlyImplementedInterface? arg);
|
|
|
|
void passOptionalNonNullOther(optional IndirectlyImplementedInterface arg);
|
2013-04-02 01:17:17 +04:00
|
|
|
void passOptionalOtherWithDefault(optional IndirectlyImplementedInterface? arg = null);
|
2013-03-19 03:08:50 +04:00
|
|
|
|
|
|
|
// External interface types
|
|
|
|
TestExternalInterface receiveExternal();
|
|
|
|
TestExternalInterface? receiveNullableExternal();
|
|
|
|
// Callback interface ignores 'resultNotAddRefed'. See bug 843272.
|
|
|
|
//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);
|
2013-04-02 01:17:17 +04:00
|
|
|
void passOptionalExternalWithDefault(optional TestExternalInterface? arg = null);
|
2013-03-19 03:08:50 +04:00
|
|
|
|
|
|
|
// Callback interface types
|
|
|
|
TestCallbackInterface receiveCallbackInterface();
|
|
|
|
TestCallbackInterface? receiveNullableCallbackInterface();
|
|
|
|
// Callback interface ignores 'resultNotAddRefed'. See bug 843272.
|
|
|
|
//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);
|
2013-04-02 01:17:17 +04:00
|
|
|
void passOptionalCallbackInterfaceWithDefault(optional TestCallbackInterface? arg = null);
|
2013-03-19 03:08:50 +04:00
|
|
|
|
|
|
|
// Miscellaneous interface tests
|
|
|
|
IndirectlyImplementedInterface receiveConsequentialInterface();
|
|
|
|
void passConsequentialInterface(IndirectlyImplementedInterface arg);
|
|
|
|
|
|
|
|
// Sequence types
|
2013-12-04 17:02:18 +04:00
|
|
|
[Cached, Pure]
|
|
|
|
readonly attribute sequence<long> readonlySequence;
|
2013-12-05 20:39:50 +04:00
|
|
|
[Cached, Pure]
|
|
|
|
readonly attribute sequence<Dict> readonlySequenceOfDictionaries;
|
2013-12-06 01:07:33 +04:00
|
|
|
[Cached, Pure]
|
|
|
|
readonly attribute sequence<Dict>? readonlyNullableSequenceOfDictionaries;
|
2013-12-16 22:06:35 +04:00
|
|
|
[Cached, Pure, Frozen]
|
|
|
|
readonly attribute sequence<long> readonlyFrozenSequence;
|
|
|
|
[Cached, Pure, Frozen]
|
|
|
|
readonly attribute sequence<long>? readonlyFrozenNullableSequence;
|
2013-03-19 03:08:50 +04: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);
|
2013-04-24 22:59:14 +04:00
|
|
|
sequence<TestJSImplInterface> receiveCastableObjectSequence();
|
|
|
|
sequence<TestCallbackInterface> receiveCallbackObjectSequence();
|
|
|
|
sequence<TestJSImplInterface?> receiveNullableCastableObjectSequence();
|
|
|
|
sequence<TestCallbackInterface?> receiveNullableCallbackObjectSequence();
|
|
|
|
sequence<TestJSImplInterface>? receiveCastableObjectNullableSequence();
|
|
|
|
sequence<TestJSImplInterface?>? receiveNullableCastableObjectNullableSequence();
|
|
|
|
sequence<TestJSImplInterface> receiveWeakCastableObjectSequence();
|
|
|
|
sequence<TestJSImplInterface?> receiveWeakNullableCastableObjectSequence();
|
|
|
|
sequence<TestJSImplInterface>? receiveWeakCastableObjectNullableSequence();
|
|
|
|
sequence<TestJSImplInterface?>? receiveWeakNullableCastableObjectNullableSequence();
|
2013-03-19 03:08:50 +04:00
|
|
|
void passCastableObjectSequence(sequence<TestJSImplInterface> arg);
|
|
|
|
void passNullableCastableObjectSequence(sequence<TestJSImplInterface?> arg);
|
|
|
|
void passCastableObjectNullableSequence(sequence<TestJSImplInterface>? arg);
|
|
|
|
void passNullableCastableObjectNullableSequence(sequence<TestJSImplInterface?>? arg);
|
|
|
|
void passOptionalSequence(optional sequence<long> arg);
|
|
|
|
void passOptionalNullableSequence(optional sequence<long>? arg);
|
2013-04-02 01:17:17 +04:00
|
|
|
void passOptionalNullableSequenceWithDefaultValue(optional sequence<long>? arg = null);
|
2013-03-19 03:08:50 +04:00
|
|
|
void passOptionalObjectSequence(optional sequence<TestJSImplInterface> arg);
|
|
|
|
void passExternalInterfaceSequence(sequence<TestExternalInterface> arg);
|
|
|
|
void passNullableExternalInterfaceSequence(sequence<TestExternalInterface?> arg);
|
|
|
|
|
2013-04-24 22:59:14 +04:00
|
|
|
sequence<DOMString> receiveStringSequence();
|
2013-06-13 09:18:35 +04:00
|
|
|
sequence<ByteString> receiveByteStringSequence();
|
2013-03-19 03:08:50 +04:00
|
|
|
// Callback interface problem. See bug 843261.
|
|
|
|
//void passStringSequence(sequence<DOMString> arg);
|
2013-05-16 20:36:55 +04:00
|
|
|
sequence<any> receiveAnySequence();
|
|
|
|
sequence<any>? receiveNullableAnySequence();
|
|
|
|
//XXXbz No support for sequence of sequence return values yet.
|
|
|
|
//sequence<sequence<any>> receiveAnySequenceSequence();
|
|
|
|
|
|
|
|
sequence<object> receiveObjectSequence();
|
|
|
|
sequence<object?> receiveNullableObjectSequence();
|
2013-03-19 03:08:50 +04:00
|
|
|
|
2013-04-03 04:20:38 +04:00
|
|
|
void passSequenceOfSequences(sequence<sequence<long>> arg);
|
|
|
|
//sequence<sequence<long>> receiveSequenceOfSequences();
|
|
|
|
|
2013-03-19 03:08:50 +04:00
|
|
|
// ArrayBuffer is handled differently in callback interfaces and the example generator.
|
|
|
|
// Need to figure out what should be done there. Seems like other typed array stuff is
|
|
|
|
// similarly not working in the JS implemented generator. Probably some other issues
|
|
|
|
// here as well.
|
|
|
|
// 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 21:40:02 +04:00
|
|
|
//void passSequenceOfArrayBuffers(sequence<ArrayBuffer> arg);
|
|
|
|
//void passSequenceOfNullableArrayBuffers(sequence<ArrayBuffer?> arg);
|
|
|
|
//void passVariadicTypedArray(Float32Array... arg);
|
|
|
|
//void passVariadicNullableTypedArray(Float32Array?... arg);
|
2013-03-19 03:08:50 +04:00
|
|
|
//Uint8Array receiveUint8Array();
|
|
|
|
|
2013-06-13 09:18:35 +04:00
|
|
|
// DOMString types
|
2013-03-19 03:08:50 +04:00
|
|
|
void passString(DOMString arg);
|
|
|
|
void passNullableString(DOMString? arg);
|
|
|
|
void passOptionalString(optional DOMString arg);
|
2013-04-02 01:17:17 +04:00
|
|
|
void passOptionalStringWithDefaultValue(optional DOMString arg = "abc");
|
2013-03-19 03:08:50 +04:00
|
|
|
void passOptionalNullableString(optional DOMString? arg);
|
2013-04-02 01:17:17 +04:00
|
|
|
void passOptionalNullableStringWithDefaultValue(optional DOMString? arg = null);
|
2013-03-19 03:08:50 +04:00
|
|
|
void passVariadicString(DOMString... arg);
|
|
|
|
|
2013-06-13 09:18:35 +04: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);
|
|
|
|
|
2013-03-19 03:08:50 +04:00
|
|
|
// Enumerated types
|
|
|
|
void passEnum(MyTestEnum arg);
|
2013-04-20 07:04:19 +04:00
|
|
|
void passNullableEnum(MyTestEnum? arg);
|
|
|
|
void passOptionalEnum(optional MyTestEnum arg);
|
2013-04-02 01:17:17 +04:00
|
|
|
void passEnumWithDefault(optional MyTestEnum arg = "a");
|
2013-04-20 07:04:19 +04:00
|
|
|
void passOptionalNullableEnum(optional MyTestEnum? arg);
|
|
|
|
void passOptionalNullableEnumWithDefaultValue(optional MyTestEnum? arg = null);
|
|
|
|
void passOptionalNullableEnumWithDefaultValue2(optional MyTestEnum? arg = "a");
|
2013-03-19 03:08:50 +04:00
|
|
|
MyTestEnum receiveEnum();
|
2013-04-20 07:04:19 +04:00
|
|
|
MyTestEnum? receiveNullableEnum();
|
2013-03-19 03:08:50 +04:00
|
|
|
attribute MyTestEnum enumAttribute;
|
|
|
|
readonly attribute MyTestEnum readonlyEnumAttribute;
|
|
|
|
|
|
|
|
// Callback types
|
|
|
|
void passCallback(MyTestCallback arg);
|
|
|
|
void passNullableCallback(MyTestCallback? arg);
|
|
|
|
void passOptionalCallback(optional MyTestCallback arg);
|
|
|
|
void passOptionalNullableCallback(optional MyTestCallback? arg);
|
2013-04-02 01:17:17 +04:00
|
|
|
void passOptionalNullableCallbackWithDefaultValue(optional MyTestCallback? arg = null);
|
2013-03-19 03:08:50 +04:00
|
|
|
MyTestCallback receiveCallback();
|
|
|
|
MyTestCallback? receiveNullableCallback();
|
|
|
|
// Hmm. These two don't work, I think because I need a locally modified version of TestTreatAsNullCallback.
|
|
|
|
//void passNullableTreatAsNullCallback(TestTreatAsNullCallback? arg);
|
|
|
|
//void passOptionalNullableTreatAsNullCallback(optional TestTreatAsNullCallback? arg);
|
2013-04-02 01:17:17 +04:00
|
|
|
void passOptionalNullableTreatAsNullCallbackWithDefaultValue(optional TestTreatAsNullCallback? arg = null);
|
2013-03-19 03:08:50 +04:00
|
|
|
|
|
|
|
// Any types
|
|
|
|
void passAny(any arg);
|
2013-05-16 20:36:55 +04:00
|
|
|
void passVariadicAny(any... arg);
|
2013-03-19 03:08:50 +04:00
|
|
|
void passAnyDefaultNull(optional any arg = null);
|
2013-05-16 20:36:55 +04: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);
|
2013-03-19 03:08:50 +04:00
|
|
|
any receiveAny();
|
|
|
|
|
2013-05-16 20:36:55 +04:00
|
|
|
void passObject(object arg);
|
2013-05-16 20:36:55 +04:00
|
|
|
void passVariadicObject(object... arg);
|
2013-03-19 03:08:50 +04:00
|
|
|
void passNullableObject(object? arg);
|
2013-05-16 20:36:55 +04:00
|
|
|
void passVariadicNullableObject(object... arg);
|
2013-05-16 20:36:55 +04:00
|
|
|
void passOptionalObject(optional object arg);
|
2013-03-19 03:08:50 +04:00
|
|
|
void passOptionalNullableObject(optional object? arg);
|
|
|
|
void passOptionalNullableObjectWithDefaultValue(optional object? arg = null);
|
2013-05-16 20:36:55 +04:00
|
|
|
void passSequenceOfObject(sequence<object> arg);
|
|
|
|
void passSequenceOfNullableObject(sequence<object?> arg);
|
2013-08-29 08:30:05 +04:00
|
|
|
void passNullableSequenceOfObject(sequence<object>? arg);
|
2013-05-16 20:36:55 +04:00
|
|
|
void passOptionalNullableSequenceOfNullableSequenceOfObject(optional sequence<sequence<object>?>? arg);
|
|
|
|
void passOptionalNullableSequenceOfNullableSequenceOfNullableObject(optional sequence<sequence<object?>?>? arg);
|
2013-03-19 03:08:50 +04:00
|
|
|
object receiveObject();
|
|
|
|
object? receiveNullableObject();
|
|
|
|
|
|
|
|
// Union types
|
|
|
|
void passUnion((object or long) arg);
|
2013-09-26 08:05:00 +04: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 21:39:35 +04: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 08:05:00 +04:00
|
|
|
void passUnion9((object or DOMString or long or boolean) arg);
|
2013-09-26 08:05:00 +04:00
|
|
|
void passUnion10(optional (EventInit or long) arg);
|
|
|
|
void passUnion11(optional (CustomEventInit or long) arg);
|
2013-10-28 08:33:15 +04: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);
|
2013-09-26 08:05:00 +04:00
|
|
|
#endif
|
2013-03-19 03:08:50 +04:00
|
|
|
void passUnionWithNullable((object? or long) arg);
|
2013-12-13 01:11:56 +04:00
|
|
|
void passNullableUnion((object or long)? arg);
|
2013-03-19 03:08:50 +04:00
|
|
|
void passOptionalUnion(optional (object or long) arg);
|
2013-12-13 01:11:56 +04:00
|
|
|
void passOptionalNullableUnion(optional (object or long)? arg);
|
|
|
|
void passOptionalNullableUnionWithDefaultValue(optional (object or long)? arg = null);
|
2013-03-19 03:08:50 +04:00
|
|
|
//void passUnionWithInterfaces((TestJSImplInterface or TestExternalInterface) arg);
|
|
|
|
//void passUnionWithInterfacesAndNullable((TestJSImplInterface? or TestExternalInterface) arg);
|
|
|
|
//void passUnionWithSequence((sequence<object> or long) arg);
|
|
|
|
void passUnionWithArrayBuffer((ArrayBuffer or long) arg);
|
|
|
|
void passUnionWithString((DOMString or object) arg);
|
|
|
|
//void passUnionWithEnum((MyTestEnum or object) arg);
|
|
|
|
// Trying to use a callback in a union won't include the test
|
|
|
|
// headers, unfortunately, so won't compile.
|
|
|
|
// void passUnionWithCallback((MyTestCallback or long) arg);
|
|
|
|
void passUnionWithObject((object or long) arg);
|
|
|
|
//void passUnionWithDict((Dict or long) arg);
|
|
|
|
|
2013-08-30 07:29:38 +04: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-13 01:11:56 +04:00
|
|
|
void passSequenceOfUnions(sequence<(CanvasPattern or CanvasGradient)> arg);
|
|
|
|
void passVariadicUnion((CanvasPattern or CanvasGradient)... arg);
|
|
|
|
|
2013-12-18 20:20:43 +04:00
|
|
|
void passSequenceOfNullableUnions(sequence<(CanvasPattern or CanvasGradient)?> arg);
|
|
|
|
void passVariadicNullableUnion((CanvasPattern or CanvasGradient)?... arg);
|
|
|
|
|
2013-07-26 22:25:54 +04:00
|
|
|
//(CanvasPattern or CanvasGradient) receiveUnion();
|
2013-09-13 06:34:16 +04:00
|
|
|
//(object or long) receiveUnion2();
|
2013-07-26 22:25:54 +04:00
|
|
|
//(CanvasPattern? or CanvasGradient) receiveUnionContainingNull();
|
|
|
|
//(CanvasPattern or CanvasGradient)? receiveNullableUnion();
|
2013-09-13 06:34:16 +04:00
|
|
|
//(object or long)? receiveNullableUnion2();
|
2013-07-26 22:25:54 +04:00
|
|
|
|
|
|
|
//attribute (CanvasPattern or CanvasGradient) writableUnion;
|
|
|
|
//attribute (CanvasPattern? or CanvasGradient) writableUnionContainingNull;
|
|
|
|
//attribute (CanvasPattern or CanvasGradient)? writableNullableUnion;
|
|
|
|
|
2013-05-02 22:38:20 +04: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);
|
|
|
|
Date receiveDate();
|
|
|
|
Date? receiveNullableDate();
|
|
|
|
|
2013-03-19 03:08:50 +04:00
|
|
|
// binaryNames tests
|
|
|
|
void methodRenamedFrom();
|
|
|
|
void methodRenamedFrom(byte argument);
|
|
|
|
readonly attribute byte attributeGetterRenamedFrom;
|
|
|
|
attribute byte attributeRenamedFrom;
|
|
|
|
|
|
|
|
void passDictionary(optional Dict x);
|
2014-02-05 22:38:16 +04:00
|
|
|
[Cached, Pure]
|
|
|
|
readonly attribute Dict readonlyDictionary;
|
2014-02-05 22:38:16 +04:00
|
|
|
[Cached, Pure]
|
|
|
|
readonly attribute Dict? readonlyNullableDictionary;
|
2014-02-05 22:38:16 +04:00
|
|
|
[Cached, Pure]
|
|
|
|
attribute Dict writableDictionary;
|
|
|
|
[Cached, Pure, Frozen]
|
|
|
|
readonly attribute Dict readonlyFrozenDictionary;
|
2014-02-05 22:38:16 +04:00
|
|
|
[Cached, Pure, Frozen]
|
|
|
|
readonly attribute Dict? readonlyFrozenNullableDictionary;
|
2014-02-05 22:38:16 +04:00
|
|
|
[Cached, Pure, Frozen]
|
|
|
|
attribute Dict writableFrozenDictionary;
|
2013-12-05 20:39:50 +04:00
|
|
|
Dict receiveDictionary();
|
2014-02-05 22:38:16 +04:00
|
|
|
Dict? receiveNullableDictionary();
|
2013-03-19 03:08:50 +04:00
|
|
|
void passOtherDictionary(optional GrandparentDict x);
|
|
|
|
void passSequenceOfDictionaries(sequence<Dict> x);
|
2013-05-16 20:36:55 +04:00
|
|
|
// No support for nullable dictionaries inside a sequence (nor should there be)
|
|
|
|
// void passSequenceOfNullableDictionaries(sequence<Dict?> x);
|
2013-03-19 03:08:50 +04:00
|
|
|
void passDictionaryOrLong(optional Dict x);
|
|
|
|
void passDictionaryOrLong(long x);
|
|
|
|
|
|
|
|
void passDictContainingDict(optional DictContainingDict arg);
|
|
|
|
void passDictContainingSequence(optional DictContainingSequence arg);
|
2013-12-05 20:39:50 +04:00
|
|
|
DictContainingSequence receiveDictContainingSequence();
|
2013-03-19 03:08:50 +04:00
|
|
|
|
|
|
|
// EnforceRange/Clamp tests
|
|
|
|
void dontEnforceRangeOrClamp(byte arg);
|
|
|
|
void doEnforceRange([EnforceRange] byte arg);
|
|
|
|
void doClamp([Clamp] byte arg);
|
2013-09-10 06:10:45 +04:00
|
|
|
[EnforceRange] attribute byte enforcedByte;
|
|
|
|
[Clamp] attribute byte clampedByte;
|
2013-03-19 03:08:50 +04:00
|
|
|
|
|
|
|
// Typedefs
|
|
|
|
const myLong myLongConstant = 5;
|
|
|
|
void exerciseTypedefInterfaces1(AnotherNameForTestJSImplInterface arg);
|
|
|
|
AnotherNameForTestJSImplInterface exerciseTypedefInterfaces2(NullableTestJSImplInterface arg);
|
|
|
|
void exerciseTypedefInterfaces3(YetAnotherNameForTestJSImplInterface arg);
|
|
|
|
|
|
|
|
// Static methods and attributes
|
2013-04-25 20:29:55 +04:00
|
|
|
// FIXME: Bug 863952 Static things are not supported yet
|
|
|
|
/*
|
2013-03-19 03:08:50 +04:00
|
|
|
static attribute boolean staticAttribute;
|
|
|
|
static void staticMethod(boolean arg);
|
|
|
|
static void staticMethodWithContext(any arg);
|
2013-04-25 20:29:55 +04:00
|
|
|
*/
|
2013-03-19 03:08:50 +04:00
|
|
|
|
|
|
|
// Overload resolution tests
|
|
|
|
//void overload1(DOMString... strs);
|
|
|
|
boolean overload1(TestJSImplInterface arg);
|
|
|
|
TestJSImplInterface overload1(DOMString strs, TestJSImplInterface arg);
|
|
|
|
void overload2(TestJSImplInterface arg);
|
|
|
|
void overload2(optional Dict arg);
|
2013-07-30 21:39:34 +04:00
|
|
|
void overload2(boolean arg);
|
2013-03-19 03:08:50 +04:00
|
|
|
void overload2(DOMString arg);
|
2013-05-02 22:38:20 +04:00
|
|
|
void overload2(Date arg);
|
2013-03-19 03:08:50 +04:00
|
|
|
void overload3(TestJSImplInterface arg);
|
|
|
|
void overload3(MyTestCallback arg);
|
2013-07-30 21:39:34 +04:00
|
|
|
void overload3(boolean arg);
|
2013-03-19 03:08:50 +04:00
|
|
|
void overload4(TestJSImplInterface arg);
|
|
|
|
void overload4(TestCallbackInterface arg);
|
|
|
|
void overload4(DOMString arg);
|
2013-07-30 21:39:34 +04:00
|
|
|
void overload5(long arg);
|
|
|
|
void overload5(MyTestEnum 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(TestJSImplInterface arg);
|
2013-10-11 20:28:23 +04: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 20:28:24 +04: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);
|
2013-03-19 03:08:50 +04:00
|
|
|
|
|
|
|
// Variadic handling
|
|
|
|
void passVariadicThirdArg(DOMString arg1, long arg2, TestJSImplInterface... arg3);
|
|
|
|
|
2014-02-05 22:38:17 +04: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();
|
|
|
|
[Pref="abc.def", Func="TestFuncControlledMember", ChromeOnly]
|
|
|
|
void prefable20();
|
|
|
|
[Func="TestFuncControlledMember", AvailableIn=CertifiedApps]
|
|
|
|
void prefable21();
|
|
|
|
[Func="TestFuncControlledMember", AvailableIn=CertifiedApps]
|
|
|
|
void prefable22();
|
|
|
|
[Pref="abc.def", Func="TestFuncControlledMember", AvailableIn=CertifiedApps]
|
|
|
|
void prefable23();
|
|
|
|
[Pref="abc.def", Func="TestFuncControlledMember", AvailableIn=PrivilegedApps]
|
|
|
|
void prefable24();
|
|
|
|
|
2013-03-19 03:08:50 +04:00
|
|
|
// Miscellania
|
|
|
|
[LenientThis] attribute long attrWithLenientThis;
|
2013-04-25 20:29:55 +04:00
|
|
|
// FIXME: Bug 863954 Unforgeable things get all confused when
|
|
|
|
// non-JS-implemented interfaces inherit from JS-implemented ones or vice
|
|
|
|
// versa.
|
|
|
|
// [Unforgeable] readonly attribute long unforgeableAttr;
|
|
|
|
// [Unforgeable, ChromeOnly] readonly attribute long unforgeableAttr2;
|
|
|
|
// FIXME: Bug 863955 No stringifiers yet
|
|
|
|
// stringifier;
|
2013-03-19 03:08:50 +04:00
|
|
|
void passRenamedInterface(TestRenamedInterface arg);
|
|
|
|
[PutForwards=writableByte] readonly attribute TestJSImplInterface putForwardsAttr;
|
|
|
|
[PutForwards=writableByte, LenientThis] readonly attribute TestJSImplInterface putForwardsAttr2;
|
|
|
|
[PutForwards=writableByte, ChromeOnly] readonly attribute TestJSImplInterface putForwardsAttr3;
|
|
|
|
[Throws] void throwingMethod();
|
|
|
|
[Throws] attribute boolean throwingAttr;
|
|
|
|
[GetterThrows] attribute boolean throwingGetterAttr;
|
|
|
|
[SetterThrows] attribute boolean throwingSetterAttr;
|
2013-06-26 18:59:46 +04:00
|
|
|
// legacycaller short(unsigned long arg1, TestInterface arg2);
|
|
|
|
void passArgsWithDefaults(optional long arg1,
|
|
|
|
optional TestInterface? arg2 = null,
|
|
|
|
optional Dict arg3, optional double arg4 = 5.0,
|
|
|
|
optional float arg5);
|
2013-07-30 18:04:04 +04:00
|
|
|
attribute any jsonifierShouldSkipThis;
|
|
|
|
attribute TestParentInterface jsonifierShouldSkipThis2;
|
|
|
|
attribute TestCallbackInterface jsonifierShouldSkipThis3;
|
2013-07-26 20:00:49 +04:00
|
|
|
jsonifier;
|
2013-04-25 20:29:55 +04:00
|
|
|
|
2013-03-19 03:08:50 +04:00
|
|
|
// If you add things here, add them to TestCodeGen as well
|
|
|
|
};
|
2013-04-04 06:22:15 +04:00
|
|
|
|
2013-05-01 00:30:25 +04:00
|
|
|
[NavigatorProperty="TestNavigator", JSImplementation="@mozilla.org/test;1"]
|
|
|
|
interface TestNavigator {
|
|
|
|
};
|
|
|
|
|
|
|
|
[Constructor, NavigatorProperty="TestNavigatorWithConstructor", JSImplementation="@mozilla.org/test;1"]
|
|
|
|
interface TestNavigatorWithConstructor {
|
|
|
|
};
|
|
|
|
|
2013-04-04 06:22:15 +04:00
|
|
|
interface TestCImplementedInterface : TestJSImplInterface {
|
|
|
|
};
|
|
|
|
|
|
|
|
interface TestCImplementedInterface2 {
|
|
|
|
};
|