Copy as Markdown
Other Tools
/*
* DO NOT EDIT. THIS FILE IS GENERATED FROM $SRCDIR/toolkit/components/satchel/nsIFormFillController.idl
*/
#ifndef __gen_nsIFormFillController_h__
#define __gen_nsIFormFillController_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 nsIAutoCompletePopup; /* forward declaration */
class nsIAutoCompleteResult; /* forward declaration */
namespace mozilla {
namespace dom {
class Document; /* webidl Document */
} // namespace dom
} // namespace mozilla
namespace mozilla {
namespace dom {
class Element; /* webidl Element */
} // namespace dom
} // namespace mozilla
namespace mozilla {
namespace dom {
class Event; /* webidl Event */
} // namespace dom
} // namespace mozilla
/* starting interface: nsIFormFillFocusListener */
#define NS_IFORMFILLFOCUSLISTENER_IID_STR "644ac1f4-2122-498e-87bf-2b01d2e24c1e"
#define NS_IFORMFILLFOCUSLISTENER_IID \
{0x644ac1f4, 0x2122, 0x498e, \
{ 0x87, 0xbf, 0x2b, 0x01, 0xd2, 0xe2, 0x4c, 0x1e }}
class NS_NO_VTABLE nsIFormFillFocusListener : public nsISupports {
public:
NS_INLINE_DECL_STATIC_IID(NS_IFORMFILLFOCUSLISTENER_IID)
/* Used by ToJSValue to check which scriptable interface is implemented. */
using ScriptableInterfaceType = nsIFormFillFocusListener;
/* Promise handleFocus (in Element element); */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD HandleFocus(mozilla::dom::Element *element, ::mozilla::dom::Promise * * _retval) = 0;
};
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIFORMFILLFOCUSLISTENER \
NS_IMETHOD HandleFocus(mozilla::dom::Element *element, ::mozilla::dom::Promise * * _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_NSIFORMFILLFOCUSLISTENER \
nsresult HandleFocus(mozilla::dom::Element *element, ::mozilla::dom::Promise * * _retval);
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIFORMFILLFOCUSLISTENER(_to) \
NS_IMETHOD HandleFocus(mozilla::dom::Element *element, ::mozilla::dom::Promise * * _retval) override { return _to HandleFocus(element, _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_NSIFORMFILLFOCUSLISTENER(_to) \
NS_IMETHOD HandleFocus(mozilla::dom::Element *element, ::mozilla::dom::Promise * * _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->HandleFocus(element, _retval); }
/* starting interface: nsIFormFillController */
#define NS_IFORMFILLCONTROLLER_IID_STR "07f0a0dc-f6e9-4cdd-a55f-56d770523a4c"
#define NS_IFORMFILLCONTROLLER_IID \
{0x07f0a0dc, 0xf6e9, 0x4cdd, \
{ 0xa5, 0x5f, 0x56, 0xd7, 0x70, 0x52, 0x3a, 0x4c }}
class NS_NO_VTABLE nsIFormFillController : public nsISupports {
public:
NS_INLINE_DECL_STATIC_IID(NS_IFORMFILLCONTROLLER_IID)
/* Used by ToJSValue to check which scriptable interface is implemented. */
using ScriptableInterfaceType = nsIFormFillController;
/* [setter_can_run_script] attribute Element controlledElement; */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetControlledElement(mozilla::dom::Element **aControlledElement) = 0;
JS_HAZ_CAN_RUN_SCRIPT MOZ_CAN_RUN_SCRIPT NS_IMETHOD SetControlledElement(mozilla::dom::Element *aControlledElement) = 0;
/* readonly attribute boolean passwordPopupAutomaticallyOpened; */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetPasswordPopupAutomaticallyOpened(bool *aPasswordPopupAutomaticallyOpened) = 0;
/* [can_run_script] void markAsAutoCompletableField (in Element aElement); */
JS_HAZ_CAN_RUN_SCRIPT MOZ_CAN_RUN_SCRIPT NS_IMETHOD MarkAsAutoCompletableField(mozilla::dom::Element *aElement) = 0;
/* [can_run_script] void showPopup (); */
JS_HAZ_CAN_RUN_SCRIPT MOZ_CAN_RUN_SCRIPT NS_IMETHOD ShowPopup(void) = 0;
/* void addFocusListener (in nsIFormFillFocusListener listener); */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD AddFocusListener(nsIFormFillFocusListener *listener) = 0;
};
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIFORMFILLCONTROLLER \
NS_IMETHOD GetControlledElement(mozilla::dom::Element **aControlledElement) override; \
MOZ_CAN_RUN_SCRIPT NS_IMETHOD SetControlledElement(mozilla::dom::Element *aControlledElement) override; \
NS_IMETHOD GetPasswordPopupAutomaticallyOpened(bool *aPasswordPopupAutomaticallyOpened) override; \
MOZ_CAN_RUN_SCRIPT NS_IMETHOD MarkAsAutoCompletableField(mozilla::dom::Element *aElement) override; \
MOZ_CAN_RUN_SCRIPT NS_IMETHOD ShowPopup(void) override; \
NS_IMETHOD AddFocusListener(nsIFormFillFocusListener *listener) 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_NSIFORMFILLCONTROLLER \
nsresult GetControlledElement(mozilla::dom::Element **aControlledElement); \
MOZ_CAN_RUN_SCRIPT nsresult SetControlledElement(mozilla::dom::Element *aControlledElement); \
nsresult GetPasswordPopupAutomaticallyOpened(bool *aPasswordPopupAutomaticallyOpened); \
MOZ_CAN_RUN_SCRIPT nsresult MarkAsAutoCompletableField(mozilla::dom::Element *aElement); \
MOZ_CAN_RUN_SCRIPT nsresult ShowPopup(void); \
nsresult AddFocusListener(nsIFormFillFocusListener *listener);
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIFORMFILLCONTROLLER(_to) \
NS_IMETHOD GetControlledElement(mozilla::dom::Element **aControlledElement) override { return _to GetControlledElement(aControlledElement); } \
MOZ_CAN_RUN_SCRIPT NS_IMETHOD SetControlledElement(mozilla::dom::Element *aControlledElement) override { return _to SetControlledElement(aControlledElement); } \
NS_IMETHOD GetPasswordPopupAutomaticallyOpened(bool *aPasswordPopupAutomaticallyOpened) override { return _to GetPasswordPopupAutomaticallyOpened(aPasswordPopupAutomaticallyOpened); } \
MOZ_CAN_RUN_SCRIPT NS_IMETHOD MarkAsAutoCompletableField(mozilla::dom::Element *aElement) override { return _to MarkAsAutoCompletableField(aElement); } \
MOZ_CAN_RUN_SCRIPT NS_IMETHOD ShowPopup(void) override { return _to ShowPopup(); } \
NS_IMETHOD AddFocusListener(nsIFormFillFocusListener *listener) override { return _to AddFocusListener(listener); }
/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIFORMFILLCONTROLLER(_to) \
NS_IMETHOD GetControlledElement(mozilla::dom::Element **aControlledElement) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetControlledElement(aControlledElement); } \
MOZ_CAN_RUN_SCRIPT NS_IMETHOD SetControlledElement(mozilla::dom::Element *aControlledElement) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetControlledElement(aControlledElement); } \
NS_IMETHOD GetPasswordPopupAutomaticallyOpened(bool *aPasswordPopupAutomaticallyOpened) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPasswordPopupAutomaticallyOpened(aPasswordPopupAutomaticallyOpened); } \
MOZ_CAN_RUN_SCRIPT NS_IMETHOD MarkAsAutoCompletableField(mozilla::dom::Element *aElement) override { return !_to ? NS_ERROR_NULL_POINTER : _to->MarkAsAutoCompletableField(aElement); } \
MOZ_CAN_RUN_SCRIPT NS_IMETHOD ShowPopup(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ShowPopup(); } \
NS_IMETHOD AddFocusListener(nsIFormFillFocusListener *listener) override { return !_to ? NS_ERROR_NULL_POINTER : _to->AddFocusListener(listener); }
/* starting interface: nsIFormFillCompleteObserver */
#define NS_IFORMFILLCOMPLETEOBSERVER_IID_STR "604419ab-55a0-4831-9eca-1b9e67cc4751"
#define NS_IFORMFILLCOMPLETEOBSERVER_IID \
{0x604419ab, 0x55a0, 0x4831, \
{ 0x9e, 0xca, 0x1b, 0x9e, 0x67, 0xcc, 0x47, 0x51 }}
class NS_NO_VTABLE nsIFormFillCompleteObserver : public nsISupports {
public:
NS_INLINE_DECL_STATIC_IID(NS_IFORMFILLCOMPLETEOBSERVER_IID)
/* Used by ToJSValue to check which scriptable interface is implemented. */
using ScriptableInterfaceType = nsIFormFillCompleteObserver;
/* [can_run_script] void onSearchCompletion (in nsIAutoCompleteResult result); */
JS_HAZ_CAN_RUN_SCRIPT MOZ_CAN_RUN_SCRIPT NS_IMETHOD OnSearchCompletion(nsIAutoCompleteResult *result) = 0;
};
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIFORMFILLCOMPLETEOBSERVER \
MOZ_CAN_RUN_SCRIPT NS_IMETHOD OnSearchCompletion(nsIAutoCompleteResult *result) 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_NSIFORMFILLCOMPLETEOBSERVER \
MOZ_CAN_RUN_SCRIPT nsresult OnSearchCompletion(nsIAutoCompleteResult *result);
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIFORMFILLCOMPLETEOBSERVER(_to) \
MOZ_CAN_RUN_SCRIPT NS_IMETHOD OnSearchCompletion(nsIAutoCompleteResult *result) override { return _to OnSearchCompletion(result); }
/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIFORMFILLCOMPLETEOBSERVER(_to) \
MOZ_CAN_RUN_SCRIPT NS_IMETHOD OnSearchCompletion(nsIAutoCompleteResult *result) override { return !_to ? NS_ERROR_NULL_POINTER : _to->OnSearchCompletion(result); }
#endif /* __gen_nsIFormFillController_h__ */