Copy as Markdown

Other Tools

/*
* DO NOT EDIT. THIS FILE IS GENERATED FROM $SRCDIR/widget/nsILegacyJumpListItem.idl
*/
#ifndef __gen_nsILegacyJumpListItem_h__
#define __gen_nsILegacyJumpListItem_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 nsIURI; /* forward declaration */
class nsILocalHandlerApp; /* forward declaration */
class nsIMutableArray; /* forward declaration */
/* starting interface: nsILegacyJumpListItem */
#define NS_ILEGACYJUMPLISTITEM_IID_STR "acb8fb3c-e1b0-4044-8a50-e52c3e7c1057"
#define NS_ILEGACYJUMPLISTITEM_IID \
{0xacb8fb3c, 0xe1b0, 0x4044, \
{ 0x8a, 0x50, 0xe5, 0x2c, 0x3e, 0x7c, 0x10, 0x57 }}
class NS_NO_VTABLE nsILegacyJumpListItem : public nsISupports {
public:
NS_DECLARE_STATIC_IID_ACCESSOR(NS_ILEGACYJUMPLISTITEM_IID)
/* Used by ToJSValue to check which scriptable interface is implemented. */
using ScriptableInterfaceType = nsILegacyJumpListItem;
enum {
JUMPLIST_ITEM_EMPTY = 0,
JUMPLIST_ITEM_SEPARATOR = 1,
JUMPLIST_ITEM_LINK = 2,
JUMPLIST_ITEM_SHORTCUT = 3
};
/* readonly attribute short type; */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetType(int16_t *aType) = 0;
/* boolean equals (in nsILegacyJumpListItem item); */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD Equals(nsILegacyJumpListItem *item, bool *_retval) = 0;
};
NS_DEFINE_STATIC_IID_ACCESSOR(nsILegacyJumpListItem, NS_ILEGACYJUMPLISTITEM_IID)
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSILEGACYJUMPLISTITEM \
NS_IMETHOD GetType(int16_t *aType) override; \
NS_IMETHOD Equals(nsILegacyJumpListItem *item, bool *_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_NSILEGACYJUMPLISTITEM \
nsresult GetType(int16_t *aType); \
nsresult Equals(nsILegacyJumpListItem *item, bool *_retval);
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSILEGACYJUMPLISTITEM(_to) \
NS_IMETHOD GetType(int16_t *aType) override { return _to GetType(aType); } \
NS_IMETHOD Equals(nsILegacyJumpListItem *item, bool *_retval) override { return _to Equals(item, _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_NSILEGACYJUMPLISTITEM(_to) \
NS_IMETHOD GetType(int16_t *aType) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetType(aType); } \
NS_IMETHOD Equals(nsILegacyJumpListItem *item, bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Equals(item, _retval); }
/* starting interface: nsILegacyJumpListSeparator */
#define NS_ILEGACYJUMPLISTSEPARATOR_IID_STR "69a2d5c5-14dc-47da-925d-869e0bd64d27"
#define NS_ILEGACYJUMPLISTSEPARATOR_IID \
{0x69a2d5c5, 0x14dc, 0x47da, \
{ 0x92, 0x5d, 0x86, 0x9e, 0x0b, 0xd6, 0x4d, 0x27 }}
class NS_NO_VTABLE nsILegacyJumpListSeparator : public nsILegacyJumpListItem {
public:
NS_DECLARE_STATIC_IID_ACCESSOR(NS_ILEGACYJUMPLISTSEPARATOR_IID)
/* Used by ToJSValue to check which scriptable interface is implemented. */
using ScriptableInterfaceType = nsILegacyJumpListSeparator;
};
NS_DEFINE_STATIC_IID_ACCESSOR(nsILegacyJumpListSeparator, NS_ILEGACYJUMPLISTSEPARATOR_IID)
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSILEGACYJUMPLISTSEPARATOR \
/* no methods! */
/* 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_NSILEGACYJUMPLISTSEPARATOR \
/* no methods! */
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSILEGACYJUMPLISTSEPARATOR(_to) \
/* no methods! */
/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSILEGACYJUMPLISTSEPARATOR(_to) \
/* no methods! */
/* starting interface: nsILegacyJumpListLink */
#define NS_ILEGACYJUMPLISTLINK_IID_STR "76ea47b1-c797-49b3-9f18-5e740a688524"
#define NS_ILEGACYJUMPLISTLINK_IID \
{0x76ea47b1, 0xc797, 0x49b3, \
{ 0x9f, 0x18, 0x5e, 0x74, 0x0a, 0x68, 0x85, 0x24 }}
class NS_NO_VTABLE nsILegacyJumpListLink : public nsILegacyJumpListItem {
public:
NS_DECLARE_STATIC_IID_ACCESSOR(NS_ILEGACYJUMPLISTLINK_IID)
/* Used by ToJSValue to check which scriptable interface is implemented. */
using ScriptableInterfaceType = nsILegacyJumpListLink;
/* attribute nsIURI uri; */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetUri(nsIURI **aUri) = 0;
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetUri(nsIURI *aUri) = 0;
/* attribute AString uriTitle; */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetUriTitle(nsAString& aUriTitle) = 0;
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetUriTitle(const nsAString& aUriTitle) = 0;
};
NS_DEFINE_STATIC_IID_ACCESSOR(nsILegacyJumpListLink, NS_ILEGACYJUMPLISTLINK_IID)
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSILEGACYJUMPLISTLINK \
NS_IMETHOD GetUri(nsIURI **aUri) override; \
NS_IMETHOD SetUri(nsIURI *aUri) override; \
NS_IMETHOD GetUriTitle(nsAString& aUriTitle) override; \
NS_IMETHOD SetUriTitle(const nsAString& aUriTitle) 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_NSILEGACYJUMPLISTLINK \
nsresult GetUri(nsIURI **aUri); \
nsresult SetUri(nsIURI *aUri); \
nsresult GetUriTitle(nsAString& aUriTitle); \
nsresult SetUriTitle(const nsAString& aUriTitle);
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSILEGACYJUMPLISTLINK(_to) \
NS_IMETHOD GetUri(nsIURI **aUri) override { return _to GetUri(aUri); } \
NS_IMETHOD SetUri(nsIURI *aUri) override { return _to SetUri(aUri); } \
NS_IMETHOD GetUriTitle(nsAString& aUriTitle) override { return _to GetUriTitle(aUriTitle); } \
NS_IMETHOD SetUriTitle(const nsAString& aUriTitle) override { return _to SetUriTitle(aUriTitle); }
/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSILEGACYJUMPLISTLINK(_to) \
NS_IMETHOD GetUri(nsIURI **aUri) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetUri(aUri); } \
NS_IMETHOD SetUri(nsIURI *aUri) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetUri(aUri); } \
NS_IMETHOD GetUriTitle(nsAString& aUriTitle) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetUriTitle(aUriTitle); } \
NS_IMETHOD SetUriTitle(const nsAString& aUriTitle) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetUriTitle(aUriTitle); }
/* starting interface: nsILegacyJumpListShortcut */
#define NS_ILEGACYJUMPLISTSHORTCUT_IID_STR "cbe3a37c-bce1-4fec-80a5-5ffbc7f33eea"
#define NS_ILEGACYJUMPLISTSHORTCUT_IID \
{0xcbe3a37c, 0xbce1, 0x4fec, \
{ 0x80, 0xa5, 0x5f, 0xfb, 0xc7, 0xf3, 0x3e, 0xea }}
class NS_NO_VTABLE nsILegacyJumpListShortcut : public nsILegacyJumpListItem {
public:
NS_DECLARE_STATIC_IID_ACCESSOR(NS_ILEGACYJUMPLISTSHORTCUT_IID)
/* Used by ToJSValue to check which scriptable interface is implemented. */
using ScriptableInterfaceType = nsILegacyJumpListShortcut;
/* attribute nsILocalHandlerApp app; */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetApp(nsILocalHandlerApp **aApp) = 0;
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetApp(nsILocalHandlerApp *aApp) = 0;
/* attribute long iconIndex; */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetIconIndex(int32_t *aIconIndex) = 0;
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetIconIndex(int32_t aIconIndex) = 0;
/* attribute nsIURI faviconPageUri; */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetFaviconPageUri(nsIURI **aFaviconPageUri) = 0;
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetFaviconPageUri(nsIURI *aFaviconPageUri) = 0;
};
NS_DEFINE_STATIC_IID_ACCESSOR(nsILegacyJumpListShortcut, NS_ILEGACYJUMPLISTSHORTCUT_IID)
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSILEGACYJUMPLISTSHORTCUT \
NS_IMETHOD GetApp(nsILocalHandlerApp **aApp) override; \
NS_IMETHOD SetApp(nsILocalHandlerApp *aApp) override; \
NS_IMETHOD GetIconIndex(int32_t *aIconIndex) override; \
NS_IMETHOD SetIconIndex(int32_t aIconIndex) override; \
NS_IMETHOD GetFaviconPageUri(nsIURI **aFaviconPageUri) override; \
NS_IMETHOD SetFaviconPageUri(nsIURI *aFaviconPageUri) 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_NSILEGACYJUMPLISTSHORTCUT \
nsresult GetApp(nsILocalHandlerApp **aApp); \
nsresult SetApp(nsILocalHandlerApp *aApp); \
nsresult GetIconIndex(int32_t *aIconIndex); \
nsresult SetIconIndex(int32_t aIconIndex); \
nsresult GetFaviconPageUri(nsIURI **aFaviconPageUri); \
nsresult SetFaviconPageUri(nsIURI *aFaviconPageUri);
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSILEGACYJUMPLISTSHORTCUT(_to) \
NS_IMETHOD GetApp(nsILocalHandlerApp **aApp) override { return _to GetApp(aApp); } \
NS_IMETHOD SetApp(nsILocalHandlerApp *aApp) override { return _to SetApp(aApp); } \
NS_IMETHOD GetIconIndex(int32_t *aIconIndex) override { return _to GetIconIndex(aIconIndex); } \
NS_IMETHOD SetIconIndex(int32_t aIconIndex) override { return _to SetIconIndex(aIconIndex); } \
NS_IMETHOD GetFaviconPageUri(nsIURI **aFaviconPageUri) override { return _to GetFaviconPageUri(aFaviconPageUri); } \
NS_IMETHOD SetFaviconPageUri(nsIURI *aFaviconPageUri) override { return _to SetFaviconPageUri(aFaviconPageUri); }
/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSILEGACYJUMPLISTSHORTCUT(_to) \
NS_IMETHOD GetApp(nsILocalHandlerApp **aApp) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetApp(aApp); } \
NS_IMETHOD SetApp(nsILocalHandlerApp *aApp) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetApp(aApp); } \
NS_IMETHOD GetIconIndex(int32_t *aIconIndex) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIconIndex(aIconIndex); } \
NS_IMETHOD SetIconIndex(int32_t aIconIndex) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetIconIndex(aIconIndex); } \
NS_IMETHOD GetFaviconPageUri(nsIURI **aFaviconPageUri) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetFaviconPageUri(aFaviconPageUri); } \
NS_IMETHOD SetFaviconPageUri(nsIURI *aFaviconPageUri) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetFaviconPageUri(aFaviconPageUri); }
#endif /* __gen_nsILegacyJumpListItem_h__ */