Copy as Markdown

Other Tools

/*
* DO NOT EDIT. THIS FILE IS GENERATED FROM $SRCDIR/widget/nsIWinTaskbar.idl
*/
#ifndef __gen_nsIWinTaskbar_h__
#define __gen_nsIWinTaskbar_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 nsIDocShell; /* forward declaration */
class nsIJumpListBuilder; /* forward declaration */
class nsITaskbarTabPreview; /* forward declaration */
class nsITaskbarWindowPreview; /* forward declaration */
class nsITaskbarPreviewController; /* forward declaration */
class nsITaskbarProgress; /* forward declaration */
class nsITaskbarOverlayIconController; /* forward declaration */
class mozIDOMWindow; /* forward declaration */
/* starting interface: nsIWinTaskbar */
#define NS_IWINTASKBAR_IID_STR "11751471-9246-4c72-a80f-0c7df765d640"
#define NS_IWINTASKBAR_IID \
{0x11751471, 0x9246, 0x4c72, \
{ 0xa8, 0x0f, 0x0c, 0x7d, 0xf7, 0x65, 0xd6, 0x40 }}
class NS_NO_VTABLE nsIWinTaskbar : public nsISupports {
public:
NS_DECLARE_STATIC_IID_ACCESSOR(NS_IWINTASKBAR_IID)
/* Used by ToJSValue to check which scriptable interface is implemented. */
using ScriptableInterfaceType = nsIWinTaskbar;
/* readonly attribute boolean available; */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetAvailable(bool *aAvailable) = 0;
/* readonly attribute AString defaultGroupId; */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetDefaultGroupId(nsAString& aDefaultGroupId) = 0;
/* readonly attribute AString defaultPrivateGroupId; */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetDefaultPrivateGroupId(nsAString& aDefaultPrivateGroupId) = 0;
/* nsITaskbarTabPreview createTaskbarTabPreview (in nsIDocShell shell, in nsITaskbarPreviewController controller); */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD CreateTaskbarTabPreview(nsIDocShell *shell, nsITaskbarPreviewController *controller, nsITaskbarTabPreview **_retval) = 0;
/* nsITaskbarWindowPreview getTaskbarWindowPreview (in nsIDocShell shell); */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetTaskbarWindowPreview(nsIDocShell *shell, nsITaskbarWindowPreview **_retval) = 0;
/* nsITaskbarProgress getTaskbarProgress (in nsIDocShell shell); */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetTaskbarProgress(nsIDocShell *shell, nsITaskbarProgress **_retval) = 0;
/* nsITaskbarOverlayIconController getOverlayIconController (in nsIDocShell shell); */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetOverlayIconController(nsIDocShell *shell, nsITaskbarOverlayIconController **_retval) = 0;
/* nsIJumpListBuilder createJumpListBuilder (in boolean aPrivateBrowsing); */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD CreateJumpListBuilder(bool aPrivateBrowsing, nsIJumpListBuilder **_retval) = 0;
/* AString getGroupIdForWindow (in mozIDOMWindow aParent); */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetGroupIdForWindow(mozIDOMWindow *aParent, nsAString& _retval) = 0;
/* void setGroupIdForWindow (in mozIDOMWindow aParent, in AString aIdentifier); */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetGroupIdForWindow(mozIDOMWindow *aParent, const nsAString& aIdentifier) = 0;
/* [noscript] void prepareFullScreen (in voidPtr aHWND, in boolean aFullScreen); */
NS_IMETHOD PrepareFullScreen(void * aHWND, bool aFullScreen) = 0;
};
NS_DEFINE_STATIC_IID_ACCESSOR(nsIWinTaskbar, NS_IWINTASKBAR_IID)
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIWINTASKBAR \
NS_IMETHOD GetAvailable(bool *aAvailable) override; \
NS_IMETHOD GetDefaultGroupId(nsAString& aDefaultGroupId) override; \
NS_IMETHOD GetDefaultPrivateGroupId(nsAString& aDefaultPrivateGroupId) override; \
NS_IMETHOD CreateTaskbarTabPreview(nsIDocShell *shell, nsITaskbarPreviewController *controller, nsITaskbarTabPreview **_retval) override; \
NS_IMETHOD GetTaskbarWindowPreview(nsIDocShell *shell, nsITaskbarWindowPreview **_retval) override; \
NS_IMETHOD GetTaskbarProgress(nsIDocShell *shell, nsITaskbarProgress **_retval) override; \
NS_IMETHOD GetOverlayIconController(nsIDocShell *shell, nsITaskbarOverlayIconController **_retval) override; \
NS_IMETHOD CreateJumpListBuilder(bool aPrivateBrowsing, nsIJumpListBuilder **_retval) override; \
NS_IMETHOD GetGroupIdForWindow(mozIDOMWindow *aParent, nsAString& _retval) override; \
NS_IMETHOD SetGroupIdForWindow(mozIDOMWindow *aParent, const nsAString& aIdentifier) override; \
NS_IMETHOD PrepareFullScreen(void * aHWND, bool aFullScreen) 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_NSIWINTASKBAR \
nsresult GetAvailable(bool *aAvailable); \
nsresult GetDefaultGroupId(nsAString& aDefaultGroupId); \
nsresult GetDefaultPrivateGroupId(nsAString& aDefaultPrivateGroupId); \
nsresult CreateTaskbarTabPreview(nsIDocShell *shell, nsITaskbarPreviewController *controller, nsITaskbarTabPreview **_retval); \
nsresult GetTaskbarWindowPreview(nsIDocShell *shell, nsITaskbarWindowPreview **_retval); \
nsresult GetTaskbarProgress(nsIDocShell *shell, nsITaskbarProgress **_retval); \
nsresult GetOverlayIconController(nsIDocShell *shell, nsITaskbarOverlayIconController **_retval); \
nsresult CreateJumpListBuilder(bool aPrivateBrowsing, nsIJumpListBuilder **_retval); \
nsresult GetGroupIdForWindow(mozIDOMWindow *aParent, nsAString& _retval); \
nsresult SetGroupIdForWindow(mozIDOMWindow *aParent, const nsAString& aIdentifier); \
nsresult PrepareFullScreen(void * aHWND, bool aFullScreen);
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIWINTASKBAR(_to) \
NS_IMETHOD GetAvailable(bool *aAvailable) override { return _to GetAvailable(aAvailable); } \
NS_IMETHOD GetDefaultGroupId(nsAString& aDefaultGroupId) override { return _to GetDefaultGroupId(aDefaultGroupId); } \
NS_IMETHOD GetDefaultPrivateGroupId(nsAString& aDefaultPrivateGroupId) override { return _to GetDefaultPrivateGroupId(aDefaultPrivateGroupId); } \
NS_IMETHOD CreateTaskbarTabPreview(nsIDocShell *shell, nsITaskbarPreviewController *controller, nsITaskbarTabPreview **_retval) override { return _to CreateTaskbarTabPreview(shell, controller, _retval); } \
NS_IMETHOD GetTaskbarWindowPreview(nsIDocShell *shell, nsITaskbarWindowPreview **_retval) override { return _to GetTaskbarWindowPreview(shell, _retval); } \
NS_IMETHOD GetTaskbarProgress(nsIDocShell *shell, nsITaskbarProgress **_retval) override { return _to GetTaskbarProgress(shell, _retval); } \
NS_IMETHOD GetOverlayIconController(nsIDocShell *shell, nsITaskbarOverlayIconController **_retval) override { return _to GetOverlayIconController(shell, _retval); } \
NS_IMETHOD CreateJumpListBuilder(bool aPrivateBrowsing, nsIJumpListBuilder **_retval) override { return _to CreateJumpListBuilder(aPrivateBrowsing, _retval); } \
NS_IMETHOD GetGroupIdForWindow(mozIDOMWindow *aParent, nsAString& _retval) override { return _to GetGroupIdForWindow(aParent, _retval); } \
NS_IMETHOD SetGroupIdForWindow(mozIDOMWindow *aParent, const nsAString& aIdentifier) override { return _to SetGroupIdForWindow(aParent, aIdentifier); } \
NS_IMETHOD PrepareFullScreen(void * aHWND, bool aFullScreen) override { return _to PrepareFullScreen(aHWND, aFullScreen); }
/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIWINTASKBAR(_to) \
NS_IMETHOD GetAvailable(bool *aAvailable) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAvailable(aAvailable); } \
NS_IMETHOD GetDefaultGroupId(nsAString& aDefaultGroupId) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDefaultGroupId(aDefaultGroupId); } \
NS_IMETHOD GetDefaultPrivateGroupId(nsAString& aDefaultPrivateGroupId) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDefaultPrivateGroupId(aDefaultPrivateGroupId); } \
NS_IMETHOD CreateTaskbarTabPreview(nsIDocShell *shell, nsITaskbarPreviewController *controller, nsITaskbarTabPreview **_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->CreateTaskbarTabPreview(shell, controller, _retval); } \
NS_IMETHOD GetTaskbarWindowPreview(nsIDocShell *shell, nsITaskbarWindowPreview **_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetTaskbarWindowPreview(shell, _retval); } \
NS_IMETHOD GetTaskbarProgress(nsIDocShell *shell, nsITaskbarProgress **_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetTaskbarProgress(shell, _retval); } \
NS_IMETHOD GetOverlayIconController(nsIDocShell *shell, nsITaskbarOverlayIconController **_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetOverlayIconController(shell, _retval); } \
NS_IMETHOD CreateJumpListBuilder(bool aPrivateBrowsing, nsIJumpListBuilder **_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->CreateJumpListBuilder(aPrivateBrowsing, _retval); } \
NS_IMETHOD GetGroupIdForWindow(mozIDOMWindow *aParent, nsAString& _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetGroupIdForWindow(aParent, _retval); } \
NS_IMETHOD SetGroupIdForWindow(mozIDOMWindow *aParent, const nsAString& aIdentifier) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetGroupIdForWindow(aParent, aIdentifier); } \
NS_IMETHOD PrepareFullScreen(void * aHWND, bool aFullScreen) override { return !_to ? NS_ERROR_NULL_POINTER : _to->PrepareFullScreen(aHWND, aFullScreen); }
#endif /* __gen_nsIWinTaskbar_h__ */