Copy as Markdown
Other Tools
/*
* DO NOT EDIT. THIS FILE IS GENERATED FROM $SRCDIR/widget/nsIGeckoViewBridge.idl
*/
#ifndef __gen_nsIGeckoViewBridge_h__
#define __gen_nsIGeckoViewBridge_h__
#include "nsISupports.h"
#include "js/Value.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 mozIDOMWindowProxy; /* forward declaration */
/* starting interface: nsIGeckoViewEventCallback */
#define NS_IGECKOVIEWEVENTCALLBACK_IID_STR "e64c39b8-b8ec-477d-aef5-89d517ff9219"
#define NS_IGECKOVIEWEVENTCALLBACK_IID \
{0xe64c39b8, 0xb8ec, 0x477d, \
{ 0xae, 0xf5, 0x89, 0xd5, 0x17, 0xff, 0x92, 0x19 }}
class NS_NO_VTABLE nsIGeckoViewEventCallback : public nsISupports {
public:
NS_DECLARE_STATIC_IID_ACCESSOR(NS_IGECKOVIEWEVENTCALLBACK_IID)
/* Used by ToJSValue to check which scriptable interface is implemented. */
using ScriptableInterfaceType = nsIGeckoViewEventCallback;
/* [implicit_jscontext] void onSuccess ([optional] in jsval data); */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD OnSuccess(JS::Handle<JS::Value> data, JSContext* cx) = 0;
/* [implicit_jscontext] void onError ([optional] in jsval data); */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD OnError(JS::Handle<JS::Value> data, JSContext* cx) = 0;
};
NS_DEFINE_STATIC_IID_ACCESSOR(nsIGeckoViewEventCallback, NS_IGECKOVIEWEVENTCALLBACK_IID)
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIGECKOVIEWEVENTCALLBACK \
NS_IMETHOD OnSuccess(JS::Handle<JS::Value> data, JSContext* cx) override; \
NS_IMETHOD OnError(JS::Handle<JS::Value> data, JSContext* cx) 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_NSIGECKOVIEWEVENTCALLBACK \
nsresult OnSuccess(JS::Handle<JS::Value> data, JSContext* cx); \
nsresult OnError(JS::Handle<JS::Value> data, JSContext* cx);
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIGECKOVIEWEVENTCALLBACK(_to) \
NS_IMETHOD OnSuccess(JS::Handle<JS::Value> data, JSContext* cx) override { return _to OnSuccess(data, cx); } \
NS_IMETHOD OnError(JS::Handle<JS::Value> data, JSContext* cx) override { return _to OnError(data, cx); }
/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIGECKOVIEWEVENTCALLBACK(_to) \
NS_IMETHOD OnSuccess(JS::Handle<JS::Value> data, JSContext* cx) override { return !_to ? NS_ERROR_NULL_POINTER : _to->OnSuccess(data, cx); } \
NS_IMETHOD OnError(JS::Handle<JS::Value> data, JSContext* cx) override { return !_to ? NS_ERROR_NULL_POINTER : _to->OnError(data, cx); }
/* starting interface: nsIGeckoViewEventFinalizer */
#define NS_IGECKOVIEWEVENTFINALIZER_IID_STR "819ee2db-d3b8-46dd-a476-40f89c49133c"
#define NS_IGECKOVIEWEVENTFINALIZER_IID \
{0x819ee2db, 0xd3b8, 0x46dd, \
{ 0xa4, 0x76, 0x40, 0xf8, 0x9c, 0x49, 0x13, 0x3c }}
class NS_NO_VTABLE nsIGeckoViewEventFinalizer : public nsISupports {
public:
NS_DECLARE_STATIC_IID_ACCESSOR(NS_IGECKOVIEWEVENTFINALIZER_IID)
/* Used by ToJSValue to check which scriptable interface is implemented. */
using ScriptableInterfaceType = nsIGeckoViewEventFinalizer;
/* void onFinalize (); */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD OnFinalize(void) = 0;
};
NS_DEFINE_STATIC_IID_ACCESSOR(nsIGeckoViewEventFinalizer, NS_IGECKOVIEWEVENTFINALIZER_IID)
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIGECKOVIEWEVENTFINALIZER \
NS_IMETHOD OnFinalize(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_NSIGECKOVIEWEVENTFINALIZER \
nsresult OnFinalize(void);
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIGECKOVIEWEVENTFINALIZER(_to) \
NS_IMETHOD OnFinalize(void) override { return _to OnFinalize(); }
/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIGECKOVIEWEVENTFINALIZER(_to) \
NS_IMETHOD OnFinalize(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->OnFinalize(); }
/* starting interface: nsIGeckoViewEventListener */
#define NS_IGECKOVIEWEVENTLISTENER_IID_STR "73569a75-78eb-4c7f-82b9-2d4f5ccf44c3"
#define NS_IGECKOVIEWEVENTLISTENER_IID \
{0x73569a75, 0x78eb, 0x4c7f, \
{ 0x82, 0xb9, 0x2d, 0x4f, 0x5c, 0xcf, 0x44, 0xc3 }}
class NS_NO_VTABLE nsIGeckoViewEventListener : public nsISupports {
public:
NS_DECLARE_STATIC_IID_ACCESSOR(NS_IGECKOVIEWEVENTLISTENER_IID)
/* Used by ToJSValue to check which scriptable interface is implemented. */
using ScriptableInterfaceType = nsIGeckoViewEventListener;
/* void onEvent (in AString event, [optional] in jsval data, [optional] in nsIGeckoViewEventCallback callback); */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD OnEvent(const nsAString& event, JS::Handle<JS::Value> data, nsIGeckoViewEventCallback *callback) = 0;
};
NS_DEFINE_STATIC_IID_ACCESSOR(nsIGeckoViewEventListener, NS_IGECKOVIEWEVENTLISTENER_IID)
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIGECKOVIEWEVENTLISTENER \
NS_IMETHOD OnEvent(const nsAString& event, JS::Handle<JS::Value> data, nsIGeckoViewEventCallback *callback) 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_NSIGECKOVIEWEVENTLISTENER \
nsresult OnEvent(const nsAString& event, JS::Handle<JS::Value> data, nsIGeckoViewEventCallback *callback);
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIGECKOVIEWEVENTLISTENER(_to) \
NS_IMETHOD OnEvent(const nsAString& event, JS::Handle<JS::Value> data, nsIGeckoViewEventCallback *callback) override { return _to OnEvent(event, data, callback); }
/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIGECKOVIEWEVENTLISTENER(_to) \
NS_IMETHOD OnEvent(const nsAString& event, JS::Handle<JS::Value> data, nsIGeckoViewEventCallback *callback) override { return !_to ? NS_ERROR_NULL_POINTER : _to->OnEvent(event, data, callback); }
/* starting interface: nsIGeckoViewEventDispatcher */
#define NS_IGECKOVIEWEVENTDISPATCHER_IID_STR "e98bf792-4145-411e-b298-8219d9b03817"
#define NS_IGECKOVIEWEVENTDISPATCHER_IID \
{0xe98bf792, 0x4145, 0x411e, \
{ 0xb2, 0x98, 0x82, 0x19, 0xd9, 0xb0, 0x38, 0x17 }}
class NS_NO_VTABLE nsIGeckoViewEventDispatcher : public nsISupports {
public:
NS_DECLARE_STATIC_IID_ACCESSOR(NS_IGECKOVIEWEVENTDISPATCHER_IID)
/* Used by ToJSValue to check which scriptable interface is implemented. */
using ScriptableInterfaceType = nsIGeckoViewEventDispatcher;
/* [implicit_jscontext] void dispatch (in jsval event, [optional] in jsval data, [optional] in nsIGeckoViewEventCallback callback, [optional] in nsIGeckoViewEventFinalizer finalizer); */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD Dispatch(JS::Handle<JS::Value> event, JS::Handle<JS::Value> data, nsIGeckoViewEventCallback *callback, nsIGeckoViewEventFinalizer *finalizer, JSContext* cx) = 0;
/* [implicit_jscontext] void registerListener (in nsIGeckoViewEventListener listener, in jsval events); */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD RegisterListener(nsIGeckoViewEventListener *listener, JS::Handle<JS::Value> events, JSContext* cx) = 0;
/* [implicit_jscontext] void unregisterListener (in nsIGeckoViewEventListener listener, in jsval events); */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD UnregisterListener(nsIGeckoViewEventListener *listener, JS::Handle<JS::Value> events, JSContext* cx) = 0;
};
NS_DEFINE_STATIC_IID_ACCESSOR(nsIGeckoViewEventDispatcher, NS_IGECKOVIEWEVENTDISPATCHER_IID)
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIGECKOVIEWEVENTDISPATCHER \
NS_IMETHOD Dispatch(JS::Handle<JS::Value> event, JS::Handle<JS::Value> data, nsIGeckoViewEventCallback *callback, nsIGeckoViewEventFinalizer *finalizer, JSContext* cx) override; \
NS_IMETHOD RegisterListener(nsIGeckoViewEventListener *listener, JS::Handle<JS::Value> events, JSContext* cx) override; \
NS_IMETHOD UnregisterListener(nsIGeckoViewEventListener *listener, JS::Handle<JS::Value> events, JSContext* cx) 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_NSIGECKOVIEWEVENTDISPATCHER \
nsresult Dispatch(JS::Handle<JS::Value> event, JS::Handle<JS::Value> data, nsIGeckoViewEventCallback *callback, nsIGeckoViewEventFinalizer *finalizer, JSContext* cx); \
nsresult RegisterListener(nsIGeckoViewEventListener *listener, JS::Handle<JS::Value> events, JSContext* cx); \
nsresult UnregisterListener(nsIGeckoViewEventListener *listener, JS::Handle<JS::Value> events, JSContext* cx);
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIGECKOVIEWEVENTDISPATCHER(_to) \
NS_IMETHOD Dispatch(JS::Handle<JS::Value> event, JS::Handle<JS::Value> data, nsIGeckoViewEventCallback *callback, nsIGeckoViewEventFinalizer *finalizer, JSContext* cx) override { return _to Dispatch(event, data, callback, finalizer, cx); } \
NS_IMETHOD RegisterListener(nsIGeckoViewEventListener *listener, JS::Handle<JS::Value> events, JSContext* cx) override { return _to RegisterListener(listener, events, cx); } \
NS_IMETHOD UnregisterListener(nsIGeckoViewEventListener *listener, JS::Handle<JS::Value> events, JSContext* cx) override { return _to UnregisterListener(listener, events, cx); }
/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIGECKOVIEWEVENTDISPATCHER(_to) \
NS_IMETHOD Dispatch(JS::Handle<JS::Value> event, JS::Handle<JS::Value> data, nsIGeckoViewEventCallback *callback, nsIGeckoViewEventFinalizer *finalizer, JSContext* cx) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Dispatch(event, data, callback, finalizer, cx); } \
NS_IMETHOD RegisterListener(nsIGeckoViewEventListener *listener, JS::Handle<JS::Value> events, JSContext* cx) override { return !_to ? NS_ERROR_NULL_POINTER : _to->RegisterListener(listener, events, cx); } \
NS_IMETHOD UnregisterListener(nsIGeckoViewEventListener *listener, JS::Handle<JS::Value> events, JSContext* cx) override { return !_to ? NS_ERROR_NULL_POINTER : _to->UnregisterListener(listener, events, cx); }
/* starting interface: nsIGeckoViewView */
#define NS_IGECKOVIEWVIEW_IID_STR "60a78a94-6117-432f-9d49-304913a931c5"
#define NS_IGECKOVIEWVIEW_IID \
{0x60a78a94, 0x6117, 0x432f, \
{ 0x9d, 0x49, 0x30, 0x49, 0x13, 0xa9, 0x31, 0xc5 }}
class NS_NO_VTABLE nsIGeckoViewView : public nsIGeckoViewEventDispatcher {
public:
NS_DECLARE_STATIC_IID_ACCESSOR(NS_IGECKOVIEWVIEW_IID)
/* Used by ToJSValue to check which scriptable interface is implemented. */
using ScriptableInterfaceType = nsIGeckoViewView;
/* [implicit_jscontext] readonly attribute jsval initData; */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetInitData(JSContext* cx, JS::MutableHandle<JS::Value> aInitData) = 0;
};
NS_DEFINE_STATIC_IID_ACCESSOR(nsIGeckoViewView, NS_IGECKOVIEWVIEW_IID)
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIGECKOVIEWVIEW \
NS_IMETHOD GetInitData(JSContext* cx, JS::MutableHandle<JS::Value> aInitData) 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_NSIGECKOVIEWVIEW \
nsresult GetInitData(JSContext* cx, JS::MutableHandle<JS::Value> aInitData);
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIGECKOVIEWVIEW(_to) \
NS_IMETHOD GetInitData(JSContext* cx, JS::MutableHandle<JS::Value> aInitData) override { return _to GetInitData(cx, aInitData); }
/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIGECKOVIEWVIEW(_to) \
NS_IMETHOD GetInitData(JSContext* cx, JS::MutableHandle<JS::Value> aInitData) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetInitData(cx, aInitData); }
/* starting interface: nsIGeckoViewBridge */
#define NS_IGECKOVIEWBRIDGE_IID_STR "1beb70d3-70f3-4742-98cc-a3d301b26c0c"
#define NS_IGECKOVIEWBRIDGE_IID \
{0x1beb70d3, 0x70f3, 0x4742, \
{ 0x98, 0xcc, 0xa3, 0xd3, 0x01, 0xb2, 0x6c, 0x0c }}
class NS_NO_VTABLE nsIGeckoViewBridge : public nsIGeckoViewEventDispatcher {
public:
NS_DECLARE_STATIC_IID_ACCESSOR(NS_IGECKOVIEWBRIDGE_IID)
/* Used by ToJSValue to check which scriptable interface is implemented. */
using ScriptableInterfaceType = nsIGeckoViewBridge;
/* nsIGeckoViewEventDispatcher getDispatcherByName (in string name); */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetDispatcherByName(const char * name, nsIGeckoViewEventDispatcher **_retval) = 0;
};
NS_DEFINE_STATIC_IID_ACCESSOR(nsIGeckoViewBridge, NS_IGECKOVIEWBRIDGE_IID)
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIGECKOVIEWBRIDGE \
NS_IMETHOD GetDispatcherByName(const char * name, nsIGeckoViewEventDispatcher **_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_NSIGECKOVIEWBRIDGE \
nsresult GetDispatcherByName(const char * name, nsIGeckoViewEventDispatcher **_retval);
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIGECKOVIEWBRIDGE(_to) \
NS_IMETHOD GetDispatcherByName(const char * name, nsIGeckoViewEventDispatcher **_retval) override { return _to GetDispatcherByName(name, _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_NSIGECKOVIEWBRIDGE(_to) \
NS_IMETHOD GetDispatcherByName(const char * name, nsIGeckoViewEventDispatcher **_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDispatcherByName(name, _retval); }
#endif /* __gen_nsIGeckoViewBridge_h__ */