OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 COMPONENTS_AUTOFILL_CONTENT_RENDERER_AUTOFILL_AGENT_H_ | 5 #ifndef COMPONENTS_AUTOFILL_CONTENT_RENDERER_AUTOFILL_AGENT_H_ |
6 #define COMPONENTS_AUTOFILL_CONTENT_RENDERER_AUTOFILL_AGENT_H_ | 6 #define COMPONENTS_AUTOFILL_CONTENT_RENDERER_AUTOFILL_AGENT_H_ |
7 | 7 |
8 #include <set> | 8 #include <set> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
177 void TextFieldDidChangeImpl(const blink::WebFormControlElement& element); | 177 void TextFieldDidChangeImpl(const blink::WebFormControlElement& element); |
178 | 178 |
179 // Shows the autofill suggestions for |element|. This call is asynchronous | 179 // Shows the autofill suggestions for |element|. This call is asynchronous |
180 // and may or may not lead to the showing of a suggestion popup (no popup is | 180 // and may or may not lead to the showing of a suggestion popup (no popup is |
181 // shown if there are no available suggestions). | 181 // shown if there are no available suggestions). |
182 void ShowSuggestions(const blink::WebFormControlElement& element, | 182 void ShowSuggestions(const blink::WebFormControlElement& element, |
183 const ShowSuggestionsOptions& options); | 183 const ShowSuggestionsOptions& options); |
184 | 184 |
185 // Queries the browser for Autocomplete and Autofill suggestions for the given | 185 // Queries the browser for Autocomplete and Autofill suggestions for the given |
186 // |element|. | 186 // |element|. |
187 void QueryAutofillSuggestions(const blink::WebFormControlElement& element, | 187 void QueryAutofillSuggestions(const blink::WebFormControlElement& element); |
188 bool datalist_only); | |
189 | 188 |
190 // Sets the element value to reflect the selected |suggested_value|. | 189 // Sets the element value to reflect the selected |suggested_value|. |
191 void AcceptDataListSuggestion(const base::string16& suggested_value); | 190 void AcceptDataListSuggestion(const base::string16& suggested_value); |
192 | 191 |
193 // Fills |form| and |field| with the FormData and FormField corresponding to | 192 // Fills |form| and |field| with the FormData and FormField corresponding to |
194 // |node|. Returns true if the data was found; and false otherwise. | 193 // |node|. Returns true if the data was found; and false otherwise. |
195 bool FindFormAndFieldForNode( | 194 bool FindFormAndFieldForNode( |
196 const blink::WebNode& node, | 195 const blink::WebNode& node, |
197 FormData* form, | 196 FormData* form, |
198 FormFieldData* field) WARN_UNUSED_RESULT; | 197 FormFieldData* field) WARN_UNUSED_RESULT; |
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
276 bool is_generation_popup_possibly_visible_; | 275 bool is_generation_popup_possibly_visible_; |
277 | 276 |
278 base::WeakPtrFactory<AutofillAgent> weak_ptr_factory_; | 277 base::WeakPtrFactory<AutofillAgent> weak_ptr_factory_; |
279 | 278 |
280 DISALLOW_COPY_AND_ASSIGN(AutofillAgent); | 279 DISALLOW_COPY_AND_ASSIGN(AutofillAgent); |
281 }; | 280 }; |
282 | 281 |
283 } // namespace autofill | 282 } // namespace autofill |
284 | 283 |
285 #endif // COMPONENTS_AUTOFILL_CONTENT_RENDERER_AUTOFILL_AGENT_H_ | 284 #endif // COMPONENTS_AUTOFILL_CONTENT_RENDERER_AUTOFILL_AGENT_H_ |
OLD | NEW |