Copy as Markdown

Other Tools

/*
* DO NOT EDIT. THIS FILE IS GENERATED FROM $SRCDIR/toolkit/components/credentialmanagement/nsICredentialChosenCallback.idl
*/
#ifndef __gen_nsICredentialChosenCallback_h__
#define __gen_nsICredentialChosenCallback_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
namespace mozilla {
namespace dom {
class Credential; /* webidl Credential */
} // namespace dom
} // namespace mozilla
/* starting interface: nsICredentialChosenCallback */
#define NS_ICREDENTIALCHOSENCALLBACK_IID_STR "d2d2dd8e-6320-4047-9f22-2dd808c77b5c"
#define NS_ICREDENTIALCHOSENCALLBACK_IID \
{0xd2d2dd8e, 0x6320, 0x4047, \
{ 0x9f, 0x22, 0x2d, 0xd8, 0x08, 0xc7, 0x7b, 0x5c }}
class NS_NO_VTABLE nsICredentialChosenCallback : public nsISupports {
public:
NS_DECLARE_STATIC_IID_ACCESSOR(NS_ICREDENTIALCHOSENCALLBACK_IID)
/* Used by ToJSValue to check which scriptable interface is implemented. */
using ScriptableInterfaceType = nsICredentialChosenCallback;
/* void notify (in AUTF8String aChosenID); */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD Notify(const nsACString& aChosenID) = 0;
};
NS_DEFINE_STATIC_IID_ACCESSOR(nsICredentialChosenCallback, NS_ICREDENTIALCHOSENCALLBACK_IID)
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSICREDENTIALCHOSENCALLBACK \
NS_IMETHOD Notify(const nsACString& aChosenID) 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_NSICREDENTIALCHOSENCALLBACK \
nsresult Notify(const nsACString& aChosenID);
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSICREDENTIALCHOSENCALLBACK(_to) \
NS_IMETHOD Notify(const nsACString& aChosenID) override { return _to Notify(aChosenID); }
/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSICREDENTIALCHOSENCALLBACK(_to) \
NS_IMETHOD Notify(const nsACString& aChosenID) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Notify(aChosenID); }
#endif /* __gen_nsICredentialChosenCallback_h__ */