diff options
author | isherman@chromium.org <isherman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-11-20 00:18:35 +0000 |
---|---|---|
committer | isherman@chromium.org <isherman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-11-20 00:18:35 +0000 |
commit | ed5d53af280ce9b7a1412a38d0b2f96e8433e4d2 (patch) | |
tree | 9cb263f209cdb6ce77e97eed3f2ea1460b9d40e5 /webkit/glue/form_field.h | |
parent | 1ed23e569ff71b26d70b5f02a59fa3a621b3620b (diff) | |
download | chromium_src-ed5d53af280ce9b7a1412a38d0b2f96e8433e4d2.zip chromium_src-ed5d53af280ce9b7a1412a38d0b2f96e8433e4d2.tar.gz chromium_src-ed5d53af280ce9b7a1412a38d0b2f96e8433e4d2.tar.bz2 |
Autofill: Prefer maxLength to size attribute for form filling heuristics.
BUG=63440
TEST=browser_tests --gtest_filter=FormManagerTest.*
Review URL: http://codereview.chromium.org/5137004
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@66850 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/glue/form_field.h')
-rw-r--r-- | webkit/glue/form_field.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/webkit/glue/form_field.h b/webkit/glue/form_field.h index 1ed8d68..0a22ea6 100644 --- a/webkit/glue/form_field.h +++ b/webkit/glue/form_field.h @@ -21,14 +21,14 @@ class FormField { const string16& name, const string16& value, const string16& form_control_type, - int size); + int max_length); virtual ~FormField(); const string16& label() const { return label_; } const string16& name() const { return name_; } const string16& value() const { return value_; } const string16& form_control_type() const { return form_control_type_; } - int size() const { return size_; } + int max_length() const { return max_length_; } // 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 { @@ -41,7 +41,7 @@ class FormField { void set_form_control_type(const string16& form_control_type) { form_control_type_ = form_control_type; } - void set_size(int size) { size_ = size; } + void set_max_length(int max_length) { max_length_ = max_length; } void set_option_strings(const std::vector<string16>& strings) { option_strings_ = strings; } @@ -62,7 +62,7 @@ class FormField { string16 name_; string16 value_; string16 form_control_type_; - int size_; + int max_length_; std::vector<string16> option_strings_; }; |