Copy as Markdown
Other Tools
/*
* DO NOT EDIT. THIS FILE IS GENERATED FROM $SRCDIR/widget/nsITouchBarInput.idl
*/
#ifndef __gen_nsITouchBarInput_h__
#define __gen_nsITouchBarInput_h__
#include "nsIArray.h"
#include "nsISupports.h"
#include "nsIURI.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: nsITouchBarInputCallback */
#define NS_ITOUCHBARINPUTCALLBACK_IID_STR "001ab07c-1b3a-4dbf-a657-fada0065ff55"
#define NS_ITOUCHBARINPUTCALLBACK_IID \
{0x001ab07c, 0x1b3a, 0x4dbf, \
{ 0xa6, 0x57, 0xfa, 0xda, 0x00, 0x65, 0xff, 0x55 }}
class NS_NO_VTABLE nsITouchBarInputCallback : public nsISupports {
public:
NS_DECLARE_STATIC_IID_ACCESSOR(NS_ITOUCHBARINPUTCALLBACK_IID)
/* Used by ToJSValue to check which scriptable interface is implemented. */
using ScriptableInterfaceType = nsITouchBarInputCallback;
/* void onCommand (); */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD OnCommand(void) = 0;
};
NS_DEFINE_STATIC_IID_ACCESSOR(nsITouchBarInputCallback, NS_ITOUCHBARINPUTCALLBACK_IID)
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSITOUCHBARINPUTCALLBACK \
NS_IMETHOD OnCommand(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_NSITOUCHBARINPUTCALLBACK \
nsresult OnCommand(void);
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSITOUCHBARINPUTCALLBACK(_to) \
NS_IMETHOD OnCommand(void) override { return _to OnCommand(); }
/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSITOUCHBARINPUTCALLBACK(_to) \
NS_IMETHOD OnCommand(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->OnCommand(); }
/* starting interface: nsITouchBarInput */
#define NS_ITOUCHBARINPUT_IID_STR "77441d17-f29c-49d7-982f-f20a5ab5a900"
#define NS_ITOUCHBARINPUT_IID \
{0x77441d17, 0xf29c, 0x49d7, \
{ 0x98, 0x2f, 0xf2, 0x0a, 0x5a, 0xb5, 0xa9, 0x00 }}
class NS_NO_VTABLE nsITouchBarInput : public nsISupports {
public:
NS_DECLARE_STATIC_IID_ACCESSOR(NS_ITOUCHBARINPUT_IID)
/* Used by ToJSValue to check which scriptable interface is implemented. */
using ScriptableInterfaceType = nsITouchBarInput;
/* readonly attribute AString key; */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetKey(nsAString& aKey) = 0;
/* attribute AString title; */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetTitle(nsAString& aTitle) = 0;
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetTitle(const nsAString& aTitle) = 0;
/* attribute nsIURI image; */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetImage(nsIURI **aImage) = 0;
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetImage(nsIURI *aImage) = 0;
/* attribute AString type; */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetType(nsAString& aType) = 0;
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetType(const nsAString& aType) = 0;
/* attribute nsITouchBarInputCallback callback; */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetCallback(nsITouchBarInputCallback **aCallback) = 0;
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetCallback(nsITouchBarInputCallback *aCallback) = 0;
/* attribute uint32_t color; */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetColor(uint32_t *aColor) = 0;
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetColor(uint32_t aColor) = 0;
/* attribute boolean disabled; */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetDisabled(bool *aDisabled) = 0;
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetDisabled(bool aDisabled) = 0;
/* attribute nsIArray children; */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetChildren(nsIArray **aChildren) = 0;
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetChildren(nsIArray *aChildren) = 0;
};
NS_DEFINE_STATIC_IID_ACCESSOR(nsITouchBarInput, NS_ITOUCHBARINPUT_IID)
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSITOUCHBARINPUT \
NS_IMETHOD GetKey(nsAString& aKey) override; \
NS_IMETHOD GetTitle(nsAString& aTitle) override; \
NS_IMETHOD SetTitle(const nsAString& aTitle) override; \
NS_IMETHOD GetImage(nsIURI **aImage) override; \
NS_IMETHOD SetImage(nsIURI *aImage) override; \
NS_IMETHOD GetType(nsAString& aType) override; \
NS_IMETHOD SetType(const nsAString& aType) override; \
NS_IMETHOD GetCallback(nsITouchBarInputCallback **aCallback) override; \
NS_IMETHOD SetCallback(nsITouchBarInputCallback *aCallback) override; \
NS_IMETHOD GetColor(uint32_t *aColor) override; \
NS_IMETHOD SetColor(uint32_t aColor) override; \
NS_IMETHOD GetDisabled(bool *aDisabled) override; \
NS_IMETHOD SetDisabled(bool aDisabled) override; \
NS_IMETHOD GetChildren(nsIArray **aChildren) override; \
NS_IMETHOD SetChildren(nsIArray *aChildren) 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_NSITOUCHBARINPUT \
nsresult GetKey(nsAString& aKey); \
nsresult GetTitle(nsAString& aTitle); \
nsresult SetTitle(const nsAString& aTitle); \
nsresult GetImage(nsIURI **aImage); \
nsresult SetImage(nsIURI *aImage); \
nsresult GetType(nsAString& aType); \
nsresult SetType(const nsAString& aType); \
nsresult GetCallback(nsITouchBarInputCallback **aCallback); \
nsresult SetCallback(nsITouchBarInputCallback *aCallback); \
nsresult GetColor(uint32_t *aColor); \
nsresult SetColor(uint32_t aColor); \
nsresult GetDisabled(bool *aDisabled); \
nsresult SetDisabled(bool aDisabled); \
nsresult GetChildren(nsIArray **aChildren); \
nsresult SetChildren(nsIArray *aChildren);
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSITOUCHBARINPUT(_to) \
NS_IMETHOD GetKey(nsAString& aKey) override { return _to GetKey(aKey); } \
NS_IMETHOD GetTitle(nsAString& aTitle) override { return _to GetTitle(aTitle); } \
NS_IMETHOD SetTitle(const nsAString& aTitle) override { return _to SetTitle(aTitle); } \
NS_IMETHOD GetImage(nsIURI **aImage) override { return _to GetImage(aImage); } \
NS_IMETHOD SetImage(nsIURI *aImage) override { return _to SetImage(aImage); } \
NS_IMETHOD GetType(nsAString& aType) override { return _to GetType(aType); } \
NS_IMETHOD SetType(const nsAString& aType) override { return _to SetType(aType); } \
NS_IMETHOD GetCallback(nsITouchBarInputCallback **aCallback) override { return _to GetCallback(aCallback); } \
NS_IMETHOD SetCallback(nsITouchBarInputCallback *aCallback) override { return _to SetCallback(aCallback); } \
NS_IMETHOD GetColor(uint32_t *aColor) override { return _to GetColor(aColor); } \
NS_IMETHOD SetColor(uint32_t aColor) override { return _to SetColor(aColor); } \
NS_IMETHOD GetDisabled(bool *aDisabled) override { return _to GetDisabled(aDisabled); } \
NS_IMETHOD SetDisabled(bool aDisabled) override { return _to SetDisabled(aDisabled); } \
NS_IMETHOD GetChildren(nsIArray **aChildren) override { return _to GetChildren(aChildren); } \
NS_IMETHOD SetChildren(nsIArray *aChildren) override { return _to SetChildren(aChildren); }
/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSITOUCHBARINPUT(_to) \
NS_IMETHOD GetKey(nsAString& aKey) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetKey(aKey); } \
NS_IMETHOD GetTitle(nsAString& aTitle) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetTitle(aTitle); } \
NS_IMETHOD SetTitle(const nsAString& aTitle) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetTitle(aTitle); } \
NS_IMETHOD GetImage(nsIURI **aImage) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetImage(aImage); } \
NS_IMETHOD SetImage(nsIURI *aImage) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetImage(aImage); } \
NS_IMETHOD GetType(nsAString& aType) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetType(aType); } \
NS_IMETHOD SetType(const nsAString& aType) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetType(aType); } \
NS_IMETHOD GetCallback(nsITouchBarInputCallback **aCallback) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCallback(aCallback); } \
NS_IMETHOD SetCallback(nsITouchBarInputCallback *aCallback) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetCallback(aCallback); } \
NS_IMETHOD GetColor(uint32_t *aColor) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetColor(aColor); } \
NS_IMETHOD SetColor(uint32_t aColor) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetColor(aColor); } \
NS_IMETHOD GetDisabled(bool *aDisabled) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDisabled(aDisabled); } \
NS_IMETHOD SetDisabled(bool aDisabled) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetDisabled(aDisabled); } \
NS_IMETHOD GetChildren(nsIArray **aChildren) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetChildren(aChildren); } \
NS_IMETHOD SetChildren(nsIArray *aChildren) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetChildren(aChildren); }
#endif /* __gen_nsITouchBarInput_h__ */