Copy as Markdown

Other Tools

/*
* DO NOT EDIT. THIS FILE IS GENERATED FROM $SRCDIR/accessible/interfaces/nsIAccessibleMacInterface.idl
*/
#ifndef __gen_nsIAccessibleMacInterface_h__
#define __gen_nsIAccessibleMacInterface_h__
#include "nsISupports.h"
#include "nsTArray.h"
#include "js/Value.h"
/* For IDL files that don't want to include root IDL files. */
#ifndef NS_NO_VTABLE
#define NS_NO_VTABLE
#endif
#include <objc/objc.h>
#define NS_ACCESSIBLE_MAC_EVENT_TOPIC "accessible-mac-event"
/* starting interface: nsIAccessibleMacNSObjectWrapper */
#define NS_IACCESSIBLEMACNSOBJECTWRAPPER_IID_STR "4582bb77-de03-4ed1-a9b4-d482d97c0129"
#define NS_IACCESSIBLEMACNSOBJECTWRAPPER_IID \
{0x4582bb77, 0xde03, 0x4ed1, \
{ 0xa9, 0xb4, 0xd4, 0x82, 0xd9, 0x7c, 0x01, 0x29 }}
class NS_NO_VTABLE nsIAccessibleMacNSObjectWrapper : public nsISupports {
public:
NS_DECLARE_STATIC_IID_ACCESSOR(NS_IACCESSIBLEMACNSOBJECTWRAPPER_IID)
/* Used by ToJSValue to check which scriptable interface is implemented. */
using ScriptableInterfaceType = nsIAccessibleMacNSObjectWrapper;
/* [noscript,nostdcall,notxpcom] NativeObjectId GetNativeObject (); */
virtual id GetNativeObject(void) = 0;
};
NS_DEFINE_STATIC_IID_ACCESSOR(nsIAccessibleMacNSObjectWrapper, NS_IACCESSIBLEMACNSOBJECTWRAPPER_IID)
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIACCESSIBLEMACNSOBJECTWRAPPER \
virtual id GetNativeObject(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_NSIACCESSIBLEMACNSOBJECTWRAPPER \
id GetNativeObject(void);
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIACCESSIBLEMACNSOBJECTWRAPPER(_to) \
virtual id GetNativeObject(void) override { return _to GetNativeObject(); }
/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIACCESSIBLEMACNSOBJECTWRAPPER(_to) \
virtual id GetNativeObject(void) override;
/* starting interface: nsIAccessibleMacInterface */
#define NS_IACCESSIBLEMACINTERFACE_IID_STR "9d27cf21-66fc-47dc-8a07-98edb18707b1"
#define NS_IACCESSIBLEMACINTERFACE_IID \
{0x9d27cf21, 0x66fc, 0x47dc, \
{ 0x8a, 0x07, 0x98, 0xed, 0xb1, 0x87, 0x07, 0xb1 }}
class NS_NO_VTABLE nsIAccessibleMacInterface : public nsISupports {
public:
NS_DECLARE_STATIC_IID_ACCESSOR(NS_IACCESSIBLEMACINTERFACE_IID)
/* Used by ToJSValue to check which scriptable interface is implemented. */
using ScriptableInterfaceType = nsIAccessibleMacInterface;
/* readonly attribute Array<AString> attributeNames; */
NS_IMETHOD GetAttributeNames(nsTArray<nsString >& aAttributeNames) = 0;
/* readonly attribute Array<AString> parameterizedAttributeNames; */
NS_IMETHOD GetParameterizedAttributeNames(nsTArray<nsString >& aParameterizedAttributeNames) = 0;
/* readonly attribute Array<AString> actionNames; */
NS_IMETHOD GetActionNames(nsTArray<nsString >& aActionNames) = 0;
/* [implicit_jscontext] jsval getAttributeValue (in AString attributeName); */
NS_IMETHOD GetAttributeValue(const nsAString& attributeName, JSContext* cx, JS::MutableHandle<JS::Value> _retval) = 0;
/* [implicit_jscontext] jsval getParameterizedAttributeValue (in AString attributeName, in jsval parameter); */
NS_IMETHOD GetParameterizedAttributeValue(const nsAString& attributeName, JS::Handle<JS::Value> parameter, JSContext* cx, JS::MutableHandle<JS::Value> _retval) = 0;
/* void performAction (in AString actionName); */
NS_IMETHOD PerformAction(const nsAString& actionName) = 0;
/* boolean isAttributeSettable (in AString attributeName); */
NS_IMETHOD IsAttributeSettable(const nsAString& attributeName, bool *_retval) = 0;
/* [implicit_jscontext] void setAttributeValue (in AString attributeName, in jsval attributeValue); */
NS_IMETHOD SetAttributeValue(const nsAString& attributeName, JS::Handle<JS::Value> attributeValue, JSContext* cx) = 0;
};
NS_DEFINE_STATIC_IID_ACCESSOR(nsIAccessibleMacInterface, NS_IACCESSIBLEMACINTERFACE_IID)
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIACCESSIBLEMACINTERFACE \
NS_IMETHOD GetAttributeNames(nsTArray<nsString >& aAttributeNames) override; \
NS_IMETHOD GetParameterizedAttributeNames(nsTArray<nsString >& aParameterizedAttributeNames) override; \
NS_IMETHOD GetActionNames(nsTArray<nsString >& aActionNames) override; \
NS_IMETHOD GetAttributeValue(const nsAString& attributeName, JSContext* cx, JS::MutableHandle<JS::Value> _retval) override; \
NS_IMETHOD GetParameterizedAttributeValue(const nsAString& attributeName, JS::Handle<JS::Value> parameter, JSContext* cx, JS::MutableHandle<JS::Value> _retval) override; \
NS_IMETHOD PerformAction(const nsAString& actionName) override; \
NS_IMETHOD IsAttributeSettable(const nsAString& attributeName, bool *_retval) override; \
NS_IMETHOD SetAttributeValue(const nsAString& attributeName, JS::Handle<JS::Value> attributeValue, 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_NSIACCESSIBLEMACINTERFACE \
nsresult GetAttributeNames(nsTArray<nsString >& aAttributeNames); \
nsresult GetParameterizedAttributeNames(nsTArray<nsString >& aParameterizedAttributeNames); \
nsresult GetActionNames(nsTArray<nsString >& aActionNames); \
nsresult GetAttributeValue(const nsAString& attributeName, JSContext* cx, JS::MutableHandle<JS::Value> _retval); \
nsresult GetParameterizedAttributeValue(const nsAString& attributeName, JS::Handle<JS::Value> parameter, JSContext* cx, JS::MutableHandle<JS::Value> _retval); \
nsresult PerformAction(const nsAString& actionName); \
nsresult IsAttributeSettable(const nsAString& attributeName, bool *_retval); \
nsresult SetAttributeValue(const nsAString& attributeName, JS::Handle<JS::Value> attributeValue, JSContext* cx);
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIACCESSIBLEMACINTERFACE(_to) \
NS_IMETHOD GetAttributeNames(nsTArray<nsString >& aAttributeNames) override { return _to GetAttributeNames(aAttributeNames); } \
NS_IMETHOD GetParameterizedAttributeNames(nsTArray<nsString >& aParameterizedAttributeNames) override { return _to GetParameterizedAttributeNames(aParameterizedAttributeNames); } \
NS_IMETHOD GetActionNames(nsTArray<nsString >& aActionNames) override { return _to GetActionNames(aActionNames); } \
NS_IMETHOD GetAttributeValue(const nsAString& attributeName, JSContext* cx, JS::MutableHandle<JS::Value> _retval) override { return _to GetAttributeValue(attributeName, cx, _retval); } \
NS_IMETHOD GetParameterizedAttributeValue(const nsAString& attributeName, JS::Handle<JS::Value> parameter, JSContext* cx, JS::MutableHandle<JS::Value> _retval) override { return _to GetParameterizedAttributeValue(attributeName, parameter, cx, _retval); } \
NS_IMETHOD PerformAction(const nsAString& actionName) override { return _to PerformAction(actionName); } \
NS_IMETHOD IsAttributeSettable(const nsAString& attributeName, bool *_retval) override { return _to IsAttributeSettable(attributeName, _retval); } \
NS_IMETHOD SetAttributeValue(const nsAString& attributeName, JS::Handle<JS::Value> attributeValue, JSContext* cx) override { return _to SetAttributeValue(attributeName, attributeValue, 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_NSIACCESSIBLEMACINTERFACE(_to) \
NS_IMETHOD GetAttributeNames(nsTArray<nsString >& aAttributeNames) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAttributeNames(aAttributeNames); } \
NS_IMETHOD GetParameterizedAttributeNames(nsTArray<nsString >& aParameterizedAttributeNames) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetParameterizedAttributeNames(aParameterizedAttributeNames); } \
NS_IMETHOD GetActionNames(nsTArray<nsString >& aActionNames) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetActionNames(aActionNames); } \
NS_IMETHOD GetAttributeValue(const nsAString& attributeName, JSContext* cx, JS::MutableHandle<JS::Value> _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAttributeValue(attributeName, cx, _retval); } \
NS_IMETHOD GetParameterizedAttributeValue(const nsAString& attributeName, JS::Handle<JS::Value> parameter, JSContext* cx, JS::MutableHandle<JS::Value> _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetParameterizedAttributeValue(attributeName, parameter, cx, _retval); } \
NS_IMETHOD PerformAction(const nsAString& actionName) override { return !_to ? NS_ERROR_NULL_POINTER : _to->PerformAction(actionName); } \
NS_IMETHOD IsAttributeSettable(const nsAString& attributeName, bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->IsAttributeSettable(attributeName, _retval); } \
NS_IMETHOD SetAttributeValue(const nsAString& attributeName, JS::Handle<JS::Value> attributeValue, JSContext* cx) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetAttributeValue(attributeName, attributeValue, cx); }
/* starting interface: nsIAccessibleMacEvent */
#define NS_IACCESSIBLEMACEVENT_IID_STR "6153f07b-2260-495b-9899-9699d9fe323e"
#define NS_IACCESSIBLEMACEVENT_IID \
{0x6153f07b, 0x2260, 0x495b, \
{ 0x98, 0x99, 0x96, 0x99, 0xd9, 0xfe, 0x32, 0x3e }}
class NS_NO_VTABLE nsIAccessibleMacEvent : public nsISupports {
public:
NS_DECLARE_STATIC_IID_ACCESSOR(NS_IACCESSIBLEMACEVENT_IID)
/* Used by ToJSValue to check which scriptable interface is implemented. */
using ScriptableInterfaceType = nsIAccessibleMacEvent;
/* readonly attribute nsIAccessibleMacInterface macIface; */
NS_IMETHOD GetMacIface(nsIAccessibleMacInterface **aMacIface) = 0;
/* [implicit_jscontext] readonly attribute jsval data; */
NS_IMETHOD GetData(JSContext* cx, JS::MutableHandle<JS::Value> aData) = 0;
};
NS_DEFINE_STATIC_IID_ACCESSOR(nsIAccessibleMacEvent, NS_IACCESSIBLEMACEVENT_IID)
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIACCESSIBLEMACEVENT \
NS_IMETHOD GetMacIface(nsIAccessibleMacInterface **aMacIface) override; \
NS_IMETHOD GetData(JSContext* cx, JS::MutableHandle<JS::Value> aData) 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_NSIACCESSIBLEMACEVENT \
nsresult GetMacIface(nsIAccessibleMacInterface **aMacIface); \
nsresult GetData(JSContext* cx, JS::MutableHandle<JS::Value> aData);
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIACCESSIBLEMACEVENT(_to) \
NS_IMETHOD GetMacIface(nsIAccessibleMacInterface **aMacIface) override { return _to GetMacIface(aMacIface); } \
NS_IMETHOD GetData(JSContext* cx, JS::MutableHandle<JS::Value> aData) override { return _to GetData(cx, aData); }
/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIACCESSIBLEMACEVENT(_to) \
NS_IMETHOD GetMacIface(nsIAccessibleMacInterface **aMacIface) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMacIface(aMacIface); } \
NS_IMETHOD GetData(JSContext* cx, JS::MutableHandle<JS::Value> aData) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetData(cx, aData); }
#endif /* __gen_nsIAccessibleMacInterface_h__ */