Copy as Markdown

Other Tools

/*
* DO NOT EDIT. THIS FILE IS GENERATED FROM $SRCDIR/widget/nsITaskbarPreview.idl
*/
#ifndef __gen_nsITaskbarPreview_h__
#define __gen_nsITaskbarPreview_h__
#include "nsISupports.h"
#include "nsIBaseWindow.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 nsITaskbarPreviewController; /* forward declaration */
/* starting interface: nsITaskbarPreview */
#define NS_ITASKBARPREVIEW_IID_STR "cbfdf766-d002-403b-a3d9-b091c9ad465b"
#define NS_ITASKBARPREVIEW_IID \
{0xcbfdf766, 0xd002, 0x403b, \
{ 0xa3, 0xd9, 0xb0, 0x91, 0xc9, 0xad, 0x46, 0x5b }}
class NS_NO_VTABLE nsITaskbarPreview : public nsISupports {
public:
NS_DECLARE_STATIC_IID_ACCESSOR(NS_ITASKBARPREVIEW_IID)
/* Used by ToJSValue to check which scriptable interface is implemented. */
using ScriptableInterfaceType = nsITaskbarPreview;
/* attribute nsITaskbarPreviewController controller; */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetController(nsITaskbarPreviewController **aController) = 0;
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetController(nsITaskbarPreviewController *aController) = 0;
/* 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 visible; */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetVisible(bool *aVisible) = 0;
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetVisible(bool aVisible) = 0;
/* attribute boolean active; */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetActive(bool *aActive) = 0;
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetActive(bool aActive) = 0;
/* void invalidate (); */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD Invalidate(void) = 0;
};
NS_DEFINE_STATIC_IID_ACCESSOR(nsITaskbarPreview, NS_ITASKBARPREVIEW_IID)
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSITASKBARPREVIEW \
NS_IMETHOD GetController(nsITaskbarPreviewController **aController) override; \
NS_IMETHOD SetController(nsITaskbarPreviewController *aController) override; \
NS_IMETHOD GetTooltip(nsAString& aTooltip) override; \
NS_IMETHOD SetTooltip(const nsAString& aTooltip) override; \
NS_IMETHOD GetVisible(bool *aVisible) override; \
NS_IMETHOD SetVisible(bool aVisible) override; \
NS_IMETHOD GetActive(bool *aActive) override; \
NS_IMETHOD SetActive(bool aActive) override; \
NS_IMETHOD Invalidate(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_NSITASKBARPREVIEW \
nsresult GetController(nsITaskbarPreviewController **aController); \
nsresult SetController(nsITaskbarPreviewController *aController); \
nsresult GetTooltip(nsAString& aTooltip); \
nsresult SetTooltip(const nsAString& aTooltip); \
nsresult GetVisible(bool *aVisible); \
nsresult SetVisible(bool aVisible); \
nsresult GetActive(bool *aActive); \
nsresult SetActive(bool aActive); \
nsresult Invalidate(void);
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSITASKBARPREVIEW(_to) \
NS_IMETHOD GetController(nsITaskbarPreviewController **aController) override { return _to GetController(aController); } \
NS_IMETHOD SetController(nsITaskbarPreviewController *aController) override { return _to SetController(aController); } \
NS_IMETHOD GetTooltip(nsAString& aTooltip) override { return _to GetTooltip(aTooltip); } \
NS_IMETHOD SetTooltip(const nsAString& aTooltip) override { return _to SetTooltip(aTooltip); } \
NS_IMETHOD GetVisible(bool *aVisible) override { return _to GetVisible(aVisible); } \
NS_IMETHOD SetVisible(bool aVisible) override { return _to SetVisible(aVisible); } \
NS_IMETHOD GetActive(bool *aActive) override { return _to GetActive(aActive); } \
NS_IMETHOD SetActive(bool aActive) override { return _to SetActive(aActive); } \
NS_IMETHOD Invalidate(void) override { return _to Invalidate(); }
/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSITASKBARPREVIEW(_to) \
NS_IMETHOD GetController(nsITaskbarPreviewController **aController) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetController(aController); } \
NS_IMETHOD SetController(nsITaskbarPreviewController *aController) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetController(aController); } \
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 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); } \
NS_IMETHOD GetActive(bool *aActive) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetActive(aActive); } \
NS_IMETHOD SetActive(bool aActive) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetActive(aActive); } \
NS_IMETHOD Invalidate(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Invalidate(); }
#endif /* __gen_nsITaskbarPreview_h__ */