From 4c79e3e70d798f8b7d44db141500f42592470790 Mon Sep 17 00:00:00 2001 From: "jhawkins@chromium.org" Date: Fri, 23 Oct 2009 18:31:32 +0000 Subject: 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 --- webkit/glue/form_field.h | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 webkit/glue/form_field.h (limited to 'webkit/glue/form_field.h') 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_ -- cgit v1.1