Copy as Markdown

Other Tools

/*
* DO NOT EDIT. THIS FILE IS GENERATED FROM $SRCDIR/widget/nsITaskbarPreviewController.idl
*/
#ifndef __gen_nsITaskbarPreviewController_h__
#define __gen_nsITaskbarPreviewController_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 nsIDocShell; /* forward declaration */
class nsITaskbarPreview; /* forward declaration */
class nsITaskbarPreviewButton; /* forward declaration */
/* starting interface: nsITaskbarPreviewCallback */
#define NS_ITASKBARPREVIEWCALLBACK_IID_STR "f3744696-320d-4804-9c27-6a84c29acaa6"
#define NS_ITASKBARPREVIEWCALLBACK_IID \
{0xf3744696, 0x320d, 0x4804, \
{ 0x9c, 0x27, 0x6a, 0x84, 0xc2, 0x9a, 0xca, 0xa6 }}
class NS_NO_VTABLE nsITaskbarPreviewCallback : public nsISupports {
public:
NS_DECLARE_STATIC_IID_ACCESSOR(NS_ITASKBARPREVIEWCALLBACK_IID)
/* Used by ToJSValue to check which scriptable interface is implemented. */
using ScriptableInterfaceType = nsITaskbarPreviewCallback;
/* void done (in nsISupports aCanvas, in boolean aDrawBorder); */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD Done(nsISupports *aCanvas, bool aDrawBorder) = 0;
};
NS_DEFINE_STATIC_IID_ACCESSOR(nsITaskbarPreviewCallback, NS_ITASKBARPREVIEWCALLBACK_IID)
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSITASKBARPREVIEWCALLBACK \
NS_IMETHOD Done(nsISupports *aCanvas, bool aDrawBorder) 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_NSITASKBARPREVIEWCALLBACK \
nsresult Done(nsISupports *aCanvas, bool aDrawBorder);
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSITASKBARPREVIEWCALLBACK(_to) \
NS_IMETHOD Done(nsISupports *aCanvas, bool aDrawBorder) override { return _to Done(aCanvas, aDrawBorder); }
/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSITASKBARPREVIEWCALLBACK(_to) \
NS_IMETHOD Done(nsISupports *aCanvas, bool aDrawBorder) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Done(aCanvas, aDrawBorder); }
/* starting interface: nsITaskbarPreviewController */
#define NS_ITASKBARPREVIEWCONTROLLER_IID_STR "8b427646-e446-4941-ae0b-c1122a173a68"
#define NS_ITASKBARPREVIEWCONTROLLER_IID \
{0x8b427646, 0xe446, 0x4941, \
{ 0xae, 0x0b, 0xc1, 0x12, 0x2a, 0x17, 0x3a, 0x68 }}
class NS_NO_VTABLE nsITaskbarPreviewController : public nsISupports {
public:
NS_DECLARE_STATIC_IID_ACCESSOR(NS_ITASKBARPREVIEWCONTROLLER_IID)
/* Used by ToJSValue to check which scriptable interface is implemented. */
using ScriptableInterfaceType = nsITaskbarPreviewController;
/* readonly attribute unsigned long width; */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetWidth(uint32_t *aWidth) = 0;
/* readonly attribute unsigned long height; */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetHeight(uint32_t *aHeight) = 0;
/* readonly attribute float thumbnailAspectRatio; */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetThumbnailAspectRatio(float *aThumbnailAspectRatio) = 0;
/* void requestPreview (in nsITaskbarPreviewCallback aCallback); */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD RequestPreview(nsITaskbarPreviewCallback *aCallback) = 0;
/* void requestThumbnail (in nsITaskbarPreviewCallback aCallback, in unsigned long width, in unsigned long height); */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD RequestThumbnail(nsITaskbarPreviewCallback *aCallback, uint32_t width, uint32_t height) = 0;
/* void onClose (); */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD OnClose(void) = 0;
/* boolean onActivate (); */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD OnActivate(bool *_retval) = 0;
/* void onClick (in nsITaskbarPreviewButton button); */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD OnClick(nsITaskbarPreviewButton *button) = 0;
};
NS_DEFINE_STATIC_IID_ACCESSOR(nsITaskbarPreviewController, NS_ITASKBARPREVIEWCONTROLLER_IID)
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSITASKBARPREVIEWCONTROLLER \
NS_IMETHOD GetWidth(uint32_t *aWidth) override; \
NS_IMETHOD GetHeight(uint32_t *aHeight) override; \
NS_IMETHOD GetThumbnailAspectRatio(float *aThumbnailAspectRatio) override; \
NS_IMETHOD RequestPreview(nsITaskbarPreviewCallback *aCallback) override; \
NS_IMETHOD RequestThumbnail(nsITaskbarPreviewCallback *aCallback, uint32_t width, uint32_t height) override; \
NS_IMETHOD OnClose(void) override; \
NS_IMETHOD OnActivate(bool *_retval) override; \
NS_IMETHOD OnClick(nsITaskbarPreviewButton *button) 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_NSITASKBARPREVIEWCONTROLLER \
nsresult GetWidth(uint32_t *aWidth); \
nsresult GetHeight(uint32_t *aHeight); \
nsresult GetThumbnailAspectRatio(float *aThumbnailAspectRatio); \
nsresult RequestPreview(nsITaskbarPreviewCallback *aCallback); \
nsresult RequestThumbnail(nsITaskbarPreviewCallback *aCallback, uint32_t width, uint32_t height); \
nsresult OnClose(void); \
nsresult OnActivate(bool *_retval); \
nsresult OnClick(nsITaskbarPreviewButton *button);
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSITASKBARPREVIEWCONTROLLER(_to) \
NS_IMETHOD GetWidth(uint32_t *aWidth) override { return _to GetWidth(aWidth); } \
NS_IMETHOD GetHeight(uint32_t *aHeight) override { return _to GetHeight(aHeight); } \
NS_IMETHOD GetThumbnailAspectRatio(float *aThumbnailAspectRatio) override { return _to GetThumbnailAspectRatio(aThumbnailAspectRatio); } \
NS_IMETHOD RequestPreview(nsITaskbarPreviewCallback *aCallback) override { return _to RequestPreview(aCallback); } \
NS_IMETHOD RequestThumbnail(nsITaskbarPreviewCallback *aCallback, uint32_t width, uint32_t height) override { return _to RequestThumbnail(aCallback, width, height); } \
NS_IMETHOD OnClose(void) override { return _to OnClose(); } \
NS_IMETHOD OnActivate(bool *_retval) override { return _to OnActivate(_retval); } \
NS_IMETHOD OnClick(nsITaskbarPreviewButton *button) override { return _to OnClick(button); }
/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSITASKBARPREVIEWCONTROLLER(_to) \
NS_IMETHOD GetWidth(uint32_t *aWidth) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetWidth(aWidth); } \
NS_IMETHOD GetHeight(uint32_t *aHeight) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetHeight(aHeight); } \
NS_IMETHOD GetThumbnailAspectRatio(float *aThumbnailAspectRatio) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetThumbnailAspectRatio(aThumbnailAspectRatio); } \
NS_IMETHOD RequestPreview(nsITaskbarPreviewCallback *aCallback) override { return !_to ? NS_ERROR_NULL_POINTER : _to->RequestPreview(aCallback); } \
NS_IMETHOD RequestThumbnail(nsITaskbarPreviewCallback *aCallback, uint32_t width, uint32_t height) override { return !_to ? NS_ERROR_NULL_POINTER : _to->RequestThumbnail(aCallback, width, height); } \
NS_IMETHOD OnClose(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->OnClose(); } \
NS_IMETHOD OnActivate(bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->OnActivate(_retval); } \
NS_IMETHOD OnClick(nsITaskbarPreviewButton *button) override { return !_to ? NS_ERROR_NULL_POINTER : _to->OnClick(button); }
#endif /* __gen_nsITaskbarPreviewController_h__ */