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

Unified Diff: chrome/common/form_field_data.cc

Issue 11415221: Add support for autofilling radio buttons and checkboxes. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Fix browser tests (added more data in .out files, skip checkable elements when trying to parse with… Created 8 years 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 side-by-side diff with in-line comments
Download patch
Index: chrome/common/form_field_data.cc
diff --git a/chrome/common/form_field_data.cc b/chrome/common/form_field_data.cc
index 8ff3ce144e9f7422b86a9630439a89c0675c9e38..0a2205a9b92bdc6ef28c15242c6b7a6edd36deab 100644
--- a/chrome/common/form_field_data.cc
+++ b/chrome/common/form_field_data.cc
@@ -10,6 +10,8 @@
FormFieldData::FormFieldData()
: max_length(0),
is_autofilled(false),
+ is_checked(false),
+ is_checkable(false),
is_focusable(false),
should_autocomplete(false) {
}
@@ -54,6 +56,10 @@ std::ostream& operator<<(std::ostream& os, const FormFieldData& field) {
<< " "
<< (field.is_autofilled ? "true" : "false")
<< " "
+ << (field.is_checked ? "true" : "false")
+ << " "
+ << (field.is_checkable ? "true" : "false")
+ << " "
<< (field.is_focusable ? "true" : "false")
<< " "
<< (field.should_autocomplete ? "true" : "false");

Powered by Google App Engine
This is Rietveld 408576698