summaryrefslogtreecommitdiffstats
path: root/webkit/glue/form_field.cc
diff options
context:
space:
mode:
authorjhawkins@chromium.org <jhawkins@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-10-23 18:31:32 +0000
committerjhawkins@chromium.org <jhawkins@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-10-23 18:31:32 +0000
commit4c79e3e70d798f8b7d44db141500f42592470790 (patch)
tree51959a6e9f22bd43071c4819ba2f013eb17db9ef /webkit/glue/form_field.cc
parent98d7127b558c6de8121ed9ff8c299b30afb6143b (diff)
downloadchromium_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.cc')
-rw-r--r--webkit/glue/form_field.cc21
1 files changed, 21 insertions, 0 deletions
diff --git a/webkit/glue/form_field.cc b/webkit/glue/form_field.cc
new file mode 100644
index 0000000..76992f5
--- /dev/null
+++ b/webkit/glue/form_field.cc
@@ -0,0 +1,21 @@
+// 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.
+
+#include "webkit/glue/form_field.h"
+
+namespace webkit_glue {
+
+FormField::FormField()
+ : element_(NULL) {
+}
+
+FormField::FormField(WebCore::HTMLFormControlElement* element,
+ const string16& name,
+ const string16& value)
+ : element_(element),
+ name_(name),
+ value_(value) {
+}
+
+} // namespace webkit_glue