/* * DO NOT EDIT. THIS FILE IS GENERATED FROM $SRCDIR/toolkit/components/autocomplete/nsIAutoCompleteInput.idl */ #ifndef __gen_nsIAutoCompleteInput_h__ #define __gen_nsIAutoCompleteInput_h__ #include "nsISupports.h" #include "nsIAutoCompleteController.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 */ namespace mozilla { namespace dom { class Event; /* webidl Event */ } // namespace dom } // namespace mozilla namespace mozilla { namespace dom { class Element; /* webidl Element */ } // namespace dom } // namespace mozilla /* starting interface: nsIAutoCompleteInput */ #define NS_IAUTOCOMPLETEINPUT_IID_STR "b068e70f-f82c-4c12-ad87-82e271c5c180" #define NS_IAUTOCOMPLETEINPUT_IID \ {0xb068e70f, 0xf82c, 0x4c12, \ { 0xad, 0x87, 0x82, 0xe2, 0x71, 0xc5, 0xc1, 0x80 }} class NS_NO_VTABLE MOZ_BINDING(binding_to, idl, class, XPIDL_nsIAutoCompleteInput) nsIAutoCompleteInput : public nsISupports { public: NS_INLINE_DECL_STATIC_IID(NS_IAUTOCOMPLETEINPUT_IID) /* Used by ToJSValue to check which scriptable interface is implemented. */ using ScriptableInterfaceType = nsIAutoCompleteInput; /* readonly attribute Element popupElement; */ MOZ_BINDING(binding_to, idl, getter, XPIDL_nsIAutoCompleteInput_popupElement) JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetPopupElement(mozilla::dom::Element **aPopupElement) = 0; /* readonly attribute nsIAutoCompletePopup popup; */ MOZ_BINDING(binding_to, idl, getter, XPIDL_nsIAutoCompleteInput_popup) JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetPopup(nsIAutoCompletePopup **aPopup) = 0; /* readonly attribute nsIAutoCompleteController controller; */ MOZ_BINDING(binding_to, idl, getter, XPIDL_nsIAutoCompleteInput_controller) JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetController(nsIAutoCompleteController **aController) = 0; /* [can_run_script] attribute boolean popupOpen; */ MOZ_BINDING(binding_to, idl, getter, XPIDL_nsIAutoCompleteInput_popupOpen) JS_HAZ_CAN_RUN_SCRIPT MOZ_CAN_RUN_SCRIPT NS_IMETHOD GetPopupOpen(bool *aPopupOpen) = 0; MOZ_BINDING(binding_to, idl, setter, XPIDL_nsIAutoCompleteInput_popupOpen) JS_HAZ_CAN_RUN_SCRIPT MOZ_CAN_RUN_SCRIPT NS_IMETHOD SetPopupOpen(bool aPopupOpen) = 0; /* attribute boolean disableAutoComplete; */ MOZ_BINDING(binding_to, idl, getter, XPIDL_nsIAutoCompleteInput_disableAutoComplete) JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetDisableAutoComplete(bool *aDisableAutoComplete) = 0; MOZ_BINDING(binding_to, idl, setter, XPIDL_nsIAutoCompleteInput_disableAutoComplete) JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetDisableAutoComplete(bool aDisableAutoComplete) = 0; /* attribute boolean completeDefaultIndex; */ MOZ_BINDING(binding_to, idl, getter, XPIDL_nsIAutoCompleteInput_completeDefaultIndex) JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetCompleteDefaultIndex(bool *aCompleteDefaultIndex) = 0; MOZ_BINDING(binding_to, idl, setter, XPIDL_nsIAutoCompleteInput_completeDefaultIndex) JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetCompleteDefaultIndex(bool aCompleteDefaultIndex) = 0; /* attribute boolean completeSelectedIndex; */ MOZ_BINDING(binding_to, idl, getter, XPIDL_nsIAutoCompleteInput_completeSelectedIndex) JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetCompleteSelectedIndex(bool *aCompleteSelectedIndex) = 0; MOZ_BINDING(binding_to, idl, setter, XPIDL_nsIAutoCompleteInput_completeSelectedIndex) JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetCompleteSelectedIndex(bool aCompleteSelectedIndex) = 0; /* attribute boolean forceComplete; */ MOZ_BINDING(binding_to, idl, getter, XPIDL_nsIAutoCompleteInput_forceComplete) JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetForceComplete(bool *aForceComplete) = 0; MOZ_BINDING(binding_to, idl, setter, XPIDL_nsIAutoCompleteInput_forceComplete) JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetForceComplete(bool aForceComplete) = 0; /* attribute unsigned long minResultsForPopup; */ MOZ_BINDING(binding_to, idl, getter, XPIDL_nsIAutoCompleteInput_minResultsForPopup) JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetMinResultsForPopup(uint32_t *aMinResultsForPopup) = 0; MOZ_BINDING(binding_to, idl, setter, XPIDL_nsIAutoCompleteInput_minResultsForPopup) JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetMinResultsForPopup(uint32_t aMinResultsForPopup) = 0; /* attribute unsigned long maxRows; */ MOZ_BINDING(binding_to, idl, getter, XPIDL_nsIAutoCompleteInput_maxRows) JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetMaxRows(uint32_t *aMaxRows) = 0; MOZ_BINDING(binding_to, idl, setter, XPIDL_nsIAutoCompleteInput_maxRows) JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetMaxRows(uint32_t aMaxRows) = 0; /* attribute unsigned long timeout; */ MOZ_BINDING(binding_to, idl, getter, XPIDL_nsIAutoCompleteInput_timeout) JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetTimeout(uint32_t *aTimeout) = 0; MOZ_BINDING(binding_to, idl, setter, XPIDL_nsIAutoCompleteInput_timeout) JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetTimeout(uint32_t aTimeout) = 0; /* attribute AString searchParam; */ MOZ_BINDING(binding_to, idl, getter, XPIDL_nsIAutoCompleteInput_searchParam) JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetSearchParam(nsAString& aSearchParam) = 0; MOZ_BINDING(binding_to, idl, setter, XPIDL_nsIAutoCompleteInput_searchParam) JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetSearchParam(const nsAString& aSearchParam) = 0; /* readonly attribute unsigned long searchCount; */ MOZ_BINDING(binding_to, idl, getter, XPIDL_nsIAutoCompleteInput_searchCount) JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetSearchCount(uint32_t *aSearchCount) = 0; /* ACString getSearchAt (in unsigned long index); */ MOZ_BINDING(binding_to, idl, method, XPIDL_nsIAutoCompleteInput_getSearchAt) JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetSearchAt(uint32_t index, nsACString& _retval) = 0; /* attribute AString textValue; */ MOZ_BINDING(binding_to, idl, getter, XPIDL_nsIAutoCompleteInput_textValue) JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetTextValue(nsAString& aTextValue) = 0; MOZ_BINDING(binding_to, idl, setter, XPIDL_nsIAutoCompleteInput_textValue) JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetTextValue(const nsAString& aTextValue) = 0; /* readonly attribute long selectionStart; */ MOZ_BINDING(binding_to, idl, getter, XPIDL_nsIAutoCompleteInput_selectionStart) JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetSelectionStart(int32_t *aSelectionStart) = 0; /* readonly attribute long selectionEnd; */ MOZ_BINDING(binding_to, idl, getter, XPIDL_nsIAutoCompleteInput_selectionEnd) JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetSelectionEnd(int32_t *aSelectionEnd) = 0; /* void selectTextRange (in long startIndex, in long endIndex); */ MOZ_BINDING(binding_to, idl, method, XPIDL_nsIAutoCompleteInput_selectTextRange) JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SelectTextRange(int32_t startIndex, int32_t endIndex) = 0; /* void onSearchBegin (); */ MOZ_BINDING(binding_to, idl, method, XPIDL_nsIAutoCompleteInput_onSearchBegin) JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD OnSearchBegin(void) = 0; /* void onSearchComplete (); */ MOZ_BINDING(binding_to, idl, method, XPIDL_nsIAutoCompleteInput_onSearchComplete) JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD OnSearchComplete(void) = 0; /* void onTextEntered ([optional] in Event aEvent); */ MOZ_BINDING(binding_to, idl, method, XPIDL_nsIAutoCompleteInput_onTextEntered) JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD OnTextEntered(mozilla::dom::Event *aEvent) = 0; /* boolean onTextReverted (); */ MOZ_BINDING(binding_to, idl, method, XPIDL_nsIAutoCompleteInput_onTextReverted) JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD OnTextReverted(bool *_retval) = 0; /* readonly attribute boolean consumeRollupEvent; */ MOZ_BINDING(binding_to, idl, getter, XPIDL_nsIAutoCompleteInput_consumeRollupEvent) JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetConsumeRollupEvent(bool *aConsumeRollupEvent) = 0; /* readonly attribute boolean inPrivateContext; */ MOZ_BINDING(binding_to, idl, getter, XPIDL_nsIAutoCompleteInput_inPrivateContext) JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetInPrivateContext(bool *aInPrivateContext) = 0; /* readonly attribute boolean noRollupOnCaretMove; */ MOZ_BINDING(binding_to, idl, getter, XPIDL_nsIAutoCompleteInput_noRollupOnCaretMove) JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetNoRollupOnCaretMove(bool *aNoRollupOnCaretMove) = 0; /* readonly attribute boolean noRollupOnEmptySearch; */ MOZ_BINDING(binding_to, idl, getter, XPIDL_nsIAutoCompleteInput_noRollupOnEmptySearch) JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetNoRollupOnEmptySearch(bool *aNoRollupOnEmptySearch) = 0; /* readonly attribute unsigned long userContextId; */ MOZ_BINDING(binding_to, idl, getter, XPIDL_nsIAutoCompleteInput_userContextId) JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetUserContextId(uint32_t *aUserContextId) = 0; /* readonly attribute boolean invalidatePreviousResult; */ MOZ_BINDING(binding_to, idl, getter, XPIDL_nsIAutoCompleteInput_invalidatePreviousResult) JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetInvalidatePreviousResult(bool *aInvalidatePreviousResult) = 0; }; /* Use this macro when declaring classes that implement this interface. */ #define NS_DECL_NSIAUTOCOMPLETEINPUT \ NS_IMETHOD GetPopupElement(mozilla::dom::Element **aPopupElement) override; \ NS_IMETHOD GetPopup(nsIAutoCompletePopup **aPopup) override; \ NS_IMETHOD GetController(nsIAutoCompleteController **aController) override; \ MOZ_CAN_RUN_SCRIPT NS_IMETHOD GetPopupOpen(bool *aPopupOpen) override; \ MOZ_CAN_RUN_SCRIPT NS_IMETHOD SetPopupOpen(bool aPopupOpen) override; \ NS_IMETHOD GetDisableAutoComplete(bool *aDisableAutoComplete) override; \ NS_IMETHOD SetDisableAutoComplete(bool aDisableAutoComplete) override; \ NS_IMETHOD GetCompleteDefaultIndex(bool *aCompleteDefaultIndex) override; \ NS_IMETHOD SetCompleteDefaultIndex(bool aCompleteDefaultIndex) override; \ NS_IMETHOD GetCompleteSelectedIndex(bool *aCompleteSelectedIndex) override; \ NS_IMETHOD SetCompleteSelectedIndex(bool aCompleteSelectedIndex) override; \ NS_IMETHOD GetForceComplete(bool *aForceComplete) override; \ NS_IMETHOD SetForceComplete(bool aForceComplete) override; \ NS_IMETHOD GetMinResultsForPopup(uint32_t *aMinResultsForPopup) override; \ NS_IMETHOD SetMinResultsForPopup(uint32_t aMinResultsForPopup) override; \ NS_IMETHOD GetMaxRows(uint32_t *aMaxRows) override; \ NS_IMETHOD SetMaxRows(uint32_t aMaxRows) override; \ NS_IMETHOD GetTimeout(uint32_t *aTimeout) override; \ NS_IMETHOD SetTimeout(uint32_t aTimeout) override; \ NS_IMETHOD GetSearchParam(nsAString& aSearchParam) override; \ NS_IMETHOD SetSearchParam(const nsAString& aSearchParam) override; \ NS_IMETHOD GetSearchCount(uint32_t *aSearchCount) override; \ NS_IMETHOD GetSearchAt(uint32_t index, nsACString& _retval) override; \ NS_IMETHOD GetTextValue(nsAString& aTextValue) override; \ NS_IMETHOD SetTextValue(const nsAString& aTextValue) override; \ NS_IMETHOD GetSelectionStart(int32_t *aSelectionStart) override; \ NS_IMETHOD GetSelectionEnd(int32_t *aSelectionEnd) override; \ NS_IMETHOD SelectTextRange(int32_t startIndex, int32_t endIndex) override; \ NS_IMETHOD OnSearchBegin(void) override; \ NS_IMETHOD OnSearchComplete(void) override; \ NS_IMETHOD OnTextEntered(mozilla::dom::Event *aEvent) override; \ NS_IMETHOD OnTextReverted(bool *_retval) override; \ NS_IMETHOD GetConsumeRollupEvent(bool *aConsumeRollupEvent) override; \ NS_IMETHOD GetInPrivateContext(bool *aInPrivateContext) override; \ NS_IMETHOD GetNoRollupOnCaretMove(bool *aNoRollupOnCaretMove) override; \ NS_IMETHOD GetNoRollupOnEmptySearch(bool *aNoRollupOnEmptySearch) override; \ NS_IMETHOD GetUserContextId(uint32_t *aUserContextId) override; \ NS_IMETHOD GetInvalidatePreviousResult(bool *aInvalidatePreviousResult) 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_NSIAUTOCOMPLETEINPUT \ MOZ_BINDING(binding_to, idl, getter, XPIDL_nsIAutoCompleteInput_popupElement)\ nsresult GetPopupElement(mozilla::dom::Element **aPopupElement); \ MOZ_BINDING(binding_to, idl, getter, XPIDL_nsIAutoCompleteInput_popup)\ nsresult GetPopup(nsIAutoCompletePopup **aPopup); \ MOZ_BINDING(binding_to, idl, getter, XPIDL_nsIAutoCompleteInput_controller)\ nsresult GetController(nsIAutoCompleteController **aController); \ MOZ_BINDING(binding_to, idl, getter, XPIDL_nsIAutoCompleteInput_popupOpen)\ MOZ_CAN_RUN_SCRIPT nsresult GetPopupOpen(bool *aPopupOpen); \ MOZ_BINDING(binding_to, idl, setter, XPIDL_nsIAutoCompleteInput_popupOpen)\ MOZ_CAN_RUN_SCRIPT nsresult SetPopupOpen(bool aPopupOpen); \ MOZ_BINDING(binding_to, idl, getter, XPIDL_nsIAutoCompleteInput_disableAutoComplete)\ nsresult GetDisableAutoComplete(bool *aDisableAutoComplete); \ MOZ_BINDING(binding_to, idl, setter, XPIDL_nsIAutoCompleteInput_disableAutoComplete)\ nsresult SetDisableAutoComplete(bool aDisableAutoComplete); \ MOZ_BINDING(binding_to, idl, getter, XPIDL_nsIAutoCompleteInput_completeDefaultIndex)\ nsresult GetCompleteDefaultIndex(bool *aCompleteDefaultIndex); \ MOZ_BINDING(binding_to, idl, setter, XPIDL_nsIAutoCompleteInput_completeDefaultIndex)\ nsresult SetCompleteDefaultIndex(bool aCompleteDefaultIndex); \ MOZ_BINDING(binding_to, idl, getter, XPIDL_nsIAutoCompleteInput_completeSelectedIndex)\ nsresult GetCompleteSelectedIndex(bool *aCompleteSelectedIndex); \ MOZ_BINDING(binding_to, idl, setter, XPIDL_nsIAutoCompleteInput_completeSelectedIndex)\ nsresult SetCompleteSelectedIndex(bool aCompleteSelectedIndex); \ MOZ_BINDING(binding_to, idl, getter, XPIDL_nsIAutoCompleteInput_forceComplete)\ nsresult GetForceComplete(bool *aForceComplete); \ MOZ_BINDING(binding_to, idl, setter, XPIDL_nsIAutoCompleteInput_forceComplete)\ nsresult SetForceComplete(bool aForceComplete); \ MOZ_BINDING(binding_to, idl, getter, XPIDL_nsIAutoCompleteInput_minResultsForPopup)\ nsresult GetMinResultsForPopup(uint32_t *aMinResultsForPopup); \ MOZ_BINDING(binding_to, idl, setter, XPIDL_nsIAutoCompleteInput_minResultsForPopup)\ nsresult SetMinResultsForPopup(uint32_t aMinResultsForPopup); \ MOZ_BINDING(binding_to, idl, getter, XPIDL_nsIAutoCompleteInput_maxRows)\ nsresult GetMaxRows(uint32_t *aMaxRows); \ MOZ_BINDING(binding_to, idl, setter, XPIDL_nsIAutoCompleteInput_maxRows)\ nsresult SetMaxRows(uint32_t aMaxRows); \ MOZ_BINDING(binding_to, idl, getter, XPIDL_nsIAutoCompleteInput_timeout)\ nsresult GetTimeout(uint32_t *aTimeout); \ MOZ_BINDING(binding_to, idl, setter, XPIDL_nsIAutoCompleteInput_timeout)\ nsresult SetTimeout(uint32_t aTimeout); \ MOZ_BINDING(binding_to, idl, getter, XPIDL_nsIAutoCompleteInput_searchParam)\ nsresult GetSearchParam(nsAString& aSearchParam); \ MOZ_BINDING(binding_to, idl, setter, XPIDL_nsIAutoCompleteInput_searchParam)\ nsresult SetSearchParam(const nsAString& aSearchParam); \ MOZ_BINDING(binding_to, idl, getter, XPIDL_nsIAutoCompleteInput_searchCount)\ nsresult GetSearchCount(uint32_t *aSearchCount); \ MOZ_BINDING(binding_to, idl, method, XPIDL_nsIAutoCompleteInput_getSearchAt)\ nsresult GetSearchAt(uint32_t index, nsACString& _retval); \ MOZ_BINDING(binding_to, idl, getter, XPIDL_nsIAutoCompleteInput_textValue)\ nsresult GetTextValue(nsAString& aTextValue); \ MOZ_BINDING(binding_to, idl, setter, XPIDL_nsIAutoCompleteInput_textValue)\ nsresult SetTextValue(const nsAString& aTextValue); \ MOZ_BINDING(binding_to, idl, getter, XPIDL_nsIAutoCompleteInput_selectionStart)\ nsresult GetSelectionStart(int32_t *aSelectionStart); \ MOZ_BINDING(binding_to, idl, getter, XPIDL_nsIAutoCompleteInput_selectionEnd)\ nsresult GetSelectionEnd(int32_t *aSelectionEnd); \ MOZ_BINDING(binding_to, idl, method, XPIDL_nsIAutoCompleteInput_selectTextRange)\ nsresult SelectTextRange(int32_t startIndex, int32_t endIndex); \ MOZ_BINDING(binding_to, idl, method, XPIDL_nsIAutoCompleteInput_onSearchBegin)\ nsresult OnSearchBegin(void); \ MOZ_BINDING(binding_to, idl, method, XPIDL_nsIAutoCompleteInput_onSearchComplete)\ nsresult OnSearchComplete(void); \ MOZ_BINDING(binding_to, idl, method, XPIDL_nsIAutoCompleteInput_onTextEntered)\ nsresult OnTextEntered(mozilla::dom::Event *aEvent); \ MOZ_BINDING(binding_to, idl, method, XPIDL_nsIAutoCompleteInput_onTextReverted)\ nsresult OnTextReverted(bool *_retval); \ MOZ_BINDING(binding_to, idl, getter, XPIDL_nsIAutoCompleteInput_consumeRollupEvent)\ nsresult GetConsumeRollupEvent(bool *aConsumeRollupEvent); \ MOZ_BINDING(binding_to, idl, getter, XPIDL_nsIAutoCompleteInput_inPrivateContext)\ nsresult GetInPrivateContext(bool *aInPrivateContext); \ MOZ_BINDING(binding_to, idl, getter, XPIDL_nsIAutoCompleteInput_noRollupOnCaretMove)\ nsresult GetNoRollupOnCaretMove(bool *aNoRollupOnCaretMove); \ MOZ_BINDING(binding_to, idl, getter, XPIDL_nsIAutoCompleteInput_noRollupOnEmptySearch)\ nsresult GetNoRollupOnEmptySearch(bool *aNoRollupOnEmptySearch); \ MOZ_BINDING(binding_to, idl, getter, XPIDL_nsIAutoCompleteInput_userContextId)\ nsresult GetUserContextId(uint32_t *aUserContextId); \ MOZ_BINDING(binding_to, idl, getter, XPIDL_nsIAutoCompleteInput_invalidatePreviousResult)\ nsresult GetInvalidatePreviousResult(bool *aInvalidatePreviousResult); /* Use this macro to declare functions that forward the behavior of this interface to another object. */ #define NS_FORWARD_NSIAUTOCOMPLETEINPUT(_to) \ NS_IMETHOD GetPopupElement(mozilla::dom::Element **aPopupElement) override { return _to GetPopupElement(aPopupElement); } \ NS_IMETHOD GetPopup(nsIAutoCompletePopup **aPopup) override { return _to GetPopup(aPopup); } \ NS_IMETHOD GetController(nsIAutoCompleteController **aController) override { return _to GetController(aController); } \ MOZ_CAN_RUN_SCRIPT NS_IMETHOD GetPopupOpen(bool *aPopupOpen) override { return _to GetPopupOpen(aPopupOpen); } \ MOZ_CAN_RUN_SCRIPT NS_IMETHOD SetPopupOpen(bool aPopupOpen) override { return _to SetPopupOpen(aPopupOpen); } \ NS_IMETHOD GetDisableAutoComplete(bool *aDisableAutoComplete) override { return _to GetDisableAutoComplete(aDisableAutoComplete); } \ NS_IMETHOD SetDisableAutoComplete(bool aDisableAutoComplete) override { return _to SetDisableAutoComplete(aDisableAutoComplete); } \ NS_IMETHOD GetCompleteDefaultIndex(bool *aCompleteDefaultIndex) override { return _to GetCompleteDefaultIndex(aCompleteDefaultIndex); } \ NS_IMETHOD SetCompleteDefaultIndex(bool aCompleteDefaultIndex) override { return _to SetCompleteDefaultIndex(aCompleteDefaultIndex); } \ NS_IMETHOD GetCompleteSelectedIndex(bool *aCompleteSelectedIndex) override { return _to GetCompleteSelectedIndex(aCompleteSelectedIndex); } \ NS_IMETHOD SetCompleteSelectedIndex(bool aCompleteSelectedIndex) override { return _to SetCompleteSelectedIndex(aCompleteSelectedIndex); } \ NS_IMETHOD GetForceComplete(bool *aForceComplete) override { return _to GetForceComplete(aForceComplete); } \ NS_IMETHOD SetForceComplete(bool aForceComplete) override { return _to SetForceComplete(aForceComplete); } \ NS_IMETHOD GetMinResultsForPopup(uint32_t *aMinResultsForPopup) override { return _to GetMinResultsForPopup(aMinResultsForPopup); } \ NS_IMETHOD SetMinResultsForPopup(uint32_t aMinResultsForPopup) override { return _to SetMinResultsForPopup(aMinResultsForPopup); } \ NS_IMETHOD GetMaxRows(uint32_t *aMaxRows) override { return _to GetMaxRows(aMaxRows); } \ NS_IMETHOD SetMaxRows(uint32_t aMaxRows) override { return _to SetMaxRows(aMaxRows); } \ NS_IMETHOD GetTimeout(uint32_t *aTimeout) override { return _to GetTimeout(aTimeout); } \ NS_IMETHOD SetTimeout(uint32_t aTimeout) override { return _to SetTimeout(aTimeout); } \ NS_IMETHOD GetSearchParam(nsAString& aSearchParam) override { return _to GetSearchParam(aSearchParam); } \ NS_IMETHOD SetSearchParam(const nsAString& aSearchParam) override { return _to SetSearchParam(aSearchParam); } \ NS_IMETHOD GetSearchCount(uint32_t *aSearchCount) override { return _to GetSearchCount(aSearchCount); } \ NS_IMETHOD GetSearchAt(uint32_t index, nsACString& _retval) override { return _to GetSearchAt(index, _retval); } \ NS_IMETHOD GetTextValue(nsAString& aTextValue) override { return _to GetTextValue(aTextValue); } \ NS_IMETHOD SetTextValue(const nsAString& aTextValue) override { return _to SetTextValue(aTextValue); } \ NS_IMETHOD GetSelectionStart(int32_t *aSelectionStart) override { return _to GetSelectionStart(aSelectionStart); } \ NS_IMETHOD GetSelectionEnd(int32_t *aSelectionEnd) override { return _to GetSelectionEnd(aSelectionEnd); } \ NS_IMETHOD SelectTextRange(int32_t startIndex, int32_t endIndex) override { return _to SelectTextRange(startIndex, endIndex); } \ NS_IMETHOD OnSearchBegin(void) override { return _to OnSearchBegin(); } \ NS_IMETHOD OnSearchComplete(void) override { return _to OnSearchComplete(); } \ NS_IMETHOD OnTextEntered(mozilla::dom::Event *aEvent) override { return _to OnTextEntered(aEvent); } \ NS_IMETHOD OnTextReverted(bool *_retval) override { return _to OnTextReverted(_retval); } \ NS_IMETHOD GetConsumeRollupEvent(bool *aConsumeRollupEvent) override { return _to GetConsumeRollupEvent(aConsumeRollupEvent); } \ NS_IMETHOD GetInPrivateContext(bool *aInPrivateContext) override { return _to GetInPrivateContext(aInPrivateContext); } \ NS_IMETHOD GetNoRollupOnCaretMove(bool *aNoRollupOnCaretMove) override { return _to GetNoRollupOnCaretMove(aNoRollupOnCaretMove); } \ NS_IMETHOD GetNoRollupOnEmptySearch(bool *aNoRollupOnEmptySearch) override { return _to GetNoRollupOnEmptySearch(aNoRollupOnEmptySearch); } \ NS_IMETHOD GetUserContextId(uint32_t *aUserContextId) override { return _to GetUserContextId(aUserContextId); } \ NS_IMETHOD GetInvalidatePreviousResult(bool *aInvalidatePreviousResult) override { return _to GetInvalidatePreviousResult(aInvalidatePreviousResult); } /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */ #define NS_FORWARD_SAFE_NSIAUTOCOMPLETEINPUT(_to) \ NS_IMETHOD GetPopupElement(mozilla::dom::Element **aPopupElement) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPopupElement(aPopupElement); } \ NS_IMETHOD GetPopup(nsIAutoCompletePopup **aPopup) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPopup(aPopup); } \ NS_IMETHOD GetController(nsIAutoCompleteController **aController) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetController(aController); } \ MOZ_CAN_RUN_SCRIPT NS_IMETHOD GetPopupOpen(bool *aPopupOpen) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPopupOpen(aPopupOpen); } \ MOZ_CAN_RUN_SCRIPT NS_IMETHOD SetPopupOpen(bool aPopupOpen) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetPopupOpen(aPopupOpen); } \ NS_IMETHOD GetDisableAutoComplete(bool *aDisableAutoComplete) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDisableAutoComplete(aDisableAutoComplete); } \ NS_IMETHOD SetDisableAutoComplete(bool aDisableAutoComplete) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetDisableAutoComplete(aDisableAutoComplete); } \ NS_IMETHOD GetCompleteDefaultIndex(bool *aCompleteDefaultIndex) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCompleteDefaultIndex(aCompleteDefaultIndex); } \ NS_IMETHOD SetCompleteDefaultIndex(bool aCompleteDefaultIndex) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetCompleteDefaultIndex(aCompleteDefaultIndex); } \ NS_IMETHOD GetCompleteSelectedIndex(bool *aCompleteSelectedIndex) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCompleteSelectedIndex(aCompleteSelectedIndex); } \ NS_IMETHOD SetCompleteSelectedIndex(bool aCompleteSelectedIndex) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetCompleteSelectedIndex(aCompleteSelectedIndex); } \ NS_IMETHOD GetForceComplete(bool *aForceComplete) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetForceComplete(aForceComplete); } \ NS_IMETHOD SetForceComplete(bool aForceComplete) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetForceComplete(aForceComplete); } \ NS_IMETHOD GetMinResultsForPopup(uint32_t *aMinResultsForPopup) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMinResultsForPopup(aMinResultsForPopup); } \ NS_IMETHOD SetMinResultsForPopup(uint32_t aMinResultsForPopup) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetMinResultsForPopup(aMinResultsForPopup); } \ NS_IMETHOD GetMaxRows(uint32_t *aMaxRows) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMaxRows(aMaxRows); } \ NS_IMETHOD SetMaxRows(uint32_t aMaxRows) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetMaxRows(aMaxRows); } \ NS_IMETHOD GetTimeout(uint32_t *aTimeout) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetTimeout(aTimeout); } \ NS_IMETHOD SetTimeout(uint32_t aTimeout) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetTimeout(aTimeout); } \ NS_IMETHOD GetSearchParam(nsAString& aSearchParam) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSearchParam(aSearchParam); } \ NS_IMETHOD SetSearchParam(const nsAString& aSearchParam) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetSearchParam(aSearchParam); } \ NS_IMETHOD GetSearchCount(uint32_t *aSearchCount) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSearchCount(aSearchCount); } \ NS_IMETHOD GetSearchAt(uint32_t index, nsACString& _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSearchAt(index, _retval); } \ NS_IMETHOD GetTextValue(nsAString& aTextValue) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetTextValue(aTextValue); } \ NS_IMETHOD SetTextValue(const nsAString& aTextValue) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetTextValue(aTextValue); } \ NS_IMETHOD GetSelectionStart(int32_t *aSelectionStart) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSelectionStart(aSelectionStart); } \ NS_IMETHOD GetSelectionEnd(int32_t *aSelectionEnd) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSelectionEnd(aSelectionEnd); } \ NS_IMETHOD SelectTextRange(int32_t startIndex, int32_t endIndex) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SelectTextRange(startIndex, endIndex); } \ NS_IMETHOD OnSearchBegin(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->OnSearchBegin(); } \ NS_IMETHOD OnSearchComplete(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->OnSearchComplete(); } \ NS_IMETHOD OnTextEntered(mozilla::dom::Event *aEvent) override { return !_to ? NS_ERROR_NULL_POINTER : _to->OnTextEntered(aEvent); } \ NS_IMETHOD OnTextReverted(bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->OnTextReverted(_retval); } \ NS_IMETHOD GetConsumeRollupEvent(bool *aConsumeRollupEvent) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetConsumeRollupEvent(aConsumeRollupEvent); } \ NS_IMETHOD GetInPrivateContext(bool *aInPrivateContext) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetInPrivateContext(aInPrivateContext); } \ NS_IMETHOD GetNoRollupOnCaretMove(bool *aNoRollupOnCaretMove) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetNoRollupOnCaretMove(aNoRollupOnCaretMove); } \ NS_IMETHOD GetNoRollupOnEmptySearch(bool *aNoRollupOnEmptySearch) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetNoRollupOnEmptySearch(aNoRollupOnEmptySearch); } \ NS_IMETHOD GetUserContextId(uint32_t *aUserContextId) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetUserContextId(aUserContextId); } \ NS_IMETHOD GetInvalidatePreviousResult(bool *aInvalidatePreviousResult) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetInvalidatePreviousResult(aInvalidatePreviousResult); } #endif /* __gen_nsIAutoCompleteInput_h__ */