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 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
104 | 104 |
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 // Called when interactive autocomplete finishes. |
115 void OnRequestAutocompleteSuccess(const FormData& form_data); | 115 void OnRequestAutocompleteResult( |
116 void OnRequestAutocompleteError(); | 116 WebKit::WebFormElement::AutocompleteResult result, |
| 117 const FormData& form_data); |
117 | 118 |
118 // Called when an autocomplete request succeeds or fails with the |result|. | 119 // Called when an autocomplete request succeeds or fails with the |result|. |
119 void FinishAutocompleteRequest( | 120 void FinishAutocompleteRequest( |
120 WebKit::WebFormElement::AutocompleteResult result); | 121 WebKit::WebFormElement::AutocompleteResult result); |
121 | 122 |
122 // Called in a posted task by textFieldDidChange() to work-around a WebKit bug | 123 // Called in a posted task by textFieldDidChange() to work-around a WebKit bug |
123 // http://bugs.webkit.org/show_bug.cgi?id=16976 | 124 // http://bugs.webkit.org/show_bug.cgi?id=16976 |
124 void TextFieldDidChangeImpl(const WebKit::WebInputElement& element); | 125 void TextFieldDidChangeImpl(const WebKit::WebInputElement& element); |
125 | 126 |
126 // Shows the autofill suggestions for |element|. | 127 // Shows the autofill suggestions for |element|. |
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
219 FRIEND_TEST_ALL_PREFIXES(PasswordAutofillManagerTest, WaitUsername); | 220 FRIEND_TEST_ALL_PREFIXES(PasswordAutofillManagerTest, WaitUsername); |
220 FRIEND_TEST_ALL_PREFIXES(PasswordAutofillManagerTest, SuggestionAccept); | 221 FRIEND_TEST_ALL_PREFIXES(PasswordAutofillManagerTest, SuggestionAccept); |
221 FRIEND_TEST_ALL_PREFIXES(PasswordAutofillManagerTest, SuggestionSelect); | 222 FRIEND_TEST_ALL_PREFIXES(PasswordAutofillManagerTest, SuggestionSelect); |
222 | 223 |
223 DISALLOW_COPY_AND_ASSIGN(AutofillAgent); | 224 DISALLOW_COPY_AND_ASSIGN(AutofillAgent); |
224 }; | 225 }; |
225 | 226 |
226 } // namespace autofill | 227 } // namespace autofill |
227 | 228 |
228 #endif // CHROME_RENDERER_AUTOFILL_AUTOFILL_AGENT_H_ | 229 #endif // CHROME_RENDERER_AUTOFILL_AUTOFILL_AGENT_H_ |
OLD | NEW |