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

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: address comments 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/browser/autofill/autofill_field.h
diff --git a/chrome/browser/autofill/autofill_field.h b/chrome/browser/autofill/autofill_field.h
index 0b2109852f503d3b04931d57d556bf7077df5055..4091b66ed7f08b8a33422715e6123f9d20eb5cf5 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_;
+ // Used to park the default value returned by the Autofill server.
Evan Stade 2012/12/07 19:21:14 I don't understand this use of "park". How about j
Raman Kakilate 2012/12/10 18:36:45 Done.
+ 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/autofill_manager_unittest.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698