summaryrefslogtreecommitdiffstats
path: root/webkit/glue/form_field.h
diff options
context:
space:
mode:
authorjhawkins@chromium.org <jhawkins@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-03-15 23:51:24 +0000
committerjhawkins@chromium.org <jhawkins@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-03-15 23:51:24 +0000
commit45c6e53a2c50e19a3f79fcc6f05914793ed93de6 (patch)
treee4f0c22f63fe5197938dc868f00c7d6a8e2ea8a6 /webkit/glue/form_field.h
parentcffa2055808bf2149ce48118dcacde477b7ead60 (diff)
downloadchromium_src-45c6e53a2c50e19a3f79fcc6f05914793ed93de6.zip
chromium_src-45c6e53a2c50e19a3f79fcc6f05914793ed93de6.tar.gz
chromium_src-45c6e53a2c50e19a3f79fcc6f05914793ed93de6.tar.bz2
FormFieldValues -> FormData consolidation: Use webkit_glue::FormField to store field data in FormData instead of storing the field data separately in the struct.
BUG=33032 TEST=none Review URL: http://codereview.chromium.org/847002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@41658 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/glue/form_field.h')
-rw-r--r--webkit/glue/form_field.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/webkit/glue/form_field.h b/webkit/glue/form_field.h
index 88e3ed9..d6447fa 100644
--- a/webkit/glue/form_field.h
+++ b/webkit/glue/form_field.h
@@ -1,4 +1,4 @@
-// Copyright (c) 2009 The Chromium Authors. All rights reserved.
+// Copyright (c) 2010 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.
@@ -37,7 +37,8 @@ class FormField {
input_type_ = input_type;
}
- bool operator!=(const FormField& field);
+ bool operator==(const FormField& field) const;
+ bool operator!=(const FormField& field) const;
private:
string16 label_;
@@ -47,6 +48,9 @@ class FormField {
WebKit::WebInputElement::InputType input_type_;
};
+// So we can compare FormFields with EXPECT_EQ().
+std::ostream& operator<<(std::ostream& os, const FormField& profile);
+
} // namespace webkit_glue
#endif // WEBKIT_GLUE_FORM_FIELD_H_