Copy as Markdown
Other Tools
/*
* DO NOT EDIT. THIS FILE IS GENERATED FROM $SRCDIR/toolkit/components/cookiebanners/nsIClickRule.idl
*/
#ifndef __gen_nsIClickRule_h__
#define __gen_nsIClickRule_h__
#include "nsISupports.h"
/* For IDL files that don't want to include root IDL files. */
#ifndef NS_NO_VTABLE
#define NS_NO_VTABLE
#endif
/* starting interface: nsIClickRule */
#define NS_ICLICKRULE_IID_STR "7e104b32-b6db-43f3-b887-573c01acef39"
#define NS_ICLICKRULE_IID \
{0x7e104b32, 0xb6db, 0x43f3, \
{ 0xb8, 0x87, 0x57, 0x3c, 0x01, 0xac, 0xef, 0x39 }}
class NS_NO_VTABLE nsIClickRule : public nsISupports {
public:
NS_DECLARE_STATIC_IID_ACCESSOR(NS_ICLICKRULE_IID)
/* Used by ToJSValue to check which scriptable interface is implemented. */
using ScriptableInterfaceType = nsIClickRule;
enum RunContext : uint8_t {
RUN_TOP = 0,
RUN_CHILD = 1,
RUN_ALL = 2,
};
/* [must_use] readonly attribute ACString presence; */
[[nodiscard]] NS_IMETHOD GetPresence(nsACString& aPresence) = 0;
/* [must_use] readonly attribute boolean skipPresenceVisibilityCheck; */
[[nodiscard]] NS_IMETHOD GetSkipPresenceVisibilityCheck(bool *aSkipPresenceVisibilityCheck) = 0;
/* [must_use] readonly attribute nsIClickRule_RunContext runContext; */
[[nodiscard]] NS_IMETHOD GetRunContext(nsIClickRule::RunContext *aRunContext) = 0;
/* [must_use] readonly attribute ACString hide; */
[[nodiscard]] NS_IMETHOD GetHide(nsACString& aHide) = 0;
/* [must_use] readonly attribute ACString optOut; */
[[nodiscard]] NS_IMETHOD GetOptOut(nsACString& aOptOut) = 0;
/* [must_use] readonly attribute ACString optIn; */
[[nodiscard]] NS_IMETHOD GetOptIn(nsACString& aOptIn) = 0;
};
NS_DEFINE_STATIC_IID_ACCESSOR(nsIClickRule, NS_ICLICKRULE_IID)
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSICLICKRULE \
[[nodiscard]] NS_IMETHOD GetPresence(nsACString& aPresence) override; \
[[nodiscard]] NS_IMETHOD GetSkipPresenceVisibilityCheck(bool *aSkipPresenceVisibilityCheck) override; \
[[nodiscard]] NS_IMETHOD GetRunContext(nsIClickRule::RunContext *aRunContext) override; \
[[nodiscard]] NS_IMETHOD GetHide(nsACString& aHide) override; \
[[nodiscard]] NS_IMETHOD GetOptOut(nsACString& aOptOut) override; \
[[nodiscard]] NS_IMETHOD GetOptIn(nsACString& aOptIn) 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_NSICLICKRULE \
[[nodiscard]] nsresult GetPresence(nsACString& aPresence); \
[[nodiscard]] nsresult GetSkipPresenceVisibilityCheck(bool *aSkipPresenceVisibilityCheck); \
[[nodiscard]] nsresult GetRunContext(nsIClickRule::RunContext *aRunContext); \
[[nodiscard]] nsresult GetHide(nsACString& aHide); \
[[nodiscard]] nsresult GetOptOut(nsACString& aOptOut); \
[[nodiscard]] nsresult GetOptIn(nsACString& aOptIn);
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSICLICKRULE(_to) \
[[nodiscard]] NS_IMETHOD GetPresence(nsACString& aPresence) override { return _to GetPresence(aPresence); } \
[[nodiscard]] NS_IMETHOD GetSkipPresenceVisibilityCheck(bool *aSkipPresenceVisibilityCheck) override { return _to GetSkipPresenceVisibilityCheck(aSkipPresenceVisibilityCheck); } \
[[nodiscard]] NS_IMETHOD GetRunContext(nsIClickRule::RunContext *aRunContext) override { return _to GetRunContext(aRunContext); } \
[[nodiscard]] NS_IMETHOD GetHide(nsACString& aHide) override { return _to GetHide(aHide); } \
[[nodiscard]] NS_IMETHOD GetOptOut(nsACString& aOptOut) override { return _to GetOptOut(aOptOut); } \
[[nodiscard]] NS_IMETHOD GetOptIn(nsACString& aOptIn) override { return _to GetOptIn(aOptIn); }
/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSICLICKRULE(_to) \
[[nodiscard]] NS_IMETHOD GetPresence(nsACString& aPresence) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPresence(aPresence); } \
[[nodiscard]] NS_IMETHOD GetSkipPresenceVisibilityCheck(bool *aSkipPresenceVisibilityCheck) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSkipPresenceVisibilityCheck(aSkipPresenceVisibilityCheck); } \
[[nodiscard]] NS_IMETHOD GetRunContext(nsIClickRule::RunContext *aRunContext) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetRunContext(aRunContext); } \
[[nodiscard]] NS_IMETHOD GetHide(nsACString& aHide) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetHide(aHide); } \
[[nodiscard]] NS_IMETHOD GetOptOut(nsACString& aOptOut) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetOptOut(aOptOut); } \
[[nodiscard]] NS_IMETHOD GetOptIn(nsACString& aOptIn) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetOptIn(aOptIn); }
#endif /* __gen_nsIClickRule_h__ */