Copy as Markdown

Other Tools

/*
* DO NOT EDIT. THIS FILE IS GENERATED FROM $SRCDIR/widget/nsITaskbarPreviewButton.idl
*/
#ifndef __gen_nsITaskbarPreviewButton_h__
#define __gen_nsITaskbarPreviewButton_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 imgIContainer; /* forward declaration */
/* starting interface: nsITaskbarPreviewButton */
#define NS_ITASKBARPREVIEWBUTTON_IID_STR "ced8842d-fe37-4767-9a8e-fdfa56510c75"
#define NS_ITASKBARPREVIEWBUTTON_IID \
{0xced8842d, 0xfe37, 0x4767, \
{ 0x9a, 0x8e, 0xfd, 0xfa, 0x56, 0x51, 0x0c, 0x75 }}
class NS_NO_VTABLE nsITaskbarPreviewButton : public nsISupports {
public:
NS_DECLARE_STATIC_IID_ACCESSOR(NS_ITASKBARPREVIEWBUTTON_IID)
/* Used by ToJSValue to check which scriptable interface is implemented. */
using ScriptableInterfaceType = nsITaskbarPreviewButton;
/* attribute AString tooltip; */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetTooltip(nsAString& aTooltip) = 0;
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetTooltip(const nsAString& aTooltip) = 0;
/* attribute boolean dismissOnClick; */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetDismissOnClick(bool *aDismissOnClick) = 0;
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetDismissOnClick(bool aDismissOnClick) = 0;
/* attribute boolean hasBorder; */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetHasBorder(bool *aHasBorder) = 0;
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetHasBorder(bool aHasBorder) = 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 imgIContainer image; */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetImage(imgIContainer **aImage) = 0;
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetImage(imgIContainer *aImage) = 0;
/* attribute boolean visible; */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetVisible(bool *aVisible) = 0;
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetVisible(bool aVisible) = 0;
};
NS_DEFINE_STATIC_IID_ACCESSOR(nsITaskbarPreviewButton, NS_ITASKBARPREVIEWBUTTON_IID)
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSITASKBARPREVIEWBUTTON \
NS_IMETHOD GetTooltip(nsAString& aTooltip) override; \
NS_IMETHOD SetTooltip(const nsAString& aTooltip) override; \
NS_IMETHOD GetDismissOnClick(bool *aDismissOnClick) override; \
NS_IMETHOD SetDismissOnClick(bool aDismissOnClick) override; \
NS_IMETHOD GetHasBorder(bool *aHasBorder) override; \
NS_IMETHOD SetHasBorder(bool aHasBorder) override; \
NS_IMETHOD GetDisabled(bool *aDisabled) override; \
NS_IMETHOD SetDisabled(bool aDisabled) override; \
NS_IMETHOD GetImage(imgIContainer **aImage) override; \
NS_IMETHOD SetImage(imgIContainer *aImage) override; \
NS_IMETHOD GetVisible(bool *aVisible) override; \
NS_IMETHOD SetVisible(bool aVisible) 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_NSITASKBARPREVIEWBUTTON \
nsresult GetTooltip(nsAString& aTooltip); \
nsresult SetTooltip(const nsAString& aTooltip); \
nsresult GetDismissOnClick(bool *aDismissOnClick); \
nsresult SetDismissOnClick(bool aDismissOnClick); \
nsresult GetHasBorder(bool *aHasBorder); \
nsresult SetHasBorder(bool aHasBorder); \
nsresult GetDisabled(bool *aDisabled); \
nsresult SetDisabled(bool aDisabled); \
nsresult GetImage(imgIContainer **aImage); \
nsresult SetImage(imgIContainer *aImage); \
nsresult GetVisible(bool *aVisible); \
nsresult SetVisible(bool aVisible);
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSITASKBARPREVIEWBUTTON(_to) \
NS_IMETHOD GetTooltip(nsAString& aTooltip) override { return _to GetTooltip(aTooltip); } \
NS_IMETHOD SetTooltip(const nsAString& aTooltip) override { return _to SetTooltip(aTooltip); } \
NS_IMETHOD GetDismissOnClick(bool *aDismissOnClick) override { return _to GetDismissOnClick(aDismissOnClick); } \
NS_IMETHOD SetDismissOnClick(bool aDismissOnClick) override { return _to SetDismissOnClick(aDismissOnClick); } \
NS_IMETHOD GetHasBorder(bool *aHasBorder) override { return _to GetHasBorder(aHasBorder); } \
NS_IMETHOD SetHasBorder(bool aHasBorder) override { return _to SetHasBorder(aHasBorder); } \
NS_IMETHOD GetDisabled(bool *aDisabled) override { return _to GetDisabled(aDisabled); } \
NS_IMETHOD SetDisabled(bool aDisabled) override { return _to SetDisabled(aDisabled); } \
NS_IMETHOD GetImage(imgIContainer **aImage) override { return _to GetImage(aImage); } \
NS_IMETHOD SetImage(imgIContainer *aImage) override { return _to SetImage(aImage); } \
NS_IMETHOD GetVisible(bool *aVisible) override { return _to GetVisible(aVisible); } \
NS_IMETHOD SetVisible(bool aVisible) override { return _to SetVisible(aVisible); }
/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSITASKBARPREVIEWBUTTON(_to) \
NS_IMETHOD GetTooltip(nsAString& aTooltip) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetTooltip(aTooltip); } \
NS_IMETHOD SetTooltip(const nsAString& aTooltip) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetTooltip(aTooltip); } \
NS_IMETHOD GetDismissOnClick(bool *aDismissOnClick) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDismissOnClick(aDismissOnClick); } \
NS_IMETHOD SetDismissOnClick(bool aDismissOnClick) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetDismissOnClick(aDismissOnClick); } \
NS_IMETHOD GetHasBorder(bool *aHasBorder) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetHasBorder(aHasBorder); } \
NS_IMETHOD SetHasBorder(bool aHasBorder) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetHasBorder(aHasBorder); } \
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 GetImage(imgIContainer **aImage) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetImage(aImage); } \
NS_IMETHOD SetImage(imgIContainer *aImage) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetImage(aImage); } \
NS_IMETHOD GetVisible(bool *aVisible) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetVisible(aVisible); } \
NS_IMETHOD SetVisible(bool aVisible) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetVisible(aVisible); }
#endif /* __gen_nsITaskbarPreviewButton_h__ */