Copy as Markdown
Other Tools
/*
* DO NOT EDIT. THIS FILE IS GENERATED FROM $SRCDIR/toolkit/components/alerts/nsIWindowsAlertsService.idl
*/
#ifndef __gen_nsIWindowsAlertsService_h__
#define __gen_nsIWindowsAlertsService_h__
#include "nsIAlertsService.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
/* starting interface: nsIWindowsAlertNotification */
#define NS_IWINDOWSALERTNOTIFICATION_IID_STR "a46c385b-a45c-4b48-ab7c-aaed1252bb83"
#define NS_IWINDOWSALERTNOTIFICATION_IID \
{0xa46c385b, 0xa45c, 0x4b48, \
{ 0xab, 0x7c, 0xaa, 0xed, 0x12, 0x52, 0xbb, 0x83 }}
class NS_NO_VTABLE nsIWindowsAlertNotification : public nsIAlertNotification {
public:
NS_DECLARE_STATIC_IID_ACCESSOR(NS_IWINDOWSALERTNOTIFICATION_IID)
/* Used by ToJSValue to check which scriptable interface is implemented. */
using ScriptableInterfaceType = nsIWindowsAlertNotification;
/* attribute boolean handleActions; */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetHandleActions(bool *aHandleActions) = 0;
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetHandleActions(bool aHandleActions) = 0;
enum ImagePlacement : uint8_t {
eInline = 0,
eHero = 1,
eIcon = 2,
};
/* attribute nsIWindowsAlertNotification_ImagePlacement imagePlacement; */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetImagePlacement(nsIWindowsAlertNotification::ImagePlacement *aImagePlacement) = 0;
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetImagePlacement(nsIWindowsAlertNotification::ImagePlacement aImagePlacement) = 0;
};
NS_DEFINE_STATIC_IID_ACCESSOR(nsIWindowsAlertNotification, NS_IWINDOWSALERTNOTIFICATION_IID)
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIWINDOWSALERTNOTIFICATION \
NS_IMETHOD GetHandleActions(bool *aHandleActions) override; \
NS_IMETHOD SetHandleActions(bool aHandleActions) override; \
NS_IMETHOD GetImagePlacement(nsIWindowsAlertNotification::ImagePlacement *aImagePlacement) override; \
NS_IMETHOD SetImagePlacement(nsIWindowsAlertNotification::ImagePlacement aImagePlacement) 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_NSIWINDOWSALERTNOTIFICATION \
nsresult GetHandleActions(bool *aHandleActions); \
nsresult SetHandleActions(bool aHandleActions); \
nsresult GetImagePlacement(nsIWindowsAlertNotification::ImagePlacement *aImagePlacement); \
nsresult SetImagePlacement(nsIWindowsAlertNotification::ImagePlacement aImagePlacement);
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIWINDOWSALERTNOTIFICATION(_to) \
NS_IMETHOD GetHandleActions(bool *aHandleActions) override { return _to GetHandleActions(aHandleActions); } \
NS_IMETHOD SetHandleActions(bool aHandleActions) override { return _to SetHandleActions(aHandleActions); } \
NS_IMETHOD GetImagePlacement(nsIWindowsAlertNotification::ImagePlacement *aImagePlacement) override { return _to GetImagePlacement(aImagePlacement); } \
NS_IMETHOD SetImagePlacement(nsIWindowsAlertNotification::ImagePlacement aImagePlacement) override { return _to SetImagePlacement(aImagePlacement); }
/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIWINDOWSALERTNOTIFICATION(_to) \
NS_IMETHOD GetHandleActions(bool *aHandleActions) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetHandleActions(aHandleActions); } \
NS_IMETHOD SetHandleActions(bool aHandleActions) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetHandleActions(aHandleActions); } \
NS_IMETHOD GetImagePlacement(nsIWindowsAlertNotification::ImagePlacement *aImagePlacement) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetImagePlacement(aImagePlacement); } \
NS_IMETHOD SetImagePlacement(nsIWindowsAlertNotification::ImagePlacement aImagePlacement) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetImagePlacement(aImagePlacement); }
/* starting interface: nsIWindowsAlertsService */
#define NS_IWINDOWSALERTSSERVICE_IID_STR "e01c8066-fb4b-4304-b9c9-ab6ed4a8322c"
#define NS_IWINDOWSALERTSSERVICE_IID \
{0xe01c8066, 0xfb4b, 0x4304, \
{ 0xb9, 0xc9, 0xab, 0x6e, 0xd4, 0xa8, 0x32, 0x2c }}
class NS_NO_VTABLE nsIWindowsAlertsService : public nsIAlertsService {
public:
NS_DECLARE_STATIC_IID_ACCESSOR(NS_IWINDOWSALERTSSERVICE_IID)
/* Used by ToJSValue to check which scriptable interface is implemented. */
using ScriptableInterfaceType = nsIWindowsAlertsService;
/* [implicit_jscontext] Promise handleWindowsTag (in AString aWindowsTag); */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD HandleWindowsTag(const nsAString& aWindowsTag, JSContext* cx, ::mozilla::dom::Promise * * _retval) = 0;
/* AString getXmlStringForWindowsAlert (in nsIAlertNotification aAlert, [optional] in AString aWindowsTag); */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetXmlStringForWindowsAlert(nsIAlertNotification *aAlert, const nsAString& aWindowsTag, nsAString& _retval) = 0;
/* void removeAllNotificationsForInstall (); */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD RemoveAllNotificationsForInstall(void) = 0;
};
NS_DEFINE_STATIC_IID_ACCESSOR(nsIWindowsAlertsService, NS_IWINDOWSALERTSSERVICE_IID)
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIWINDOWSALERTSSERVICE \
NS_IMETHOD HandleWindowsTag(const nsAString& aWindowsTag, JSContext* cx, ::mozilla::dom::Promise * * _retval) override; \
NS_IMETHOD GetXmlStringForWindowsAlert(nsIAlertNotification *aAlert, const nsAString& aWindowsTag, nsAString& _retval) override; \
NS_IMETHOD RemoveAllNotificationsForInstall(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_NSIWINDOWSALERTSSERVICE \
nsresult HandleWindowsTag(const nsAString& aWindowsTag, JSContext* cx, ::mozilla::dom::Promise * * _retval); \
nsresult GetXmlStringForWindowsAlert(nsIAlertNotification *aAlert, const nsAString& aWindowsTag, nsAString& _retval); \
nsresult RemoveAllNotificationsForInstall(void);
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIWINDOWSALERTSSERVICE(_to) \
NS_IMETHOD HandleWindowsTag(const nsAString& aWindowsTag, JSContext* cx, ::mozilla::dom::Promise * * _retval) override { return _to HandleWindowsTag(aWindowsTag, cx, _retval); } \
NS_IMETHOD GetXmlStringForWindowsAlert(nsIAlertNotification *aAlert, const nsAString& aWindowsTag, nsAString& _retval) override { return _to GetXmlStringForWindowsAlert(aAlert, aWindowsTag, _retval); } \
NS_IMETHOD RemoveAllNotificationsForInstall(void) override { return _to RemoveAllNotificationsForInstall(); }
/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIWINDOWSALERTSSERVICE(_to) \
NS_IMETHOD HandleWindowsTag(const nsAString& aWindowsTag, JSContext* cx, ::mozilla::dom::Promise * * _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->HandleWindowsTag(aWindowsTag, cx, _retval); } \
NS_IMETHOD GetXmlStringForWindowsAlert(nsIAlertNotification *aAlert, const nsAString& aWindowsTag, nsAString& _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetXmlStringForWindowsAlert(aAlert, aWindowsTag, _retval); } \
NS_IMETHOD RemoveAllNotificationsForInstall(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->RemoveAllNotificationsForInstall(); }
#endif /* __gen_nsIWindowsAlertsService_h__ */