Copy as Markdown

Other Tools

/*
* DO NOT EDIT. THIS FILE IS GENERATED FROM $SRCDIR/dom/interfaces/base/nsIGeckoViewServiceWorker.idl
*/
#ifndef __gen_nsIGeckoViewServiceWorker_h__
#define __gen_nsIGeckoViewServiceWorker_h__
#include "nsISupports.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
class nsIOpenWindowInfo; /* forward declaration */
class nsIURI; /* forward declaration */
/* starting interface: nsIGeckoViewServiceWorker */
#define NS_IGECKOVIEWSERVICEWORKER_IID_STR "e778cce6-a231-42f0-86e4-574600524393"
#define NS_IGECKOVIEWSERVICEWORKER_IID \
{0xe778cce6, 0xa231, 0x42f0, \
{ 0x86, 0xe4, 0x57, 0x46, 0x00, 0x52, 0x43, 0x93 }}
class NS_NO_VTABLE nsIGeckoViewServiceWorker : public nsISupports {
public:
NS_DECLARE_STATIC_IID_ACCESSOR(NS_IGECKOVIEWSERVICEWORKER_IID)
/* Used by ToJSValue to check which scriptable interface is implemented. */
using ScriptableInterfaceType = nsIGeckoViewServiceWorker;
/* Promise openWindow (in nsIURI uri, in nsIOpenWindowInfo aOpenWindowInfo); */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD OpenWindow(nsIURI *uri, nsIOpenWindowInfo *aOpenWindowInfo, ::mozilla::dom::Promise * * _retval) = 0;
};
NS_DEFINE_STATIC_IID_ACCESSOR(nsIGeckoViewServiceWorker, NS_IGECKOVIEWSERVICEWORKER_IID)
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIGECKOVIEWSERVICEWORKER \
NS_IMETHOD OpenWindow(nsIURI *uri, nsIOpenWindowInfo *aOpenWindowInfo, ::mozilla::dom::Promise * * _retval) 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_NSIGECKOVIEWSERVICEWORKER \
nsresult OpenWindow(nsIURI *uri, nsIOpenWindowInfo *aOpenWindowInfo, ::mozilla::dom::Promise * * _retval);
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIGECKOVIEWSERVICEWORKER(_to) \
NS_IMETHOD OpenWindow(nsIURI *uri, nsIOpenWindowInfo *aOpenWindowInfo, ::mozilla::dom::Promise * * _retval) override { return _to OpenWindow(uri, aOpenWindowInfo, _retval); }
/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIGECKOVIEWSERVICEWORKER(_to) \
NS_IMETHOD OpenWindow(nsIURI *uri, nsIOpenWindowInfo *aOpenWindowInfo, ::mozilla::dom::Promise * * _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->OpenWindow(uri, aOpenWindowInfo, _retval); }
#endif /* __gen_nsIGeckoViewServiceWorker_h__ */