diff options
author | isherman@chromium.org <isherman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-11-29 22:27:16 +0000 |
---|---|---|
committer | isherman@chromium.org <isherman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-11-29 22:27:16 +0000 |
commit | 3bb80e49ebd2f095b829e27135962a0aa4591e87 (patch) | |
tree | cce992fadfc3f39a776154372e0d8cf38bdd416e /webkit/glue/form_field.h | |
parent | c8965289996843e686084e86036db4cfe5b1713f (diff) | |
download | chromium_src-3bb80e49ebd2f095b829e27135962a0aa4591e87.zip chromium_src-3bb80e49ebd2f095b829e27135962a0aa4591e87.tar.gz chromium_src-3bb80e49ebd2f095b829e27135962a0aa4591e87.tar.bz2 |
Once a form has been partially autofilled, autofill should only update fields one at a time.
BUG=63437, 62638
TEST=unit_tests --gtest_filter=AutoFillManagerTest.*
Review URL: http://codereview.chromium.org/5334005
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@67599 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/glue/form_field.h')
-rw-r--r-- | webkit/glue/form_field.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/webkit/glue/form_field.h b/webkit/glue/form_field.h index 0a22ea6..23b7380 100644 --- a/webkit/glue/form_field.h +++ b/webkit/glue/form_field.h @@ -21,7 +21,8 @@ class FormField { const string16& name, const string16& value, const string16& form_control_type, - int max_length); + int max_length, + bool is_autofilled); virtual ~FormField(); const string16& label() const { return label_; } @@ -29,6 +30,8 @@ class FormField { const string16& value() const { return value_; } const string16& form_control_type() const { return form_control_type_; } int max_length() const { return max_length_; } + bool is_autofilled() const { return is_autofilled_; } + // Returns option string for elements for which they make sense (select-one, // for example) for the rest of elements return an empty array. const std::vector<string16>& option_strings() const { @@ -42,6 +45,7 @@ class FormField { form_control_type_ = form_control_type; } void set_max_length(int max_length) { max_length_ = max_length; } + void set_autofilled(bool is_autofilled) { is_autofilled_ = is_autofilled; } void set_option_strings(const std::vector<string16>& strings) { option_strings_ = strings; } @@ -63,6 +67,7 @@ class FormField { string16 value_; string16 form_control_type_; int max_length_; + bool is_autofilled_; std::vector<string16> option_strings_; }; |