Copy as Markdown

Other Tools

/*
* DO NOT EDIT. THIS FILE IS GENERATED FROM $SRCDIR/widget/nsIMacDockSupport.idl
*/
#ifndef __gen_nsIMacDockSupport_h__
#define __gen_nsIMacDockSupport_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 nsIStandaloneNativeMenu; /* forward declaration */
/* starting interface: nsIMacDockSupport */
#define NS_IMACDOCKSUPPORT_IID_STR "8be66b0c-5f71-4b74-98cf-6c2551b999b1"
#define NS_IMACDOCKSUPPORT_IID \
{0x8be66b0c, 0x5f71, 0x4b74, \
{ 0x98, 0xcf, 0x6c, 0x25, 0x51, 0xb9, 0x99, 0xb1 }}
class NS_NO_VTABLE nsIMacDockSupport : public nsISupports {
public:
NS_DECLARE_STATIC_IID_ACCESSOR(NS_IMACDOCKSUPPORT_IID)
/* Used by ToJSValue to check which scriptable interface is implemented. */
using ScriptableInterfaceType = nsIMacDockSupport;
/* attribute nsIStandaloneNativeMenu dockMenu; */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetDockMenu(nsIStandaloneNativeMenu **aDockMenu) = 0;
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetDockMenu(nsIStandaloneNativeMenu *aDockMenu) = 0;
/* void activateApplication (in boolean aIgnoreOtherApplications); */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD ActivateApplication(bool aIgnoreOtherApplications) = 0;
/* attribute AString badgeText; */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetBadgeText(nsAString& aBadgeText) = 0;
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetBadgeText(const nsAString& aBadgeText) = 0;
/* readonly attribute boolean isAppInDock; */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetIsAppInDock(bool *aIsAppInDock) = 0;
/* boolean ensureAppIsPinnedToDock ([optional] in AString aAppPath, [optional] in AString aAppToReplacePath); */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD EnsureAppIsPinnedToDock(const nsAString& aAppPath, const nsAString& aAppToReplacePath, bool *_retval) = 0;
};
NS_DEFINE_STATIC_IID_ACCESSOR(nsIMacDockSupport, NS_IMACDOCKSUPPORT_IID)
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIMACDOCKSUPPORT \
NS_IMETHOD GetDockMenu(nsIStandaloneNativeMenu **aDockMenu) override; \
NS_IMETHOD SetDockMenu(nsIStandaloneNativeMenu *aDockMenu) override; \
NS_IMETHOD ActivateApplication(bool aIgnoreOtherApplications) override; \
NS_IMETHOD GetBadgeText(nsAString& aBadgeText) override; \
NS_IMETHOD SetBadgeText(const nsAString& aBadgeText) override; \
NS_IMETHOD GetIsAppInDock(bool *aIsAppInDock) override; \
NS_IMETHOD EnsureAppIsPinnedToDock(const nsAString& aAppPath, const nsAString& aAppToReplacePath, bool *_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_NSIMACDOCKSUPPORT \
nsresult GetDockMenu(nsIStandaloneNativeMenu **aDockMenu); \
nsresult SetDockMenu(nsIStandaloneNativeMenu *aDockMenu); \
nsresult ActivateApplication(bool aIgnoreOtherApplications); \
nsresult GetBadgeText(nsAString& aBadgeText); \
nsresult SetBadgeText(const nsAString& aBadgeText); \
nsresult GetIsAppInDock(bool *aIsAppInDock); \
nsresult EnsureAppIsPinnedToDock(const nsAString& aAppPath, const nsAString& aAppToReplacePath, bool *_retval);
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIMACDOCKSUPPORT(_to) \
NS_IMETHOD GetDockMenu(nsIStandaloneNativeMenu **aDockMenu) override { return _to GetDockMenu(aDockMenu); } \
NS_IMETHOD SetDockMenu(nsIStandaloneNativeMenu *aDockMenu) override { return _to SetDockMenu(aDockMenu); } \
NS_IMETHOD ActivateApplication(bool aIgnoreOtherApplications) override { return _to ActivateApplication(aIgnoreOtherApplications); } \
NS_IMETHOD GetBadgeText(nsAString& aBadgeText) override { return _to GetBadgeText(aBadgeText); } \
NS_IMETHOD SetBadgeText(const nsAString& aBadgeText) override { return _to SetBadgeText(aBadgeText); } \
NS_IMETHOD GetIsAppInDock(bool *aIsAppInDock) override { return _to GetIsAppInDock(aIsAppInDock); } \
NS_IMETHOD EnsureAppIsPinnedToDock(const nsAString& aAppPath, const nsAString& aAppToReplacePath, bool *_retval) override { return _to EnsureAppIsPinnedToDock(aAppPath, aAppToReplacePath, _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_NSIMACDOCKSUPPORT(_to) \
NS_IMETHOD GetDockMenu(nsIStandaloneNativeMenu **aDockMenu) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDockMenu(aDockMenu); } \
NS_IMETHOD SetDockMenu(nsIStandaloneNativeMenu *aDockMenu) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetDockMenu(aDockMenu); } \
NS_IMETHOD ActivateApplication(bool aIgnoreOtherApplications) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ActivateApplication(aIgnoreOtherApplications); } \
NS_IMETHOD GetBadgeText(nsAString& aBadgeText) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetBadgeText(aBadgeText); } \
NS_IMETHOD SetBadgeText(const nsAString& aBadgeText) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetBadgeText(aBadgeText); } \
NS_IMETHOD GetIsAppInDock(bool *aIsAppInDock) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIsAppInDock(aIsAppInDock); } \
NS_IMETHOD EnsureAppIsPinnedToDock(const nsAString& aAppPath, const nsAString& aAppToReplacePath, bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->EnsureAppIsPinnedToDock(aAppPath, aAppToReplacePath, _retval); }
#endif /* __gen_nsIMacDockSupport_h__ */