diff options
author | jhawkins@chromium.org <jhawkins@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-10-23 18:31:32 +0000 |
---|---|---|
committer | jhawkins@chromium.org <jhawkins@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-10-23 18:31:32 +0000 |
commit | 4c79e3e70d798f8b7d44db141500f42592470790 (patch) | |
tree | 51959a6e9f22bd43071c4819ba2f013eb17db9ef /webkit/glue/form_field.h | |
parent | 98d7127b558c6de8121ed9ff8c299b30afb6143b (diff) | |
download | chromium_src-4c79e3e70d798f8b7d44db141500f42592470790.zip chromium_src-4c79e3e70d798f8b7d44db141500f42592470790.tar.gz chromium_src-4c79e3e70d798f8b7d44db141500f42592470790.tar.bz2 |
Break out FormFieldValues::Element into FormField, which will eventually hold more autofill data about each form field.
BUG=none
TEST=none
Review URL: http://codereview.chromium.org/306061
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@29913 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/glue/form_field.h')
-rw-r--r-- | webkit/glue/form_field.h | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/webkit/glue/form_field.h b/webkit/glue/form_field.h new file mode 100644 index 0000000..3871881 --- /dev/null +++ b/webkit/glue/form_field.h @@ -0,0 +1,41 @@ +// Copyright (c) 2009 The Chromium Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#ifndef WEBKIT_GLUE_FORM_FIELD_H_ +#define WEBKIT_GLUE_FORM_FIELD_H_ + +#include "base/string16.h" + +namespace WebCore { +class HTMLFormControlElement; +} + +namespace webkit_glue { + +// Stores information about a field in a form. +class FormField { + public: + FormField(); + FormField(WebCore::HTMLFormControlElement* element, + const string16& name, + const string16& value); + + WebCore::HTMLFormControlElement* element() const { return element_; } + string16 name() const { return name_; } + string16 value() const { return value_; } + + void set_element(WebCore::HTMLFormControlElement* element) { + element_ = element; + } + void set_value(const string16& value) { value_ = value; } + + private: + WebCore::HTMLFormControlElement* element_; + string16 name_; + string16 value_; +}; + +} // namespace webkit_glue + +#endif // WEBKIT_GLUE_FORM_FIELD_H_ |