Copy as Markdown

Other Tools

/*
* DO NOT EDIT. THIS FILE IS GENERATED FROM $SRCDIR/widget/nsILegacyJumpListBuilder.idl
*/
#ifndef __gen_nsILegacyJumpListBuilder_h__
#define __gen_nsILegacyJumpListBuilder_h__
#include "nsISupports.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 nsIArray; /* forward declaration */
/* starting interface: nsILegacyJumpListCommittedCallback */
#define NS_ILEGACYJUMPLISTCOMMITTEDCALLBACK_IID_STR "5131a62a-e99f-4631-9138-751f8aad1ae4"
#define NS_ILEGACYJUMPLISTCOMMITTEDCALLBACK_IID \
{0x5131a62a, 0xe99f, 0x4631, \
{ 0x91, 0x38, 0x75, 0x1f, 0x8a, 0xad, 0x1a, 0xe4 }}
class NS_NO_VTABLE nsILegacyJumpListCommittedCallback : public nsISupports {
public:
NS_DECLARE_STATIC_IID_ACCESSOR(NS_ILEGACYJUMPLISTCOMMITTEDCALLBACK_IID)
/* Used by ToJSValue to check which scriptable interface is implemented. */
using ScriptableInterfaceType = nsILegacyJumpListCommittedCallback;
/* void done (in boolean result); */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD Done(bool result) = 0;
};
NS_DEFINE_STATIC_IID_ACCESSOR(nsILegacyJumpListCommittedCallback, NS_ILEGACYJUMPLISTCOMMITTEDCALLBACK_IID)
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSILEGACYJUMPLISTCOMMITTEDCALLBACK \
NS_IMETHOD Done(bool result) 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_NSILEGACYJUMPLISTCOMMITTEDCALLBACK \
nsresult Done(bool result);
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSILEGACYJUMPLISTCOMMITTEDCALLBACK(_to) \
NS_IMETHOD Done(bool result) override { return _to Done(result); }
/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSILEGACYJUMPLISTCOMMITTEDCALLBACK(_to) \
NS_IMETHOD Done(bool result) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Done(result); }
/* starting interface: nsILegacyJumpListBuilder */
#define NS_ILEGACYJUMPLISTBUILDER_IID_STR "1fe6a9cd-2b18-4dd5-a176-c2b32fa4f683"
#define NS_ILEGACYJUMPLISTBUILDER_IID \
{0x1fe6a9cd, 0x2b18, 0x4dd5, \
{ 0xa1, 0x76, 0xc2, 0xb3, 0x2f, 0xa4, 0xf6, 0x83 }}
class NS_NO_VTABLE nsILegacyJumpListBuilder : public nsISupports {
public:
NS_DECLARE_STATIC_IID_ACCESSOR(NS_ILEGACYJUMPLISTBUILDER_IID)
/* Used by ToJSValue to check which scriptable interface is implemented. */
using ScriptableInterfaceType = nsILegacyJumpListBuilder;
enum {
JUMPLIST_CATEGORY_TASKS = 0,
JUMPLIST_CATEGORY_RECENT = 1,
JUMPLIST_CATEGORY_FREQUENT = 2,
JUMPLIST_CATEGORY_CUSTOMLIST = 3
};
/* readonly attribute short available; */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetAvailable(int16_t *aAvailable) = 0;
/* readonly attribute boolean isListCommitted; */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetIsListCommitted(bool *aIsListCommitted) = 0;
/* readonly attribute short maxListItems; */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetMaxListItems(int16_t *aMaxListItems) = 0;
/* [implicit_jscontext] Promise initListBuild (); */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD InitListBuild(JSContext* cx, ::mozilla::dom::Promise * * _retval) = 0;
/* boolean addListToBuild (in short aCatType, [optional] in nsIArray items, [optional] in AString catName); */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD AddListToBuild(int16_t aCatType, nsIArray *items, const nsAString& catName, bool *_retval) = 0;
/* void abortListBuild (); */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD AbortListBuild(void) = 0;
/* void commitListBuild ([optional] in nsILegacyJumpListCommittedCallback callback); */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD CommitListBuild(nsILegacyJumpListCommittedCallback *callback) = 0;
/* boolean deleteActiveList (); */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD DeleteActiveList(bool *_retval) = 0;
/* void setAppUserModelID (in AString aAppUserModelId); */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetAppUserModelID(const nsAString& aAppUserModelId) = 0;
};
NS_DEFINE_STATIC_IID_ACCESSOR(nsILegacyJumpListBuilder, NS_ILEGACYJUMPLISTBUILDER_IID)
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSILEGACYJUMPLISTBUILDER \
NS_IMETHOD GetAvailable(int16_t *aAvailable) override; \
NS_IMETHOD GetIsListCommitted(bool *aIsListCommitted) override; \
NS_IMETHOD GetMaxListItems(int16_t *aMaxListItems) override; \
NS_IMETHOD InitListBuild(JSContext* cx, ::mozilla::dom::Promise * * _retval) override; \
NS_IMETHOD AddListToBuild(int16_t aCatType, nsIArray *items, const nsAString& catName, bool *_retval) override; \
NS_IMETHOD AbortListBuild(void) override; \
NS_IMETHOD CommitListBuild(nsILegacyJumpListCommittedCallback *callback) override; \
NS_IMETHOD DeleteActiveList(bool *_retval) override; \
NS_IMETHOD SetAppUserModelID(const nsAString& aAppUserModelId) 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_NSILEGACYJUMPLISTBUILDER \
nsresult GetAvailable(int16_t *aAvailable); \
nsresult GetIsListCommitted(bool *aIsListCommitted); \
nsresult GetMaxListItems(int16_t *aMaxListItems); \
nsresult InitListBuild(JSContext* cx, ::mozilla::dom::Promise * * _retval); \
nsresult AddListToBuild(int16_t aCatType, nsIArray *items, const nsAString& catName, bool *_retval); \
nsresult AbortListBuild(void); \
nsresult CommitListBuild(nsILegacyJumpListCommittedCallback *callback); \
nsresult DeleteActiveList(bool *_retval); \
nsresult SetAppUserModelID(const nsAString& aAppUserModelId);
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSILEGACYJUMPLISTBUILDER(_to) \
NS_IMETHOD GetAvailable(int16_t *aAvailable) override { return _to GetAvailable(aAvailable); } \
NS_IMETHOD GetIsListCommitted(bool *aIsListCommitted) override { return _to GetIsListCommitted(aIsListCommitted); } \
NS_IMETHOD GetMaxListItems(int16_t *aMaxListItems) override { return _to GetMaxListItems(aMaxListItems); } \
NS_IMETHOD InitListBuild(JSContext* cx, ::mozilla::dom::Promise * * _retval) override { return _to InitListBuild(cx, _retval); } \
NS_IMETHOD AddListToBuild(int16_t aCatType, nsIArray *items, const nsAString& catName, bool *_retval) override { return _to AddListToBuild(aCatType, items, catName, _retval); } \
NS_IMETHOD AbortListBuild(void) override { return _to AbortListBuild(); } \
NS_IMETHOD CommitListBuild(nsILegacyJumpListCommittedCallback *callback) override { return _to CommitListBuild(callback); } \
NS_IMETHOD DeleteActiveList(bool *_retval) override { return _to DeleteActiveList(_retval); } \
NS_IMETHOD SetAppUserModelID(const nsAString& aAppUserModelId) override { return _to SetAppUserModelID(aAppUserModelId); }
/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSILEGACYJUMPLISTBUILDER(_to) \
NS_IMETHOD GetAvailable(int16_t *aAvailable) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAvailable(aAvailable); } \
NS_IMETHOD GetIsListCommitted(bool *aIsListCommitted) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIsListCommitted(aIsListCommitted); } \
NS_IMETHOD GetMaxListItems(int16_t *aMaxListItems) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMaxListItems(aMaxListItems); } \
NS_IMETHOD InitListBuild(JSContext* cx, ::mozilla::dom::Promise * * _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->InitListBuild(cx, _retval); } \
NS_IMETHOD AddListToBuild(int16_t aCatType, nsIArray *items, const nsAString& catName, bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->AddListToBuild(aCatType, items, catName, _retval); } \
NS_IMETHOD AbortListBuild(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->AbortListBuild(); } \
NS_IMETHOD CommitListBuild(nsILegacyJumpListCommittedCallback *callback) override { return !_to ? NS_ERROR_NULL_POINTER : _to->CommitListBuild(callback); } \
NS_IMETHOD DeleteActiveList(bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->DeleteActiveList(_retval); } \
NS_IMETHOD SetAppUserModelID(const nsAString& aAppUserModelId) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetAppUserModelID(aAppUserModelId); }
#endif /* __gen_nsILegacyJumpListBuilder_h__ */