Copy as Markdown

Other Tools

/*
* DO NOT EDIT. THIS FILE IS GENERATED FROM $SRCDIR/widget/nsITouchBarUpdater.idl
*/
#ifndef __gen_nsITouchBarUpdater_h__
#define __gen_nsITouchBarUpdater_h__
#include "nsIArray.h"
#include "nsIBaseWindow.h"
#include "nsISupports.h"
#include "nsITouchBarInput.h"
#include "nsTArray.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: nsITouchBarUpdater */
#define NS_ITOUCHBARUPDATER_IID_STR "38f396e2-93c9-4a77-aaf7-2d50b9962186"
#define NS_ITOUCHBARUPDATER_IID \
{0x38f396e2, 0x93c9, 0x4a77, \
{ 0xaa, 0xf7, 0x2d, 0x50, 0xb9, 0x96, 0x21, 0x86 }}
class NS_NO_VTABLE nsITouchBarUpdater : public nsISupports {
public:
NS_DECLARE_STATIC_IID_ACCESSOR(NS_ITOUCHBARUPDATER_IID)
/* Used by ToJSValue to check which scriptable interface is implemented. */
using ScriptableInterfaceType = nsITouchBarUpdater;
/* void updateTouchBarInputs (in nsIBaseWindow aWindow, in Array<nsITouchBarInput> aInputs); */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD UpdateTouchBarInputs(nsIBaseWindow *aWindow, const nsTArray<RefPtr<nsITouchBarInput>>& aInputs) = 0;
/* void enterCustomizeMode (); */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD EnterCustomizeMode(void) = 0;
/* boolean isTouchBarInitialized (); */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD IsTouchBarInitialized(bool *_retval) = 0;
/* void setTouchBarInitialized (in boolean aIsInitialized); */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetTouchBarInitialized(bool aIsInitialized) = 0;
/* void showPopover (in nsIBaseWindow aWindow, in nsITouchBarInput aPopover, in boolean aShowing); */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD ShowPopover(nsIBaseWindow *aWindow, nsITouchBarInput *aPopover, bool aShowing) = 0;
};
NS_DEFINE_STATIC_IID_ACCESSOR(nsITouchBarUpdater, NS_ITOUCHBARUPDATER_IID)
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSITOUCHBARUPDATER \
NS_IMETHOD UpdateTouchBarInputs(nsIBaseWindow *aWindow, const nsTArray<RefPtr<nsITouchBarInput>>& aInputs) override; \
NS_IMETHOD EnterCustomizeMode(void) override; \
NS_IMETHOD IsTouchBarInitialized(bool *_retval) override; \
NS_IMETHOD SetTouchBarInitialized(bool aIsInitialized) override; \
NS_IMETHOD ShowPopover(nsIBaseWindow *aWindow, nsITouchBarInput *aPopover, bool aShowing) 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_NSITOUCHBARUPDATER \
nsresult UpdateTouchBarInputs(nsIBaseWindow *aWindow, const nsTArray<RefPtr<nsITouchBarInput>>& aInputs); \
nsresult EnterCustomizeMode(void); \
nsresult IsTouchBarInitialized(bool *_retval); \
nsresult SetTouchBarInitialized(bool aIsInitialized); \
nsresult ShowPopover(nsIBaseWindow *aWindow, nsITouchBarInput *aPopover, bool aShowing);
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSITOUCHBARUPDATER(_to) \
NS_IMETHOD UpdateTouchBarInputs(nsIBaseWindow *aWindow, const nsTArray<RefPtr<nsITouchBarInput>>& aInputs) override { return _to UpdateTouchBarInputs(aWindow, aInputs); } \
NS_IMETHOD EnterCustomizeMode(void) override { return _to EnterCustomizeMode(); } \
NS_IMETHOD IsTouchBarInitialized(bool *_retval) override { return _to IsTouchBarInitialized(_retval); } \
NS_IMETHOD SetTouchBarInitialized(bool aIsInitialized) override { return _to SetTouchBarInitialized(aIsInitialized); } \
NS_IMETHOD ShowPopover(nsIBaseWindow *aWindow, nsITouchBarInput *aPopover, bool aShowing) override { return _to ShowPopover(aWindow, aPopover, aShowing); }
/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSITOUCHBARUPDATER(_to) \
NS_IMETHOD UpdateTouchBarInputs(nsIBaseWindow *aWindow, const nsTArray<RefPtr<nsITouchBarInput>>& aInputs) override { return !_to ? NS_ERROR_NULL_POINTER : _to->UpdateTouchBarInputs(aWindow, aInputs); } \
NS_IMETHOD EnterCustomizeMode(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->EnterCustomizeMode(); } \
NS_IMETHOD IsTouchBarInitialized(bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->IsTouchBarInitialized(_retval); } \
NS_IMETHOD SetTouchBarInitialized(bool aIsInitialized) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetTouchBarInitialized(aIsInitialized); } \
NS_IMETHOD ShowPopover(nsIBaseWindow *aWindow, nsITouchBarInput *aPopover, bool aShowing) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ShowPopover(aWindow, aPopover, aShowing); }
#endif /* __gen_nsITouchBarUpdater_h__ */