/* -*- Mode: C++; 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/. */ #ifndef TestBindingHeader_h #define TestBindingHeader_h #include "nsWrapperCache.h" #include "mozilla/ErrorResult.h" #include "mozilla/dom/BindingUtils.h" #include "mozilla/dom/TypedArray.h" #include "nsCOMPtr.h" // We don't export TestCodeGenBinding.h, but it's right in our parent dir. #include "../TestCodeGenBinding.h" #include "mozilla/dom/UnionTypes.h" namespace mozilla { namespace dom { // IID for the TestNonCastableInterface #define NS_TEST_NONCASTABLE_INTERFACE_IID \ { 0x7c9f8ee2, 0xc9bf, 0x46ca, \ { 0xa0, 0xa9, 0x03, 0xa8, 0xd6, 0x30, 0x0e, 0xde } } class TestNonCastableInterface : public nsISupports, public nsWrapperCache { public: NS_DECLARE_STATIC_IID_ACCESSOR(NS_TEST_NONCASTABLE_INTERFACE_IID) NS_DECL_ISUPPORTS // We need a GetParentObject to make binding codegen happy virtual nsISupports* GetParentObject(); }; // IID for the IndirectlyImplementedInterface #define NS_INDIRECTLY_IMPLEMENTED_INTERFACE_IID \ { 0xfed55b69, 0x7012, 0x4849, \ { 0xaf, 0x56, 0x4b, 0xa9, 0xee, 0x41, 0x30, 0x89 } } class IndirectlyImplementedInterface : public nsISupports, public nsWrapperCache { public: NS_DECLARE_STATIC_IID_ACCESSOR(NS_INDIRECTLY_IMPLEMENTED_INTERFACE_IID) NS_DECL_ISUPPORTS // We need a GetParentObject to make binding codegen happy virtual nsISupports* GetParentObject(); bool GetIndirectlyImplementedProperty(ErrorResult&); void SetIndirectlyImplementedProperty(bool, ErrorResult&); void IndirectlyImplementedMethod(ErrorResult&); }; // IID for the TestExternalInterface #define NS_TEST_EXTERNAL_INTERFACE_IID \ { 0xd5ba0c99, 0x9b1d, 0x4e71, \ { 0x8a, 0x94, 0x56, 0x38, 0x6c, 0xa3, 0xda, 0x3d } } class TestExternalInterface : public nsISupports { public: NS_DECLARE_STATIC_IID_ACCESSOR(NS_TEST_EXTERNAL_INTERFACE_IID) NS_DECL_ISUPPORTS }; // IID for the TestCallbackInterface #define NS_TEST_CALLBACK_INTERFACE_IID \ { 0xbf711ba4, 0xc8f6, 0x46cf, \ { 0xba, 0x5b, 0xaa, 0xe2, 0x78, 0x18, 0xe6, 0x4a } } class TestCallbackInterface : public nsISupports { public: NS_DECLARE_STATIC_IID_ACCESSOR(NS_TEST_CALLBACK_INTERFACE_IID) NS_DECL_ISUPPORTS }; class TestNonWrapperCacheInterface : public nsISupports { public: NS_DECL_ISUPPORTS virtual JSObject* WrapObject(JSContext* cx, JSObject* scope); }; class TestInterface : public nsISupports, public nsWrapperCache { public: NS_DECL_ISUPPORTS // We need a GetParentObject to make binding codegen happy virtual nsISupports* GetParentObject(); // And now our actual WebIDL API // Constructors static already_AddRefed Constructor(nsISupports*, ErrorResult&); static already_AddRefed Constructor(nsISupports*, const nsAString&, ErrorResult&); static already_AddRefed Constructor(nsISupports*, uint32_t, Nullable&, ErrorResult&); static already_AddRefed Constructor(nsISupports*, TestInterface*, ErrorResult&); static already_AddRefed Constructor(nsISupports*, NonNull&, ErrorResult&); // Integer types int8_t GetReadonlyByte(ErrorResult&); int8_t GetWritableByte(ErrorResult&); void SetWritableByte(int8_t, ErrorResult&); void PassByte(int8_t, ErrorResult&); int8_t ReceiveByte(ErrorResult&); void PassOptionalByte(const Optional&, ErrorResult&); void PassOptionalByteWithDefault(int8_t, ErrorResult&); void PassNullableByte(Nullable&, ErrorResult&); void PassOptionalNullableByte(const Optional< Nullable >&, ErrorResult&); int16_t GetReadonlyShort(ErrorResult&); int16_t GetWritableShort(ErrorResult&); void SetWritableShort(int16_t, ErrorResult&); void PassShort(int16_t, ErrorResult&); int16_t ReceiveShort(ErrorResult&); void PassOptionalShort(const Optional&, ErrorResult&); void PassOptionalShortWithDefault(int16_t, ErrorResult&); int32_t GetReadonlyLong(ErrorResult&); int32_t GetWritableLong(ErrorResult&); void SetWritableLong(int32_t, ErrorResult&); void PassLong(int32_t, ErrorResult&); int16_t ReceiveLong(ErrorResult&); void PassOptionalLong(const Optional&, ErrorResult&); void PassOptionalLongWithDefault(int32_t, ErrorResult&); int64_t GetReadonlyLongLong(ErrorResult&); int64_t GetWritableLongLong(ErrorResult&); void SetWritableLongLong(int64_t, ErrorResult&); void PassLongLong(int64_t, ErrorResult&); int64_t ReceiveLongLong(ErrorResult&); void PassOptionalLongLong(const Optional&, ErrorResult&); void PassOptionalLongLongWithDefault(int64_t, ErrorResult&); uint8_t GetReadonlyOctet(ErrorResult&); uint8_t GetWritableOctet(ErrorResult&); void SetWritableOctet(uint8_t, ErrorResult&); void PassOctet(uint8_t, ErrorResult&); uint8_t ReceiveOctet(ErrorResult&); void PassOptionalOctet(const Optional&, ErrorResult&); void PassOptionalOctetWithDefault(uint8_t, ErrorResult&); uint16_t GetReadonlyUnsignedShort(ErrorResult&); uint16_t GetWritableUnsignedShort(ErrorResult&); void SetWritableUnsignedShort(uint16_t, ErrorResult&); void PassUnsignedShort(uint16_t, ErrorResult&); uint16_t ReceiveUnsignedShort(ErrorResult&); void PassOptionalUnsignedShort(const Optional&, ErrorResult&); void PassOptionalUnsignedShortWithDefault(uint16_t, ErrorResult&); uint32_t GetReadonlyUnsignedLong(ErrorResult&); uint32_t GetWritableUnsignedLong(ErrorResult&); void SetWritableUnsignedLong(uint32_t, ErrorResult&); void PassUnsignedLong(uint32_t, ErrorResult&); uint32_t ReceiveUnsignedLong(ErrorResult&); void PassOptionalUnsignedLong(const Optional&, ErrorResult&); void PassOptionalUnsignedLongWithDefault(uint32_t, ErrorResult&); uint64_t GetReadonlyUnsignedLongLong(ErrorResult&); uint64_t GetWritableUnsignedLongLong(ErrorResult&); void SetWritableUnsignedLongLong(uint64_t, ErrorResult&); void PassUnsignedLongLong(uint64_t, ErrorResult&); uint64_t ReceiveUnsignedLongLong(ErrorResult&); void PassOptionalUnsignedLongLong(const Optional&, ErrorResult&); void PassOptionalUnsignedLongLongWithDefault(uint64_t, ErrorResult&); // Interface types already_AddRefed ReceiveSelf(ErrorResult&); already_AddRefed ReceiveNullableSelf(ErrorResult&); TestInterface* ReceiveWeakSelf(ErrorResult&); TestInterface* ReceiveWeakNullableSelf(ErrorResult&); void PassSelf(TestInterface&, ErrorResult&); void PassSelf2(NonNull&, ErrorResult&); void PassNullableSelf(TestInterface*, ErrorResult&); already_AddRefed GetNonNullSelf(ErrorResult&); void SetNonNullSelf(TestInterface&, ErrorResult&); already_AddRefed GetNullableSelf(ErrorResult&); void SetNullableSelf(TestInterface*, ErrorResult&); void PassOptionalSelf(const Optional &, ErrorResult&); void PassOptionalNonNullSelf(const Optional >&, ErrorResult&); void PassOptionalSelfWithDefault(TestInterface*, ErrorResult&); already_AddRefed ReceiveNonWrapperCacheInterface(ErrorResult&); already_AddRefed ReceiveNullableNonWrapperCacheInterface(ErrorResult&); void ReceiveNonWrapperCacheInterfaceSequence(nsTArray >&, ErrorResult&); void ReceiveNullableNonWrapperCacheInterfaceSequence(nsTArray >&, ErrorResult&); void ReceiveNonWrapperCacheInterfaceNullableSequence(Nullable > >&, ErrorResult&); void ReceiveNullableNonWrapperCacheInterfaceNullableSequence(Nullable > >&, ErrorResult&); already_AddRefed ReceiveOther(ErrorResult&); already_AddRefed ReceiveNullableOther(ErrorResult&); TestNonCastableInterface* ReceiveWeakOther(ErrorResult&); TestNonCastableInterface* ReceiveWeakNullableOther(ErrorResult&); void PassOther(TestNonCastableInterface&, ErrorResult&); void PassOther2(NonNull&, ErrorResult&); void PassNullableOther(TestNonCastableInterface*, ErrorResult&); already_AddRefed GetNonNullOther(ErrorResult&); void SetNonNullOther(TestNonCastableInterface&, ErrorResult&); already_AddRefed GetNullableOther(ErrorResult&); void SetNullableOther(TestNonCastableInterface*, ErrorResult&); void PassOptionalOther(const Optional&, ErrorResult&); void PassOptionalNonNullOther(const Optional >&, ErrorResult&); void PassOptionalOtherWithDefault(TestNonCastableInterface*, ErrorResult&); already_AddRefed ReceiveExternal(ErrorResult&); already_AddRefed ReceiveNullableExternal(ErrorResult&); TestExternalInterface* ReceiveWeakExternal(ErrorResult&); TestExternalInterface* ReceiveWeakNullableExternal(ErrorResult&); void PassExternal(TestExternalInterface*, ErrorResult&); void PassExternal2(TestExternalInterface*, ErrorResult&); void PassNullableExternal(TestExternalInterface*, ErrorResult&); already_AddRefed GetNonNullExternal(ErrorResult&); void SetNonNullExternal(TestExternalInterface*, ErrorResult&); already_AddRefed GetNullableExternal(ErrorResult&); void SetNullableExternal(TestExternalInterface*, ErrorResult&); void PassOptionalExternal(const Optional&, ErrorResult&); void PassOptionalNonNullExternal(const Optional&, ErrorResult&); void PassOptionalExternalWithDefault(TestExternalInterface*, ErrorResult&); already_AddRefed ReceiveCallbackInterface(ErrorResult&); already_AddRefed ReceiveNullableCallbackInterface(ErrorResult&); TestCallbackInterface* ReceiveWeakCallbackInterface(ErrorResult&); TestCallbackInterface* ReceiveWeakNullableCallbackInterface(ErrorResult&); void PassCallbackInterface(TestCallbackInterface&, ErrorResult&); void PassCallbackInterface2(OwningNonNull, ErrorResult&); void PassNullableCallbackInterface(TestCallbackInterface*, ErrorResult&); already_AddRefed GetNonNullCallbackInterface(ErrorResult&); void SetNonNullCallbackInterface(TestCallbackInterface&, ErrorResult&); already_AddRefed GetNullableCallbackInterface(ErrorResult&); void SetNullableCallbackInterface(TestCallbackInterface*, ErrorResult&); void PassOptionalCallbackInterface(const Optional >&, ErrorResult&); void PassOptionalNonNullCallbackInterface(const Optional >&, ErrorResult&); void PassOptionalCallbackInterfaceWithDefault(TestCallbackInterface*, ErrorResult&); already_AddRefed ReceiveConsequentialInterface(ErrorResult&); void PassConsequentialInterface(IndirectlyImplementedInterface&, ErrorResult&); // Sequence types void ReceiveSequence(nsTArray&, ErrorResult&); void ReceiveNullableSequence(Nullable< nsTArray >&, ErrorResult&); void ReceiveSequenceOfNullableInts(nsTArray< Nullable >&, ErrorResult&); void ReceiveNullableSequenceOfNullableInts(Nullable< nsTArray< Nullable > >&, ErrorResult&); void PassSequence(const Sequence &, ErrorResult&); void PassNullableSequence(const Nullable< Sequence >&, ErrorResult&); void PassSequenceOfNullableInts(const Sequence >&, ErrorResult&); void PassOptionalSequenceOfNullableInts(const Optional > > &, ErrorResult&); void PassOptionalNullableSequenceOfNullableInts(const Optional > > > &, ErrorResult&); void ReceiveCastableObjectSequence(nsTArray< nsRefPtr > &, ErrorResult&); void ReceiveNullableCastableObjectSequence(nsTArray< nsRefPtr > &, ErrorResult&); void ReceiveCastableObjectNullableSequence(Nullable< nsTArray< nsRefPtr > >&, ErrorResult&); void ReceiveNullableCastableObjectNullableSequence(Nullable< nsTArray< nsRefPtr > >&, ErrorResult&); void ReceiveWeakCastableObjectSequence(nsTArray &, ErrorResult&); void ReceiveWeakNullableCastableObjectSequence(nsTArray &, ErrorResult&); void ReceiveWeakCastableObjectNullableSequence(Nullable< nsTArray >&, ErrorResult&); void ReceiveWeakNullableCastableObjectNullableSequence(Nullable< nsTArray >&, ErrorResult&); void PassCastableObjectSequence(const Sequence< OwningNonNull >&, ErrorResult&); void PassNullableCastableObjectSequence(const Sequence< nsRefPtr > &, ErrorResult&); void PassCastableObjectNullableSequence(const Nullable< Sequence< OwningNonNull > >&, ErrorResult&); void PassNullableCastableObjectNullableSequence(const Nullable< Sequence< nsRefPtr > >&, ErrorResult&); void PassOptionalSequence(const Optional >&, ErrorResult&); void PassOptionalNullableSequence(const Optional > >&, ErrorResult&); void PassOptionalNullableSequenceWithDefaultValue(const Nullable< Sequence >&, ErrorResult&); void PassOptionalObjectSequence(const Optional > >&, ErrorResult&); void ReceiveStringSequence(nsTArray&, ErrorResult&); void PassStringSequence(const Sequence&, ErrorResult&); // Typed array types void PassArrayBuffer(ArrayBuffer&, ErrorResult&); void PassNullableArrayBuffer(ArrayBuffer*, ErrorResult&); void PassOptionalArrayBuffer(const Optional&, ErrorResult&); void PassOptionalNullableArrayBuffer(const Optional&, ErrorResult&); void PassOptionalNullableArrayBufferWithDefaultValue(ArrayBuffer*, ErrorResult&); void PassArrayBufferView(ArrayBufferView&, ErrorResult&); void PassInt8Array(Int8Array&, ErrorResult&); void PassInt16Array(Int16Array&, ErrorResult&); void PassInt32Array(Int32Array&, ErrorResult&); void PassUint8Array(Uint8Array&, ErrorResult&); void PassUint16Array(Uint16Array&, ErrorResult&); void PassUint32Array(Uint32Array&, ErrorResult&); void PassUint8ClampedArray(Uint8ClampedArray&, ErrorResult&); void PassFloat32Array(Float32Array&, ErrorResult&); void PassFloat64Array(Float64Array&, ErrorResult&); // String types void PassString(const nsAString&, ErrorResult&); void PassNullableString(const nsAString&, ErrorResult&); void PassOptionalString(const Optional&, ErrorResult&); void PassOptionalNullableString(const Optional&, ErrorResult&); void PassOptionalNullableStringWithDefaultValue(const nsAString&, ErrorResult&); // Enumarated types void PassEnum(TestEnum, ErrorResult&); void PassOptionalEnum(const Optional&, ErrorResult&); TestEnum ReceiveEnum(ErrorResult&); TestEnum GetEnumAttribute(ErrorResult&); TestEnum GetReadonlyEnumAttribute(ErrorResult&); void SetEnumAttribute(TestEnum, ErrorResult&); // Callback types void PassCallback(JSContext*, JSObject*, ErrorResult&); void PassNullableCallback(JSContext*, JSObject*, ErrorResult&); void PassOptionalCallback(JSContext*, const Optional&, ErrorResult&); void PassOptionalNullableCallback(JSContext*, const Optional&, ErrorResult&); void PassOptionalNullableCallbackWithDefaultValue(JSContext*, JSObject*, ErrorResult&); JSObject* ReceiveCallback(JSContext*, ErrorResult&); JSObject* ReceiveNullableCallback(JSContext*, ErrorResult&); // Any types void PassAny(JSContext*, JS::Value, ErrorResult&); void PassOptionalAny(JSContext*, const Optional&, ErrorResult&); JS::Value ReceiveAny(JSContext*, ErrorResult&); // object types void PassObject(JSContext*, JSObject&, ErrorResult&); void PassNullableObject(JSContext*, JSObject*, ErrorResult&); void PassOptionalObject(JSContext*, const Optional >&, ErrorResult&); void PassOptionalNullableObject(JSContext*, const Optional&, ErrorResult&); void PassOptionalNullableObjectWithDefaultValue(JSContext*, JSObject*, ErrorResult&); JSObject* ReceiveObject(JSContext*, ErrorResult&); JSObject* ReceiveNullableObject(JSContext*, ErrorResult&); // Union types void PassUnion(JSContext*, const ObjectOrLong& arg, ErrorResult&); void PassUnionWithNullable(JSContext*, const ObjectOrNullOrLong& arg, ErrorResult&) { ObjectOrLong returnValue; if (arg.IsNull()) { } else if (arg.IsObject()) { JSObject& obj = (JSObject&)arg.GetAsObject(); JS_GetClass(&obj); //returnValue.SetAsObject(&obj); } else { int32_t i = arg.GetAsLong(); i += 1; } } void PassNullableUnion(JSContext*, const Nullable&, ErrorResult&); void PassOptionalUnion(JSContext*, const Optional&, ErrorResult&); void PassOptionalNullableUnion(JSContext*, const Optional >&, ErrorResult&); void PassOptionalNullableUnionWithDefaultValue(JSContext*, const Nullable&, ErrorResult&); //void PassUnionWithInterfaces(const TestInterfaceOrTestExternalInterface& arg, ErrorResult&); //void PassUnionWithInterfacesAndNullable(const TestInterfaceOrNullOrTestExternalInterface& arg, ErrorResult&); void PassUnionWithArrayBuffer(const ArrayBufferOrLong&, ErrorResult&); void PassUnionWithString(JSContext*, const StringOrObject&, ErrorResult&); //void PassUnionWithEnum(JSContext*, const TestEnumOrObject&, ErrorResult&); void PassUnionWithCallback(JSContext*, const TestCallbackOrLong&, ErrorResult&); void PassUnionWithObject(JSContext*, const ObjectOrLong&, ErrorResult&); // binaryNames tests void MethodRenamedTo(ErrorResult&); void MethodRenamedTo(int8_t, ErrorResult&); int8_t GetAttributeGetterRenamedTo(ErrorResult&); int8_t GetAttributeRenamedTo(ErrorResult&); void SetAttributeRenamedTo(int8_t, ErrorResult&); // Dictionary tests void PassDictionary(const Dict&, ErrorResult&); void PassOtherDictionary(const GrandparentDict&, ErrorResult&); void PassSequenceOfDictionaries(const Sequence&, ErrorResult&); void PassDictionaryOrLong(const Dict&, ErrorResult&); void PassDictionaryOrLong(int32_t, ErrorResult&); // Methods and properties imported via "implements" bool GetImplementedProperty(ErrorResult&); void SetImplementedProperty(bool, ErrorResult&); void ImplementedMethod(ErrorResult&); bool GetImplementedParentProperty(ErrorResult&); void SetImplementedParentProperty(bool, ErrorResult&); void ImplementedParentMethod(ErrorResult&); bool GetIndirectlyImplementedProperty(ErrorResult&); void SetIndirectlyImplementedProperty(bool, ErrorResult&); void IndirectlyImplementedMethod(ErrorResult&); uint32_t GetDiamondImplementedProperty(ErrorResult&); private: // We add signatures here that _could_ start matching if the codegen // got data types wrong. That way if it ever does we'll have a call // to these private deleted methods and compilation will fail. void SetReadonlyByte(int8_t, ErrorResult&) MOZ_DELETE; template void SetWritableByte(T, ErrorResult&) MOZ_DELETE; template void PassByte(T, ErrorResult&) MOZ_DELETE; template void PassOptionalByte(const Optional&, ErrorResult&) MOZ_DELETE; template void PassOptionalByteWithDefault(T, ErrorResult&) MOZ_DELETE; void SetReadonlyShort(int16_t, ErrorResult&) MOZ_DELETE; template void SetWritableShort(T, ErrorResult&) MOZ_DELETE; template void PassShort(T, ErrorResult&) MOZ_DELETE; template void PassOptionalShort(const Optional&, ErrorResult&) MOZ_DELETE; template void PassOptionalShortWithDefault(T, ErrorResult&) MOZ_DELETE; void SetReadonlyLong(int32_t, ErrorResult&) MOZ_DELETE; template void SetWritableLong(T, ErrorResult&) MOZ_DELETE; template void PassLong(T, ErrorResult&) MOZ_DELETE; template void PassOptionalLong(const Optional&, ErrorResult&) MOZ_DELETE; template void PassOptionalLongWithDefault(T, ErrorResult&) MOZ_DELETE; void SetReadonlyLongLong(int64_t, ErrorResult&) MOZ_DELETE; template void SetWritableLongLong(T, ErrorResult&) MOZ_DELETE; template void PassLongLong(T, ErrorResult&) MOZ_DELETE; template void PassOptionalLongLong(const Optional&, ErrorResult&) MOZ_DELETE; template void PassOptionalLongLongWithDefault(T, ErrorResult&) MOZ_DELETE; void SetReadonlyOctet(uint8_t, ErrorResult&) MOZ_DELETE; template void SetWritableOctet(T, ErrorResult&) MOZ_DELETE; template void PassOctet(T, ErrorResult&) MOZ_DELETE; template void PassOptionalOctet(const Optional&, ErrorResult&) MOZ_DELETE; template void PassOptionalOctetWithDefault(T, ErrorResult&) MOZ_DELETE; void SetReadonlyUnsignedShort(uint16_t, ErrorResult&) MOZ_DELETE; template void SetWritableUnsignedShort(T, ErrorResult&) MOZ_DELETE; template void PassUnsignedShort(T, ErrorResult&) MOZ_DELETE; template void PassOptionalUnsignedShort(const Optional&, ErrorResult&) MOZ_DELETE; template void PassOptionalUnsignedShortWithDefault(T, ErrorResult&) MOZ_DELETE; void SetReadonlyUnsignedLong(uint32_t, ErrorResult&) MOZ_DELETE; template void SetWritableUnsignedLong(T, ErrorResult&) MOZ_DELETE; template void PassUnsignedLong(T, ErrorResult&) MOZ_DELETE; template void PassOptionalUnsignedLong(const Optional&, ErrorResult&) MOZ_DELETE; template void PassOptionalUnsignedLongWithDefault(T, ErrorResult&) MOZ_DELETE; void SetReadonlyUnsignedLongLong(uint64_t, ErrorResult&) MOZ_DELETE; template void SetWritableUnsignedLongLong(T, ErrorResult&) MOZ_DELETE; template void PassUnsignedLongLong(T, ErrorResult&) MOZ_DELETE; template void PassOptionalUnsignedLongLong(const Optional&, ErrorResult&) MOZ_DELETE; template void PassOptionalUnsignedLongLongWithDefault(T, ErrorResult&) MOZ_DELETE; // Enforce that only const things are passed for sequences void PassSequence(Sequence &, ErrorResult&) MOZ_DELETE; void PassNullableSequence(Nullable< Sequence >&, ErrorResult&) MOZ_DELETE; void PassOptionalNullableSequenceWithDefaultValue(Nullable< Sequence >&, ErrorResult&) MOZ_DELETE; // Enforce that only const things are passed for optional void PassOptionalByte(Optional&, ErrorResult&) MOZ_DELETE; void PassOptionalNullableByte(Optional >&, ErrorResult&) MOZ_DELETE; void PassOptionalShort(Optional&, ErrorResult&) MOZ_DELETE; void PassOptionalLong(Optional&, ErrorResult&) MOZ_DELETE; void PassOptionalLongLong(Optional&, ErrorResult&) MOZ_DELETE; void PassOptionalOctet(Optional&, ErrorResult&) MOZ_DELETE; void PassOptionalUnsignedShort(Optional&, ErrorResult&) MOZ_DELETE; void PassOptionalUnsignedLong(Optional&, ErrorResult&) MOZ_DELETE; void PassOptionalUnsignedLongLong(Optional&, ErrorResult&) MOZ_DELETE; void PassOptionalSelf(Optional &, ErrorResult&) MOZ_DELETE; void PassOptionalNonNullSelf(Optional >&, ErrorResult&) MOZ_DELETE; void PassOptionalOther(Optional&, ErrorResult&); void PassOptionalNonNullOther(Optional >&, ErrorResult&); void PassOptionalExternal(Optional&, ErrorResult&) MOZ_DELETE; void PassOptionalNonNullExternal(Optional&, ErrorResult&) MOZ_DELETE; void PassOptionalSequence(Optional >&, ErrorResult&) MOZ_DELETE; void PassOptionalNullableSequence(Optional > >&, ErrorResult&) MOZ_DELETE; void PassOptionalObjectSequence(Optional > >&, ErrorResult&) MOZ_DELETE; void PassOptionalArrayBuffer(Optional&, ErrorResult&) MOZ_DELETE; void PassOptionalNullableArrayBuffer(Optional&, ErrorResult&) MOZ_DELETE; void PassOptionalEnum(Optional&, ErrorResult&) MOZ_DELETE; void PassOptionalCallback(JSContext*, Optional&, ErrorResult&) MOZ_DELETE; void PassOptionalNullableCallback(JSContext*, Optional&, ErrorResult&) MOZ_DELETE; void PassOptionalAny(Optional&, ErrorResult) MOZ_DELETE; // And test that string stuff is always const void PassString(nsAString&, ErrorResult&) MOZ_DELETE; void PassNullableString(nsAString&, ErrorResult&) MOZ_DELETE; void PassOptionalString(Optional&, ErrorResult&) MOZ_DELETE; void PassOptionalNullableString(Optional&, ErrorResult&) MOZ_DELETE; void PassOptionalNullableStringWithDefaultValue(nsAString&, ErrorResult&) MOZ_DELETE; }; } // namespace dom } // namespace mozilla #endif /* TestBindingHeader_h */