Copy as Markdown

Other Tools

/*
* DO NOT EDIT. THIS FILE IS GENERATED FROM $SRCDIR/widget/nsITaskbarTabPreview.idl
*/
#ifndef __gen_nsITaskbarTabPreview_h__
#define __gen_nsITaskbarTabPreview_h__
#include "nsITaskbarPreview.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: nsITaskbarTabPreview */
#define NS_ITASKBARTABPREVIEW_IID_STR "11e4c8bd-5c2d-4e1a-a9a1-79dd5b0fe544"
#define NS_ITASKBARTABPREVIEW_IID \
{0x11e4c8bd, 0x5c2d, 0x4e1a, \
{ 0xa9, 0xa1, 0x79, 0xdd, 0x5b, 0x0f, 0xe5, 0x44 }}
class NS_NO_VTABLE nsITaskbarTabPreview : public nsITaskbarPreview {
public:
NS_DECLARE_STATIC_IID_ACCESSOR(NS_ITASKBARTABPREVIEW_IID)
/* Used by ToJSValue to check which scriptable interface is implemented. */
using ScriptableInterfaceType = nsITaskbarTabPreview;
/* attribute AString title; */
NS_IMETHOD GetTitle(nsAString& aTitle) = 0;
NS_IMETHOD SetTitle(const nsAString& aTitle) = 0;
/* attribute imgIContainer icon; */
NS_IMETHOD GetIcon(imgIContainer **aIcon) = 0;
NS_IMETHOD SetIcon(imgIContainer *aIcon) = 0;
/* void move (in nsITaskbarTabPreview aNext); */
NS_IMETHOD Move(nsITaskbarTabPreview *aNext) = 0;
/* [notxpcom] nativeWindow GetHWND (); */
NS_IMETHOD_(nativeWindow) GetHWND(void) = 0;
/* [notxpcom] void EnsureRegistration (); */
NS_IMETHOD_(void) EnsureRegistration(void) = 0;
};
NS_DEFINE_STATIC_IID_ACCESSOR(nsITaskbarTabPreview, NS_ITASKBARTABPREVIEW_IID)
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSITASKBARTABPREVIEW \
NS_IMETHOD GetTitle(nsAString& aTitle) override; \
NS_IMETHOD SetTitle(const nsAString& aTitle) override; \
NS_IMETHOD GetIcon(imgIContainer **aIcon) override; \
NS_IMETHOD SetIcon(imgIContainer *aIcon) override; \
NS_IMETHOD Move(nsITaskbarTabPreview *aNext) override; \
NS_IMETHOD_(nativeWindow) GetHWND(void) override; \
NS_IMETHOD_(void) EnsureRegistration(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_NSITASKBARTABPREVIEW \
nsresult GetTitle(nsAString& aTitle); \
nsresult SetTitle(const nsAString& aTitle); \
nsresult GetIcon(imgIContainer **aIcon); \
nsresult SetIcon(imgIContainer *aIcon); \
nsresult Move(nsITaskbarTabPreview *aNext); \
nsresult_(nativeWindow) GetHWND(void); \
nsresult_(void) EnsureRegistration(void);
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSITASKBARTABPREVIEW(_to) \
NS_IMETHOD GetTitle(nsAString& aTitle) override { return _to GetTitle(aTitle); } \
NS_IMETHOD SetTitle(const nsAString& aTitle) override { return _to SetTitle(aTitle); } \
NS_IMETHOD GetIcon(imgIContainer **aIcon) override { return _to GetIcon(aIcon); } \
NS_IMETHOD SetIcon(imgIContainer *aIcon) override { return _to SetIcon(aIcon); } \
NS_IMETHOD Move(nsITaskbarTabPreview *aNext) override { return _to Move(aNext); } \
NS_IMETHOD_(nativeWindow) GetHWND(void) override { return _to GetHWND(); } \
NS_IMETHOD_(void) EnsureRegistration(void) override { return _to EnsureRegistration(); }
/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSITASKBARTABPREVIEW(_to) \
NS_IMETHOD GetTitle(nsAString& aTitle) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetTitle(aTitle); } \
NS_IMETHOD SetTitle(const nsAString& aTitle) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetTitle(aTitle); } \
NS_IMETHOD GetIcon(imgIContainer **aIcon) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIcon(aIcon); } \
NS_IMETHOD SetIcon(imgIContainer *aIcon) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetIcon(aIcon); } \
NS_IMETHOD Move(nsITaskbarTabPreview *aNext) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Move(aNext); } \
NS_IMETHOD_(nativeWindow) GetHWND(void) override; \
NS_IMETHOD_(void) EnsureRegistration(void) override;
#endif /* __gen_nsITaskbarTabPreview_h__ */