diff options
author | jhawkins@chromium.org <jhawkins@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-07-21 19:53:23 +0000 |
---|---|---|
committer | jhawkins@chromium.org <jhawkins@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-07-21 19:53:23 +0000 |
commit | 41e342f3745b27ba8eeaa87187e3465de484c2a4 (patch) | |
tree | 450e86b869f04fe823e0a28465d7899ce0b9f590 /webkit/glue/form_field.h | |
parent | e8cf47b31dde03bf5e14d10af9834eaf12cba3c5 (diff) | |
download | chromium_src-41e342f3745b27ba8eeaa87187e3465de484c2a4.zip chromium_src-41e342f3745b27ba8eeaa87187e3465de484c2a4.tar.gz chromium_src-41e342f3745b27ba8eeaa87187e3465de484c2a4.tar.bz2 |
Fix for: State in small letters should be auto-filled from the profile.
BUG=38222
TEST=in the bug
Patch by George Yakovleg <georgey@chromium.org>
Review URL: http://codereview.chromium.org/2832064
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@53234 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/glue/form_field.h')
-rw-r--r-- | webkit/glue/form_field.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/webkit/glue/form_field.h b/webkit/glue/form_field.h index 691d2af9..2a1ffcf 100644 --- a/webkit/glue/form_field.h +++ b/webkit/glue/form_field.h @@ -5,6 +5,8 @@ #ifndef WEBKIT_GLUE_FORM_FIELD_H_ #define WEBKIT_GLUE_FORM_FIELD_H_ +#include <vector> + #include "base/string16.h" #include "third_party/WebKit/WebKit/chromium/public/WebFormControlElement.h" @@ -26,6 +28,11 @@ class FormField { const string16& value() const { return value_; } const string16& form_control_type() const { return form_control_type_; } int size() const { return size_; } + // 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 { + return option_strings_; + } void set_label(const string16& label) { label_ = label; } void set_name(const string16& name) { name_ = name; } @@ -34,6 +41,9 @@ class FormField { form_control_type_ = form_control_type; } void set_size(int size) { size_ = size; } + void set_option_strings(const std::vector<string16>& strings) { + option_strings_ = strings; + } // Equality tests for identity which does not include |value_| or |size_|. // Use |StrictlyEqualsHack| method to test all members. @@ -52,6 +62,7 @@ class FormField { string16 value_; string16 form_control_type_; int size_; + std::vector<string16> option_strings_; }; // So we can compare FormFields with EXPECT_EQ(). |