Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(281)

Side by Side Diff: components/autofill/content/renderer/autofill_agent.h

Issue 1447283006: [Autofill] Clicking datalist chooser arrow now shows Autofill/Autocomplete (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Initial Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | components/autofill/content/renderer/autofill_agent.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « no previous file | components/autofill/content/renderer/autofill_agent.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698