/* * DO NOT EDIT. THIS FILE IS GENERATED FROM $SRCDIR/xpcom/base/nsISupports.idl */ #ifndef __gen_nsISupports_h__ #define __gen_nsISupports_h__ #include "nsrootidl.h" #include "js/GCAnnotations.h" /* For IDL files that don't want to include root IDL files. */ #ifndef NS_NO_VTABLE #define NS_NO_VTABLE #endif /* starting interface: nsISupports */ #define NS_ISUPPORTS_IID_STR "00000000-0000-0000-c000-000000000046" #define NS_ISUPPORTS_IID \ {0x00000000, 0x0000, 0x0000, \ { 0xc0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x46 }} class NS_NO_VTABLE MOZ_BINDING(binding_to, idl, class, XPIDL_nsISupports) nsISupports { public: NS_INLINE_DECL_STATIC_IID(NS_ISUPPORTS_IID) /* Used by ToJSValue to check which scriptable interface is implemented. */ using ScriptableInterfaceType = nsISupports; /* void QueryInterface (in nsIIDRef aIID, [iid_is (aIID), retval] out nsQIResult aInstancePtr); */ MOZ_BINDING(binding_to, idl, method, XPIDL_nsISupports_QueryInterface) JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD QueryInterface(const nsIID & aIID, void * * aInstancePtr) = 0; /* [noscript,notxpcom] MozExternalRefCountType AddRef (); */ MOZ_BINDING(binding_to, idl, method, XPIDL_nsISupports_AddRef) NS_IMETHOD_(MozExternalRefCountType) AddRef(void) = 0; /* [noscript,notxpcom] MozExternalRefCountType Release (); */ MOZ_BINDING(binding_to, idl, method, XPIDL_nsISupports_Release) NS_IMETHOD_(MozExternalRefCountType) Release(void) = 0; }; /* Use this macro when declaring classes that implement this interface. */ #define NS_DECL_NSISUPPORTS \ NS_IMETHOD QueryInterface(const nsIID & aIID, void * * aInstancePtr) override; \ NS_IMETHOD_(MozExternalRefCountType) AddRef(void) override; \ NS_IMETHOD_(MozExternalRefCountType) Release(void) override; /* Use this macro when declaring the members of this interface when the class doesn't implement the interface. This is useful for forwarding. */ #define NS_DECL_NON_VIRTUAL_NSISUPPORTS \ MOZ_BINDING(binding_to, idl, method, XPIDL_nsISupports_QueryInterface)\ nsresult QueryInterface(const nsIID & aIID, void * * aInstancePtr); \ MOZ_BINDING(binding_to, idl, method, XPIDL_nsISupports_AddRef)\ nsresult_(MozExternalRefCountType) AddRef(void); \ MOZ_BINDING(binding_to, idl, method, XPIDL_nsISupports_Release)\ nsresult_(MozExternalRefCountType) Release(void); /* Use this macro to declare functions that forward the behavior of this interface to another object. */ #define NS_FORWARD_NSISUPPORTS(_to) \ NS_IMETHOD QueryInterface(const nsIID & aIID, void * * aInstancePtr) override { return _to QueryInterface(aIID, aInstancePtr); } \ NS_IMETHOD_(MozExternalRefCountType) AddRef(void) override { return _to AddRef(); } \ NS_IMETHOD_(MozExternalRefCountType) Release(void) override { return _to Release(); } /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */ #define NS_FORWARD_SAFE_NSISUPPORTS(_to) \ NS_IMETHOD QueryInterface(const nsIID & aIID, void * * aInstancePtr) override { return !_to ? NS_ERROR_NULL_POINTER : _to->QueryInterface(aIID, aInstancePtr); } \ NS_IMETHOD_(MozExternalRefCountType) AddRef(void) override; \ NS_IMETHOD_(MozExternalRefCountType) Release(void) override; // %{C++:58-58 #include "nsISupportsUtils.h" // %} #endif /* __gen_nsISupports_h__ */