Copy as Markdown

Other Tools

/*
* DO NOT EDIT. THIS FILE IS GENERATED FROM $SRCDIR/widget/nsITaskbarOverlayIconController.idl
*/
#ifndef __gen_nsITaskbarOverlayIconController_h__
#define __gen_nsITaskbarOverlayIconController_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: nsITaskbarOverlayIconController */
#define NS_ITASKBAROVERLAYICONCONTROLLER_IID_STR "b1858889-a698-428a-a14b-b5d60cff6de2"
#define NS_ITASKBAROVERLAYICONCONTROLLER_IID \
{0xb1858889, 0xa698, 0x428a, \
{ 0xa1, 0x4b, 0xb5, 0xd6, 0x0c, 0xff, 0x6d, 0xe2 }}
class NS_NO_VTABLE nsITaskbarOverlayIconController : public nsISupports {
public:
NS_DECLARE_STATIC_IID_ACCESSOR(NS_ITASKBAROVERLAYICONCONTROLLER_IID)
/* Used by ToJSValue to check which scriptable interface is implemented. */
using ScriptableInterfaceType = nsITaskbarOverlayIconController;
/* void setOverlayIcon (in imgIContainer statusIcon, in AString statusDescription); */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetOverlayIcon(imgIContainer *statusIcon, const nsAString& statusDescription) = 0;
};
NS_DEFINE_STATIC_IID_ACCESSOR(nsITaskbarOverlayIconController, NS_ITASKBAROVERLAYICONCONTROLLER_IID)
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSITASKBAROVERLAYICONCONTROLLER \
NS_IMETHOD SetOverlayIcon(imgIContainer *statusIcon, const nsAString& statusDescription) 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_NSITASKBAROVERLAYICONCONTROLLER \
nsresult SetOverlayIcon(imgIContainer *statusIcon, const nsAString& statusDescription);
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSITASKBAROVERLAYICONCONTROLLER(_to) \
NS_IMETHOD SetOverlayIcon(imgIContainer *statusIcon, const nsAString& statusDescription) override { return _to SetOverlayIcon(statusIcon, statusDescription); }
/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSITASKBAROVERLAYICONCONTROLLER(_to) \
NS_IMETHOD SetOverlayIcon(imgIContainer *statusIcon, const nsAString& statusDescription) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetOverlayIcon(statusIcon, statusDescription); }
#endif /* __gen_nsITaskbarOverlayIconController_h__ */