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

Unified Diff: chrome/browser/autofill/autofill_field.h

Issue 11415221: Add support for autofilling radio buttons and checkboxes. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: fix the nit. 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
« no previous file with comments | « no previous file | chrome/browser/autofill/autofill_field.cc » ('j') | chrome/browser/autofill/form_structure.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/autofill/autofill_field.h
diff --git a/chrome/browser/autofill/autofill_field.h b/chrome/browser/autofill/autofill_field.h
index 0b2109852f503d3b04931d57d556bf7077df5055..e688fad0fffa346f2fa2d2e4e914335c1d99a318 100644
--- a/chrome/browser/autofill/autofill_field.h
+++ b/chrome/browser/autofill/autofill_field.h
@@ -56,6 +56,9 @@ class AutofillField : public FormFieldData {
// field).
bool IsFieldFillable() const;
+ void set_default_value(const std::string& value) { default_value_ = value; }
+ const std::string& default_value() const { return default_value_; }
+
private:
// The unique name of this field, generated by Autofill.
string16 unique_name_;
@@ -76,6 +79,9 @@ class AutofillField : public FormFieldData {
// Used to track whether this field is a phone prefix or suffix.
PhonePart phone_part_;
+ // The default value returned by the Autofill server.
+ std::string default_value_;
+
DISALLOW_COPY_AND_ASSIGN(AutofillField);
};
« no previous file with comments | « no previous file | chrome/browser/autofill/autofill_field.cc » ('j') | chrome/browser/autofill/form_structure.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698