Source code

Revision control

Other Tools

1
/* This Source Code Form is subject to the terms of the Mozilla Public
2
* License, v. 2.0. If a copy of the MPL was not distributed with this
3
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
4
5
#include "nsISupports.idl"
6
7
interface nsIAutoCompleteResult;
8
interface nsIFormAutoCompleteObserver;
9
10
webidl HTMLInputElement;
11
12
[scriptable, uuid(2bdac17c-53f1-4896-a521-682ccdeef3a8)]
13
interface nsILoginAutoCompleteSearch : nsISupports {
14
/**
15
* Generate results for a login field autocomplete menu.
16
*
17
* NOTE: This interface is provided for use only by the FormFillController,
18
* which calls it directly. This isn't really ideal, it should
19
* probably be callback registered through the FFC.
20
* NOTE: This API is different than nsIAutoCompleteSearch.
21
*/
22
void startSearch(in AString aSearchString,
23
in nsIAutoCompleteResult aPreviousResult,
24
in HTMLInputElement aElement,
25
in nsIFormAutoCompleteObserver aListener);
26
27
/**
28
* Stop a previously-started search.
29
*/
30
void stopSearch();
31
};