diff options
author | jhawkins@chromium.org <jhawkins@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-02-10 03:06:54 +0000 |
---|---|---|
committer | jhawkins@chromium.org <jhawkins@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-02-10 03:06:54 +0000 |
commit | fb856c7c3b8ed71b0d15cbe08ef4ca35eb79abd3 (patch) | |
tree | 37bdfc77e78080fe596f556a5761f6d16188eb5d /webkit/glue/form_field.h | |
parent | 3242bbfed6822cc22d8154a80c34c3127e692032 (diff) | |
download | chromium_src-fb856c7c3b8ed71b0d15cbe08ef4ca35eb79abd3.zip chromium_src-fb856c7c3b8ed71b0d15cbe08ef4ca35eb79abd3.tar.gz chromium_src-fb856c7c3b8ed71b0d15cbe08ef4ca35eb79abd3.tar.bz2 |
Move conditions of FormFields creation to FormFieldHistoryManager; AutoFill does not have the same conditions. This required manipulating the FormField data structure to add necessary field data.
BUG=none
TEST=none
Review URL: http://codereview.chromium.org/602008
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@38570 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/glue/form_field.h')
-rw-r--r-- | webkit/glue/form_field.h | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/webkit/glue/form_field.h b/webkit/glue/form_field.h index 9711c38..dfaf9ce 100644 --- a/webkit/glue/form_field.h +++ b/webkit/glue/form_field.h @@ -6,6 +6,7 @@ #define WEBKIT_GLUE_FORM_FIELD_H_ #include "base/string16.h" +#include "third_party/WebKit/WebKit/chromium/public/WebInputElement.h" namespace webkit_glue { @@ -13,23 +14,27 @@ namespace webkit_glue { class FormField { public: FormField(); + explicit FormField(const WebKit::WebInputElement& input_element); FormField(const string16& label, const string16& name, - const string16& html_input_type, - const string16& value); + const string16& value, + const string16& form_control_type, + WebKit::WebInputElement::InputType input_type); string16 label() const { return label_; } string16 name() const { return name_; } - string16 html_input_type() const { return html_input_type_; } string16 value() const { return value_; } + string16 form_control_type() const { return form_control_type_; } + WebKit::WebInputElement::InputType input_type() const { return input_type_; } void set_value(const string16& value) { value_ = value; } private: string16 label_; string16 name_; - string16 html_input_type_; string16 value_; + string16 form_control_type_; + WebKit::WebInputElement::InputType input_type_; }; } // namespace webkit_glue |