summaryrefslogtreecommitdiffstats
path: root/toolkit/components/autocomplete/nsIAutoCompletePopup.idl
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-06-12 05:35:37 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-06-12 05:35:37 +0000
commita90a5cba08fdf6c0ceb95101c275108a152a3aed (patch)
tree532507288f3defd7f4dcf1af49698bcb76034855 /toolkit/components/autocomplete/nsIAutoCompletePopup.idl
parentAdding debian version 126.0.1-1. (diff)
downloadfirefox-a90a5cba08fdf6c0ceb95101c275108a152a3aed.tar.xz
firefox-a90a5cba08fdf6c0ceb95101c275108a152a3aed.zip
Merging upstream version 127.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'toolkit/components/autocomplete/nsIAutoCompletePopup.idl')
-rw-r--r--toolkit/components/autocomplete/nsIAutoCompletePopup.idl27
1 files changed, 27 insertions, 0 deletions
diff --git a/toolkit/components/autocomplete/nsIAutoCompletePopup.idl b/toolkit/components/autocomplete/nsIAutoCompletePopup.idl
index 607863c9a7..556c0d49b8 100644
--- a/toolkit/components/autocomplete/nsIAutoCompletePopup.idl
+++ b/toolkit/components/autocomplete/nsIAutoCompletePopup.idl
@@ -5,6 +5,7 @@
#include "nsISupports.idl"
interface nsIAutoCompleteInput;
+interface nsIFormFillCompleteObserver;
webidl Element;
@@ -33,6 +34,11 @@ interface nsIAutoCompletePopup : nsISupports
readonly attribute boolean popupOpen;
/*
+ * Don't rollup the popup when the search string becomes "".
+ */
+ boolean getNoRollupOnEmptySearch(in Element element);
+
+ /*
* Bind the popup to an input object and display it with the given coordinates
*
* @param input - The input object that the popup will be bound to
@@ -69,4 +75,25 @@ interface nsIAutoCompletePopup : nsISupports
* @return The currently selected result item index
*/
void selectBy(in boolean reverse, in boolean page);
+
+ /*
+ * Search for a given string and notify a listener (either synchronously
+ * or asynchronously) of the result
+ *
+ * @param searchString - The string to search for
+ * @param searchParam - An extra parameter
+ * @param previousResult - A previous result to use for faster searching
+ * @param listener - A listener to notify when the search is complete
+ */
+ void startSearch(in AString searchString, in Element element, in nsIFormFillCompleteObserver listener);
+
+ /*
+ * Stop the search that is in progress
+ */
+ void stopSearch();
+
+ /**
+ * Notify the autocomplete popup that an autocomplete entry is selected.
+ */
+ void selectEntry();
};