Copy as Markdown
Other Tools
/*
* DO NOT EDIT. THIS FILE IS GENERATED FROM $SRCDIR/toolkit/components/passwordmgr/nsIPromptInstance.idl
*/
#ifndef __gen_nsIPromptInstance_h__
#define __gen_nsIPromptInstance_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
/* starting interface: nsIPromptInstance */
#define NS_IPROMPTINSTANCE_IID_STR "889842e9-052c-46c9-99f3-f4a426571e38"
#define NS_IPROMPTINSTANCE_IID \
{0x889842e9, 0x052c, 0x46c9, \
{ 0x99, 0xf3, 0xf4, 0xa4, 0x26, 0x57, 0x1e, 0x38 }}
class NS_NO_VTABLE nsIPromptInstance : public nsISupports {
public:
NS_DECLARE_STATIC_IID_ACCESSOR(NS_IPROMPTINSTANCE_IID)
/* Used by ToJSValue to check which scriptable interface is implemented. */
using ScriptableInterfaceType = nsIPromptInstance;
/* void dismiss (); */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD Dismiss(void) = 0;
};
NS_DEFINE_STATIC_IID_ACCESSOR(nsIPromptInstance, NS_IPROMPTINSTANCE_IID)
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIPROMPTINSTANCE \
NS_IMETHOD Dismiss(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_NSIPROMPTINSTANCE \
nsresult Dismiss(void);
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIPROMPTINSTANCE(_to) \
NS_IMETHOD Dismiss(void) override { return _to Dismiss(); }
/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIPROMPTINSTANCE(_to) \
NS_IMETHOD Dismiss(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Dismiss(); }
#endif /* __gen_nsIPromptInstance_h__ */