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

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

Issue 2065303002: Modifying Autofill Agent to use synthetic form (i.e., formless elements) when no form is present on… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Adding browser test Created 4 years, 6 months 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
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 252 matching lines...) Expand 10 before | Expand all | Expand 10 after
263 263
264 // The element corresponding to the last request sent for form field Autofill. 264 // The element corresponding to the last request sent for form field Autofill.
265 blink::WebFormControlElement element_; 265 blink::WebFormControlElement element_;
266 266
267 // The form element currently requesting an interactive autocomplete. 267 // The form element currently requesting an interactive autocomplete.
268 blink::WebFormElement in_flight_request_form_; 268 blink::WebFormElement in_flight_request_form_;
269 269
270 // Last form which was interacted with by the user. 270 // Last form which was interacted with by the user.
271 blink::WebFormElement last_interacted_form_; 271 blink::WebFormElement last_interacted_form_;
272 272
273 // When dealing with forms that don't use a <form> tag, we keep track of the
274 // elements the user has modified so we can determine when submission occurs.
275 std::set<blink::WebFormControlElement> formless_elements_user_edited_;
276
273 // Was the query node autofilled prior to previewing the form? 277 // Was the query node autofilled prior to previewing the form?
274 bool was_query_node_autofilled_; 278 bool was_query_node_autofilled_;
275 279
276 // Whether or not to ignore text changes. Useful for when we're committing 280 // Whether or not to ignore text changes. Useful for when we're committing
277 // a composition when we are defocusing the WebView and we don't want to 281 // a composition when we are defocusing the WebView and we don't want to
278 // trigger an autofill popup to show. 282 // trigger an autofill popup to show.
279 bool ignore_text_changes_; 283 bool ignore_text_changes_;
280 284
281 // Whether the Autofill popup is possibly visible. This is tracked as a 285 // Whether the Autofill popup is possibly visible. This is tracked as a
282 // performance improvement, so that the IPC channel isn't flooded with 286 // performance improvement, so that the IPC channel isn't flooded with
(...skipping 11 matching lines...) Expand all
294 mojom::AutofillDriverPtr mojo_autofill_driver_; 298 mojom::AutofillDriverPtr mojo_autofill_driver_;
295 299
296 base::WeakPtrFactory<AutofillAgent> weak_ptr_factory_; 300 base::WeakPtrFactory<AutofillAgent> weak_ptr_factory_;
297 301
298 DISALLOW_COPY_AND_ASSIGN(AutofillAgent); 302 DISALLOW_COPY_AND_ASSIGN(AutofillAgent);
299 }; 303 };
300 304
301 } // namespace autofill 305 } // namespace autofill
302 306
303 #endif // COMPONENTS_AUTOFILL_CONTENT_RENDERER_AUTOFILL_AGENT_H_ 307 #endif // COMPONENTS_AUTOFILL_CONTENT_RENDERER_AUTOFILL_AGENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698