Copy as Markdown

Other Tools

/*
* DO NOT EDIT. THIS FILE IS GENERATED FROM $SRCDIR/widget/nsITaskbarWindowPreview.idl
*/
#ifndef __gen_nsITaskbarWindowPreview_h__
#define __gen_nsITaskbarWindowPreview_h__
#include "nsITaskbarPreview.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 nsITaskbarPreviewButton; /* forward declaration */
/* starting interface: nsITaskbarWindowPreview */
#define NS_ITASKBARWINDOWPREVIEW_IID_STR "ec67cc57-342d-4064-b4c6-74a375e07b10"
#define NS_ITASKBARWINDOWPREVIEW_IID \
{0xec67cc57, 0x342d, 0x4064, \
{ 0xb4, 0xc6, 0x74, 0xa3, 0x75, 0xe0, 0x7b, 0x10 }}
class NS_NO_VTABLE nsITaskbarWindowPreview : public nsITaskbarPreview {
public:
NS_DECLARE_STATIC_IID_ACCESSOR(NS_ITASKBARWINDOWPREVIEW_IID)
/* Used by ToJSValue to check which scriptable interface is implemented. */
using ScriptableInterfaceType = nsITaskbarWindowPreview;
enum {
NUM_TOOLBAR_BUTTONS = 7
};
/* nsITaskbarPreviewButton getButton (in unsigned long index); */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetButton(uint32_t index, nsITaskbarPreviewButton **_retval) = 0;
/* attribute boolean enableCustomDrawing; */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetEnableCustomDrawing(bool *aEnableCustomDrawing) = 0;
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetEnableCustomDrawing(bool aEnableCustomDrawing) = 0;
};
NS_DEFINE_STATIC_IID_ACCESSOR(nsITaskbarWindowPreview, NS_ITASKBARWINDOWPREVIEW_IID)
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSITASKBARWINDOWPREVIEW \
NS_IMETHOD GetButton(uint32_t index, nsITaskbarPreviewButton **_retval) override; \
NS_IMETHOD GetEnableCustomDrawing(bool *aEnableCustomDrawing) override; \
NS_IMETHOD SetEnableCustomDrawing(bool aEnableCustomDrawing) 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_NSITASKBARWINDOWPREVIEW \
nsresult GetButton(uint32_t index, nsITaskbarPreviewButton **_retval); \
nsresult GetEnableCustomDrawing(bool *aEnableCustomDrawing); \
nsresult SetEnableCustomDrawing(bool aEnableCustomDrawing);
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSITASKBARWINDOWPREVIEW(_to) \
NS_IMETHOD GetButton(uint32_t index, nsITaskbarPreviewButton **_retval) override { return _to GetButton(index, _retval); } \
NS_IMETHOD GetEnableCustomDrawing(bool *aEnableCustomDrawing) override { return _to GetEnableCustomDrawing(aEnableCustomDrawing); } \
NS_IMETHOD SetEnableCustomDrawing(bool aEnableCustomDrawing) override { return _to SetEnableCustomDrawing(aEnableCustomDrawing); }
/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSITASKBARWINDOWPREVIEW(_to) \
NS_IMETHOD GetButton(uint32_t index, nsITaskbarPreviewButton **_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetButton(index, _retval); } \
NS_IMETHOD GetEnableCustomDrawing(bool *aEnableCustomDrawing) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetEnableCustomDrawing(aEnableCustomDrawing); } \
NS_IMETHOD SetEnableCustomDrawing(bool aEnableCustomDrawing) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetEnableCustomDrawing(aEnableCustomDrawing); }
#endif /* __gen_nsITaskbarWindowPreview_h__ */