OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CHROME_RENDERER_AUTOFILL_AUTOFILL_AGENT_H_ | 5 #ifndef CHROME_RENDERER_AUTOFILL_AUTOFILL_AGENT_H_ |
6 #define CHROME_RENDERER_AUTOFILL_AUTOFILL_AGENT_H_ | 6 #define CHROME_RENDERER_AUTOFILL_AUTOFILL_AGENT_H_ |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
105 // For external Autofill selection. | 105 // For external Autofill selection. |
106 void OnSetAutofillActionFill(); | 106 void OnSetAutofillActionFill(); |
107 void OnClearForm(); | 107 void OnClearForm(); |
108 void OnSetAutofillActionPreview(); | 108 void OnSetAutofillActionPreview(); |
109 void OnClearPreviewedForm(); | 109 void OnClearPreviewedForm(); |
110 void OnSetNodeText(const string16& value); | 110 void OnSetNodeText(const string16& value); |
111 void OnAcceptDataListSuggestion(const string16& value); | 111 void OnAcceptDataListSuggestion(const string16& value); |
112 void OnAcceptPasswordAutofillSuggestion(const string16& value); | 112 void OnAcceptPasswordAutofillSuggestion(const string16& value); |
113 | 113 |
114 // For interactive autocomplete. | 114 // For interactive autocomplete. |
115 void OnRequestAutocompleteFinished( | 115 void OnRequestAutocompleteSuccess(const FormData& form_data); |
116 WebKit::WebFormElement::AutocompleteResult result); | 116 void OnRequestAutocompleteError(); |
117 | 117 |
118 // Called in a posted task by textFieldDidChange() to work-around a WebKit bug | 118 // Called in a posted task by textFieldDidChange() to work-around a WebKit bug |
119 // http://bugs.webkit.org/show_bug.cgi?id=16976 | 119 // http://bugs.webkit.org/show_bug.cgi?id=16976 |
120 void TextFieldDidChangeImpl(const WebKit::WebInputElement& element); | 120 void TextFieldDidChangeImpl(const WebKit::WebInputElement& element); |
121 | 121 |
122 // Shows the autofill suggestions for |element|. | 122 // Shows the autofill suggestions for |element|. |
123 // This call is asynchronous and may or may not lead to the showing of a | 123 // This call is asynchronous and may or may not lead to the showing of a |
124 // suggestion popup (no popup is shown if there are no available suggestions). | 124 // suggestion popup (no popup is shown if there are no available suggestions). |
125 // |autofill_on_empty_values| specifies whether suggestions should be shown | 125 // |autofill_on_empty_values| specifies whether suggestions should be shown |
126 // when |element| contains no text. | 126 // when |element| contains no text. |
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
215 FRIEND_TEST_ALL_PREFIXES(PasswordAutofillManagerTest, WaitUsername); | 215 FRIEND_TEST_ALL_PREFIXES(PasswordAutofillManagerTest, WaitUsername); |
216 FRIEND_TEST_ALL_PREFIXES(PasswordAutofillManagerTest, SuggestionAccept); | 216 FRIEND_TEST_ALL_PREFIXES(PasswordAutofillManagerTest, SuggestionAccept); |
217 FRIEND_TEST_ALL_PREFIXES(PasswordAutofillManagerTest, SuggestionSelect); | 217 FRIEND_TEST_ALL_PREFIXES(PasswordAutofillManagerTest, SuggestionSelect); |
218 | 218 |
219 DISALLOW_COPY_AND_ASSIGN(AutofillAgent); | 219 DISALLOW_COPY_AND_ASSIGN(AutofillAgent); |
220 }; | 220 }; |
221 | 221 |
222 } // namespace autofill | 222 } // namespace autofill |
223 | 223 |
224 #endif // CHROME_RENDERER_AUTOFILL_AUTOFILL_AGENT_H_ | 224 #endif // CHROME_RENDERER_AUTOFILL_AUTOFILL_AGENT_H_ |
OLD | NEW |