summaryrefslogtreecommitdiffstats
path: root/chromium/third_party/WebKit/public/web/WebAutofillClient.h
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/third_party/WebKit/public/web/WebAutofillClient.h')
-rw-r--r--chromium/third_party/WebKit/public/web/WebAutofillClient.h49
1 files changed, 5 insertions, 44 deletions
diff --git a/chromium/third_party/WebKit/public/web/WebAutofillClient.h b/chromium/third_party/WebKit/public/web/WebAutofillClient.h
index 9e63a01b30f..7fef5f0ad72 100644
--- a/chromium/third_party/WebKit/public/web/WebAutofillClient.h
+++ b/chromium/third_party/WebKit/public/web/WebAutofillClient.h
@@ -33,66 +33,27 @@
namespace blink {
+class WebFormControlElement;
class WebFormElement;
-class WebFrame;
class WebInputElement;
class WebKeyboardEvent;
class WebNode;
-class WebString;
template <typename T> class WebVector;
class WebAutofillClient {
public:
- enum {
- MenuItemIDAutocompleteEntry = 0,
- MenuItemIDWarningMessage = -1,
- MenuItemIDPasswordEntry = -2,
- MenuItemIDSeparator = -3,
- MenuItemIDClearForm = -4,
- MenuItemIDAutofillOptions = -5,
- MenuItemIDDataListEntry = -6
- };
-
- // Informs the browser that the user has accepted an Autofill suggestion for
- // a WebNode. A positive |itemID| is a unique id used to identify the set
- // of Autofill profiles. If it is AutocompleteEntryMenuItemID, then the
- // suggestion is an Autocomplete suggestion; and |value| stores the
- // suggested text. |index| is an index of the selected suggestion in the
- // list of suggestions provided by the client.
- virtual void didAcceptAutofillSuggestion(const WebNode&,
- const WebString& value,
- const WebString& label,
- int itemID,
- unsigned index) { }
-
- // Informs the browser that the user has selected an Autofill suggestion for
- // a WebNode. This happens when the user hovers over a suggestion or uses
- // the arrow keys to navigate to a suggestion.
- virtual void didSelectAutofillSuggestion(const WebNode&,
- const WebString& name,
- const WebString& label,
- int itemID) { }
-
- // Informs the browser that the user has cleared the selection from the
- // Autofill suggestions popup. This happens when a user uses the arrow
- // keys to navigate outside the range of possible selections.
- virtual void didClearAutofillSelection(const WebNode&) { }
-
// Informs the browser an interactive autocomplete has been requested.
- virtual void didRequestAutocomplete(WebFrame*, const WebFormElement&) { }
-
- // Instructs the browser to remove the Autocomplete entry specified from
- // its DB.
- virtual void removeAutocompleteSuggestion(const WebString& name,
- const WebString& value) { }
+ virtual void didRequestAutocomplete(const WebFormElement&) { }
// These methods are called when the users edits a text-field.
virtual void textFieldDidEndEditing(const WebInputElement&) { }
- virtual void textFieldDidChange(const WebInputElement&) { }
+ virtual void textFieldDidChange(const WebFormControlElement&) { }
virtual void textFieldDidReceiveKeyDown(const WebInputElement&, const WebKeyboardEvent&) { }
// This is called when a datalist indicator is clicked.
virtual void openTextDataListChooser(const WebInputElement&) { }
+ // Called the first time the user interacts with the page after a load.
+ virtual void firstUserGestureObserved() { }
// Informs the client whether or not any subsequent text changes should be ignored.
virtual void setIgnoreTextChanges(bool ignore) { }