Copy as Markdown

Other Tools

/*
* DO NOT EDIT. THIS FILE IS GENERATED FROM $SRCDIR/browser/components/shell/nsIWindowsShellService.idl
*/
#ifndef __gen_nsIWindowsShellService_h__
#define __gen_nsIWindowsShellService_h__
#include "imgIContainer.h"
#include "nsIShellService.h"
#include "nsTArray.h"
#include "js/Value.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 nsIFile; /* forward declaration */
/* starting interface: nsIWindowsShellService */
#define NS_IWINDOWSSHELLSERVICE_IID_STR "fb9b59db-5a91-4e67-92b6-35e7d6e6d3fd"
#define NS_IWINDOWSSHELLSERVICE_IID \
{0xfb9b59db, 0x5a91, 0x4e67, \
{ 0x92, 0xb6, 0x35, 0xe7, 0xd6, 0xe6, 0xd3, 0xfd }}
class NS_NO_VTABLE nsIWindowsShellService : public nsIShellService {
public:
NS_DECLARE_STATIC_IID_ACCESSOR(NS_IWINDOWSSHELLSERVICE_IID)
/* Used by ToJSValue to check which scriptable interface is implemented. */
using ScriptableInterfaceType = nsIWindowsShellService;
/* [implicit_jscontext] Promise createShortcut (in nsIFile aBinary, in Array<AString> aArguments, in AString aDescription, in nsIFile aIconFile, in unsigned short aIconIndex, in AString aAppUserModelId, in AString aShortcutFolder, in AString aShortcutName); */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD CreateShortcut(nsIFile *aBinary, const nsTArray<nsString >& aArguments, const nsAString& aDescription, nsIFile *aIconFile, uint16_t aIconIndex, const nsAString& aAppUserModelId, const nsAString& aShortcutFolder, const nsAString& aShortcutName, JSContext* cx, ::mozilla::dom::Promise * * _retval) = 0;
/* Array<AString> getLaunchOnLoginShortcuts (); */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetLaunchOnLoginShortcuts(nsTArray<nsString >& _retval) = 0;
/* [implicit_jscontext] Promise pinCurrentAppToStartMenuAsync (in boolean aCheckOnly); */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD PinCurrentAppToStartMenuAsync(bool aCheckOnly, JSContext* cx, ::mozilla::dom::Promise * * _retval) = 0;
/* [implicit_jscontext] Promise isCurrentAppPinnedToStartMenuAsync (); */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD IsCurrentAppPinnedToStartMenuAsync(JSContext* cx, ::mozilla::dom::Promise * * _retval) = 0;
/* [implicit_jscontext] Promise enableLaunchOnLoginMSIXAsync (in AString aTaskId); */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD EnableLaunchOnLoginMSIXAsync(const nsAString& aTaskId, JSContext* cx, ::mozilla::dom::Promise * * _retval) = 0;
/* [implicit_jscontext] Promise disableLaunchOnLoginMSIXAsync (in AString aTaskId); */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD DisableLaunchOnLoginMSIXAsync(const nsAString& aTaskId, JSContext* cx, ::mozilla::dom::Promise * * _retval) = 0;
enum LaunchOnLoginEnabledEnumerator : uint8_t {
LAUNCH_ON_LOGIN_DISABLED_BY_SETTINGS = 0,
LAUNCH_ON_LOGIN_DISABLED = 1,
LAUNCH_ON_LOGIN_ENABLED = 2,
LAUNCH_ON_LOGIN_ENABLED_BY_POLICY = 3,
};
/* [implicit_jscontext] Promise getLaunchOnLoginEnabledMSIXAsync (in AString aTaskId); */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetLaunchOnLoginEnabledMSIXAsync(const nsAString& aTaskId, JSContext* cx, ::mozilla::dom::Promise * * _retval) = 0;
/* [implicit_jscontext] Promise pinCurrentAppToTaskbarAsync (in boolean aPrivateBrowsing); */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD PinCurrentAppToTaskbarAsync(bool aPrivateBrowsing, JSContext* cx, ::mozilla::dom::Promise * * _retval) = 0;
/* [implicit_jscontext] Promise checkPinCurrentAppToTaskbarAsync (in boolean aPrivateBrowsing); */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD CheckPinCurrentAppToTaskbarAsync(bool aPrivateBrowsing, JSContext* cx, ::mozilla::dom::Promise * * _retval) = 0;
/* [implicit_jscontext] Promise isCurrentAppPinnedToTaskbarAsync (in AString aumid); */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD IsCurrentAppPinnedToTaskbarAsync(const nsAString& aumid, JSContext* cx, ::mozilla::dom::Promise * * _retval) = 0;
/* [implicit_jscontext] Promise pinShortcutToTaskbar (in AString aAppUserModelId, in AString aShortcutPath); */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD PinShortcutToTaskbar(const nsAString& aAppUserModelId, const nsAString& aShortcutPath, JSContext* cx, ::mozilla::dom::Promise * * _retval) = 0;
/* [implicit_jscontext] Promise createWindowsIcon (in nsIFile aFile, in imgIContainer aContainer); */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD CreateWindowsIcon(nsIFile *aFile, imgIContainer *aContainer, JSContext* cx, ::mozilla::dom::Promise * * _retval) = 0;
/* void unpinShortcutFromTaskbar (in AString aShortcutPath); */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD UnpinShortcutFromTaskbar(const nsAString& aShortcutPath) = 0;
/* AString getTaskbarTabShortcutPath (in AString aShortcutName); */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetTaskbarTabShortcutPath(const nsAString& aShortcutName, nsAString& _retval) = 0;
/* Array<AString> getTaskbarTabPins (); */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetTaskbarTabPins(nsTArray<nsString >& _retval) = 0;
/* AString classifyShortcut (in AString aPath); */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD ClassifyShortcut(const nsAString& aPath, nsAString& _retval) = 0;
/* [implicit_jscontext] Promise hasPinnableShortcut (in AString aAUMID, in boolean aPrivateBrowsing); */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD HasPinnableShortcut(const nsAString& aAUMID, bool aPrivateBrowsing, JSContext* cx, ::mozilla::dom::Promise * * _retval) = 0;
/* boolean canSetDefaultBrowserUserChoice (); */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD CanSetDefaultBrowserUserChoice(bool *_retval) = 0;
/* boolean checkAllProgIDsExist (); */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD CheckAllProgIDsExist(bool *_retval) = 0;
/* boolean checkBrowserUserChoiceHashes (); */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD CheckBrowserUserChoiceHashes(bool *_retval) = 0;
/* boolean isDefaultHandlerFor (in AString aFileExtensionOrProtocol); */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD IsDefaultHandlerFor(const nsAString& aFileExtensionOrProtocol, bool *_retval) = 0;
/* AString queryCurrentDefaultHandlerFor (in AString aFileExtensionOrProtocol); */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD QueryCurrentDefaultHandlerFor(const nsAString& aFileExtensionOrProtocol, nsAString& _retval) = 0;
};
NS_DEFINE_STATIC_IID_ACCESSOR(nsIWindowsShellService, NS_IWINDOWSSHELLSERVICE_IID)
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIWINDOWSSHELLSERVICE \
NS_IMETHOD CreateShortcut(nsIFile *aBinary, const nsTArray<nsString >& aArguments, const nsAString& aDescription, nsIFile *aIconFile, uint16_t aIconIndex, const nsAString& aAppUserModelId, const nsAString& aShortcutFolder, const nsAString& aShortcutName, JSContext* cx, ::mozilla::dom::Promise * * _retval) override; \
NS_IMETHOD GetLaunchOnLoginShortcuts(nsTArray<nsString >& _retval) override; \
NS_IMETHOD PinCurrentAppToStartMenuAsync(bool aCheckOnly, JSContext* cx, ::mozilla::dom::Promise * * _retval) override; \
NS_IMETHOD IsCurrentAppPinnedToStartMenuAsync(JSContext* cx, ::mozilla::dom::Promise * * _retval) override; \
NS_IMETHOD EnableLaunchOnLoginMSIXAsync(const nsAString& aTaskId, JSContext* cx, ::mozilla::dom::Promise * * _retval) override; \
NS_IMETHOD DisableLaunchOnLoginMSIXAsync(const nsAString& aTaskId, JSContext* cx, ::mozilla::dom::Promise * * _retval) override; \
NS_IMETHOD GetLaunchOnLoginEnabledMSIXAsync(const nsAString& aTaskId, JSContext* cx, ::mozilla::dom::Promise * * _retval) override; \
NS_IMETHOD PinCurrentAppToTaskbarAsync(bool aPrivateBrowsing, JSContext* cx, ::mozilla::dom::Promise * * _retval) override; \
NS_IMETHOD CheckPinCurrentAppToTaskbarAsync(bool aPrivateBrowsing, JSContext* cx, ::mozilla::dom::Promise * * _retval) override; \
NS_IMETHOD IsCurrentAppPinnedToTaskbarAsync(const nsAString& aumid, JSContext* cx, ::mozilla::dom::Promise * * _retval) override; \
NS_IMETHOD PinShortcutToTaskbar(const nsAString& aAppUserModelId, const nsAString& aShortcutPath, JSContext* cx, ::mozilla::dom::Promise * * _retval) override; \
NS_IMETHOD CreateWindowsIcon(nsIFile *aFile, imgIContainer *aContainer, JSContext* cx, ::mozilla::dom::Promise * * _retval) override; \
NS_IMETHOD UnpinShortcutFromTaskbar(const nsAString& aShortcutPath) override; \
NS_IMETHOD GetTaskbarTabShortcutPath(const nsAString& aShortcutName, nsAString& _retval) override; \
NS_IMETHOD GetTaskbarTabPins(nsTArray<nsString >& _retval) override; \
NS_IMETHOD ClassifyShortcut(const nsAString& aPath, nsAString& _retval) override; \
NS_IMETHOD HasPinnableShortcut(const nsAString& aAUMID, bool aPrivateBrowsing, JSContext* cx, ::mozilla::dom::Promise * * _retval) override; \
NS_IMETHOD CanSetDefaultBrowserUserChoice(bool *_retval) override; \
NS_IMETHOD CheckAllProgIDsExist(bool *_retval) override; \
NS_IMETHOD CheckBrowserUserChoiceHashes(bool *_retval) override; \
NS_IMETHOD IsDefaultHandlerFor(const nsAString& aFileExtensionOrProtocol, bool *_retval) override; \
NS_IMETHOD QueryCurrentDefaultHandlerFor(const nsAString& aFileExtensionOrProtocol, nsAString& _retval) 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_NSIWINDOWSSHELLSERVICE \
nsresult CreateShortcut(nsIFile *aBinary, const nsTArray<nsString >& aArguments, const nsAString& aDescription, nsIFile *aIconFile, uint16_t aIconIndex, const nsAString& aAppUserModelId, const nsAString& aShortcutFolder, const nsAString& aShortcutName, JSContext* cx, ::mozilla::dom::Promise * * _retval); \
nsresult GetLaunchOnLoginShortcuts(nsTArray<nsString >& _retval); \
nsresult PinCurrentAppToStartMenuAsync(bool aCheckOnly, JSContext* cx, ::mozilla::dom::Promise * * _retval); \
nsresult IsCurrentAppPinnedToStartMenuAsync(JSContext* cx, ::mozilla::dom::Promise * * _retval); \
nsresult EnableLaunchOnLoginMSIXAsync(const nsAString& aTaskId, JSContext* cx, ::mozilla::dom::Promise * * _retval); \
nsresult DisableLaunchOnLoginMSIXAsync(const nsAString& aTaskId, JSContext* cx, ::mozilla::dom::Promise * * _retval); \
nsresult GetLaunchOnLoginEnabledMSIXAsync(const nsAString& aTaskId, JSContext* cx, ::mozilla::dom::Promise * * _retval); \
nsresult PinCurrentAppToTaskbarAsync(bool aPrivateBrowsing, JSContext* cx, ::mozilla::dom::Promise * * _retval); \
nsresult CheckPinCurrentAppToTaskbarAsync(bool aPrivateBrowsing, JSContext* cx, ::mozilla::dom::Promise * * _retval); \
nsresult IsCurrentAppPinnedToTaskbarAsync(const nsAString& aumid, JSContext* cx, ::mozilla::dom::Promise * * _retval); \
nsresult PinShortcutToTaskbar(const nsAString& aAppUserModelId, const nsAString& aShortcutPath, JSContext* cx, ::mozilla::dom::Promise * * _retval); \
nsresult CreateWindowsIcon(nsIFile *aFile, imgIContainer *aContainer, JSContext* cx, ::mozilla::dom::Promise * * _retval); \
nsresult UnpinShortcutFromTaskbar(const nsAString& aShortcutPath); \
nsresult GetTaskbarTabShortcutPath(const nsAString& aShortcutName, nsAString& _retval); \
nsresult GetTaskbarTabPins(nsTArray<nsString >& _retval); \
nsresult ClassifyShortcut(const nsAString& aPath, nsAString& _retval); \
nsresult HasPinnableShortcut(const nsAString& aAUMID, bool aPrivateBrowsing, JSContext* cx, ::mozilla::dom::Promise * * _retval); \
nsresult CanSetDefaultBrowserUserChoice(bool *_retval); \
nsresult CheckAllProgIDsExist(bool *_retval); \
nsresult CheckBrowserUserChoiceHashes(bool *_retval); \
nsresult IsDefaultHandlerFor(const nsAString& aFileExtensionOrProtocol, bool *_retval); \
nsresult QueryCurrentDefaultHandlerFor(const nsAString& aFileExtensionOrProtocol, nsAString& _retval);
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIWINDOWSSHELLSERVICE(_to) \
NS_IMETHOD CreateShortcut(nsIFile *aBinary, const nsTArray<nsString >& aArguments, const nsAString& aDescription, nsIFile *aIconFile, uint16_t aIconIndex, const nsAString& aAppUserModelId, const nsAString& aShortcutFolder, const nsAString& aShortcutName, JSContext* cx, ::mozilla::dom::Promise * * _retval) override { return _to CreateShortcut(aBinary, aArguments, aDescription, aIconFile, aIconIndex, aAppUserModelId, aShortcutFolder, aShortcutName, cx, _retval); } \
NS_IMETHOD GetLaunchOnLoginShortcuts(nsTArray<nsString >& _retval) override { return _to GetLaunchOnLoginShortcuts(_retval); } \
NS_IMETHOD PinCurrentAppToStartMenuAsync(bool aCheckOnly, JSContext* cx, ::mozilla::dom::Promise * * _retval) override { return _to PinCurrentAppToStartMenuAsync(aCheckOnly, cx, _retval); } \
NS_IMETHOD IsCurrentAppPinnedToStartMenuAsync(JSContext* cx, ::mozilla::dom::Promise * * _retval) override { return _to IsCurrentAppPinnedToStartMenuAsync(cx, _retval); } \
NS_IMETHOD EnableLaunchOnLoginMSIXAsync(const nsAString& aTaskId, JSContext* cx, ::mozilla::dom::Promise * * _retval) override { return _to EnableLaunchOnLoginMSIXAsync(aTaskId, cx, _retval); } \
NS_IMETHOD DisableLaunchOnLoginMSIXAsync(const nsAString& aTaskId, JSContext* cx, ::mozilla::dom::Promise * * _retval) override { return _to DisableLaunchOnLoginMSIXAsync(aTaskId, cx, _retval); } \
NS_IMETHOD GetLaunchOnLoginEnabledMSIXAsync(const nsAString& aTaskId, JSContext* cx, ::mozilla::dom::Promise * * _retval) override { return _to GetLaunchOnLoginEnabledMSIXAsync(aTaskId, cx, _retval); } \
NS_IMETHOD PinCurrentAppToTaskbarAsync(bool aPrivateBrowsing, JSContext* cx, ::mozilla::dom::Promise * * _retval) override { return _to PinCurrentAppToTaskbarAsync(aPrivateBrowsing, cx, _retval); } \
NS_IMETHOD CheckPinCurrentAppToTaskbarAsync(bool aPrivateBrowsing, JSContext* cx, ::mozilla::dom::Promise * * _retval) override { return _to CheckPinCurrentAppToTaskbarAsync(aPrivateBrowsing, cx, _retval); } \
NS_IMETHOD IsCurrentAppPinnedToTaskbarAsync(const nsAString& aumid, JSContext* cx, ::mozilla::dom::Promise * * _retval) override { return _to IsCurrentAppPinnedToTaskbarAsync(aumid, cx, _retval); } \
NS_IMETHOD PinShortcutToTaskbar(const nsAString& aAppUserModelId, const nsAString& aShortcutPath, JSContext* cx, ::mozilla::dom::Promise * * _retval) override { return _to PinShortcutToTaskbar(aAppUserModelId, aShortcutPath, cx, _retval); } \
NS_IMETHOD CreateWindowsIcon(nsIFile *aFile, imgIContainer *aContainer, JSContext* cx, ::mozilla::dom::Promise * * _retval) override { return _to CreateWindowsIcon(aFile, aContainer, cx, _retval); } \
NS_IMETHOD UnpinShortcutFromTaskbar(const nsAString& aShortcutPath) override { return _to UnpinShortcutFromTaskbar(aShortcutPath); } \
NS_IMETHOD GetTaskbarTabShortcutPath(const nsAString& aShortcutName, nsAString& _retval) override { return _to GetTaskbarTabShortcutPath(aShortcutName, _retval); } \
NS_IMETHOD GetTaskbarTabPins(nsTArray<nsString >& _retval) override { return _to GetTaskbarTabPins(_retval); } \
NS_IMETHOD ClassifyShortcut(const nsAString& aPath, nsAString& _retval) override { return _to ClassifyShortcut(aPath, _retval); } \
NS_IMETHOD HasPinnableShortcut(const nsAString& aAUMID, bool aPrivateBrowsing, JSContext* cx, ::mozilla::dom::Promise * * _retval) override { return _to HasPinnableShortcut(aAUMID, aPrivateBrowsing, cx, _retval); } \
NS_IMETHOD CanSetDefaultBrowserUserChoice(bool *_retval) override { return _to CanSetDefaultBrowserUserChoice(_retval); } \
NS_IMETHOD CheckAllProgIDsExist(bool *_retval) override { return _to CheckAllProgIDsExist(_retval); } \
NS_IMETHOD CheckBrowserUserChoiceHashes(bool *_retval) override { return _to CheckBrowserUserChoiceHashes(_retval); } \
NS_IMETHOD IsDefaultHandlerFor(const nsAString& aFileExtensionOrProtocol, bool *_retval) override { return _to IsDefaultHandlerFor(aFileExtensionOrProtocol, _retval); } \
NS_IMETHOD QueryCurrentDefaultHandlerFor(const nsAString& aFileExtensionOrProtocol, nsAString& _retval) override { return _to QueryCurrentDefaultHandlerFor(aFileExtensionOrProtocol, _retval); }
/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIWINDOWSSHELLSERVICE(_to) \
NS_IMETHOD CreateShortcut(nsIFile *aBinary, const nsTArray<nsString >& aArguments, const nsAString& aDescription, nsIFile *aIconFile, uint16_t aIconIndex, const nsAString& aAppUserModelId, const nsAString& aShortcutFolder, const nsAString& aShortcutName, JSContext* cx, ::mozilla::dom::Promise * * _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->CreateShortcut(aBinary, aArguments, aDescription, aIconFile, aIconIndex, aAppUserModelId, aShortcutFolder, aShortcutName, cx, _retval); } \
NS_IMETHOD GetLaunchOnLoginShortcuts(nsTArray<nsString >& _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLaunchOnLoginShortcuts(_retval); } \
NS_IMETHOD PinCurrentAppToStartMenuAsync(bool aCheckOnly, JSContext* cx, ::mozilla::dom::Promise * * _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->PinCurrentAppToStartMenuAsync(aCheckOnly, cx, _retval); } \
NS_IMETHOD IsCurrentAppPinnedToStartMenuAsync(JSContext* cx, ::mozilla::dom::Promise * * _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->IsCurrentAppPinnedToStartMenuAsync(cx, _retval); } \
NS_IMETHOD EnableLaunchOnLoginMSIXAsync(const nsAString& aTaskId, JSContext* cx, ::mozilla::dom::Promise * * _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->EnableLaunchOnLoginMSIXAsync(aTaskId, cx, _retval); } \
NS_IMETHOD DisableLaunchOnLoginMSIXAsync(const nsAString& aTaskId, JSContext* cx, ::mozilla::dom::Promise * * _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->DisableLaunchOnLoginMSIXAsync(aTaskId, cx, _retval); } \
NS_IMETHOD GetLaunchOnLoginEnabledMSIXAsync(const nsAString& aTaskId, JSContext* cx, ::mozilla::dom::Promise * * _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLaunchOnLoginEnabledMSIXAsync(aTaskId, cx, _retval); } \
NS_IMETHOD PinCurrentAppToTaskbarAsync(bool aPrivateBrowsing, JSContext* cx, ::mozilla::dom::Promise * * _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->PinCurrentAppToTaskbarAsync(aPrivateBrowsing, cx, _retval); } \
NS_IMETHOD CheckPinCurrentAppToTaskbarAsync(bool aPrivateBrowsing, JSContext* cx, ::mozilla::dom::Promise * * _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->CheckPinCurrentAppToTaskbarAsync(aPrivateBrowsing, cx, _retval); } \
NS_IMETHOD IsCurrentAppPinnedToTaskbarAsync(const nsAString& aumid, JSContext* cx, ::mozilla::dom::Promise * * _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->IsCurrentAppPinnedToTaskbarAsync(aumid, cx, _retval); } \
NS_IMETHOD PinShortcutToTaskbar(const nsAString& aAppUserModelId, const nsAString& aShortcutPath, JSContext* cx, ::mozilla::dom::Promise * * _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->PinShortcutToTaskbar(aAppUserModelId, aShortcutPath, cx, _retval); } \
NS_IMETHOD CreateWindowsIcon(nsIFile *aFile, imgIContainer *aContainer, JSContext* cx, ::mozilla::dom::Promise * * _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->CreateWindowsIcon(aFile, aContainer, cx, _retval); } \
NS_IMETHOD UnpinShortcutFromTaskbar(const nsAString& aShortcutPath) override { return !_to ? NS_ERROR_NULL_POINTER : _to->UnpinShortcutFromTaskbar(aShortcutPath); } \
NS_IMETHOD GetTaskbarTabShortcutPath(const nsAString& aShortcutName, nsAString& _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetTaskbarTabShortcutPath(aShortcutName, _retval); } \
NS_IMETHOD GetTaskbarTabPins(nsTArray<nsString >& _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetTaskbarTabPins(_retval); } \
NS_IMETHOD ClassifyShortcut(const nsAString& aPath, nsAString& _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ClassifyShortcut(aPath, _retval); } \
NS_IMETHOD HasPinnableShortcut(const nsAString& aAUMID, bool aPrivateBrowsing, JSContext* cx, ::mozilla::dom::Promise * * _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->HasPinnableShortcut(aAUMID, aPrivateBrowsing, cx, _retval); } \
NS_IMETHOD CanSetDefaultBrowserUserChoice(bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->CanSetDefaultBrowserUserChoice(_retval); } \
NS_IMETHOD CheckAllProgIDsExist(bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->CheckAllProgIDsExist(_retval); } \
NS_IMETHOD CheckBrowserUserChoiceHashes(bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->CheckBrowserUserChoiceHashes(_retval); } \
NS_IMETHOD IsDefaultHandlerFor(const nsAString& aFileExtensionOrProtocol, bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->IsDefaultHandlerFor(aFileExtensionOrProtocol, _retval); } \
NS_IMETHOD QueryCurrentDefaultHandlerFor(const nsAString& aFileExtensionOrProtocol, nsAString& _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->QueryCurrentDefaultHandlerFor(aFileExtensionOrProtocol, _retval); }
#endif /* __gen_nsIWindowsShellService_h__ */