| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef WEBKIT_FORMS_FORM_FIELD_H_ | 5 #ifndef WEBKIT_FORMS_FORM_FIELD_H_ |
| 6 #define WEBKIT_FORMS_FORM_FIELD_H_ | 6 #define WEBKIT_FORMS_FORM_FIELD_H_ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/string16.h" | 10 #include "base/string16.h" |
| 11 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFormControlElement
.h" | |
| 12 #include "webkit/forms/webkit_forms_export.h" | 11 #include "webkit/forms/webkit_forms_export.h" |
| 13 | 12 |
| 14 namespace webkit { | 13 namespace webkit { |
| 15 namespace forms { | 14 namespace forms { |
| 16 | 15 |
| 17 // Stores information about a field in a form. | 16 // Stores information about a field in a form. |
| 18 struct WEBKIT_FORMS_EXPORT FormField { | 17 struct WEBKIT_FORMS_EXPORT FormField { |
| 19 FormField(); | 18 FormField(); |
| 20 virtual ~FormField(); | 19 virtual ~FormField(); |
| 21 | 20 |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 58 EXPECT_EQ(expected.label, actual.label); \ | 57 EXPECT_EQ(expected.label, actual.label); \ |
| 59 EXPECT_EQ(expected.name, actual.name); \ | 58 EXPECT_EQ(expected.name, actual.name); \ |
| 60 EXPECT_EQ(expected.value, actual.value); \ | 59 EXPECT_EQ(expected.value, actual.value); \ |
| 61 EXPECT_EQ(expected.form_control_type, actual.form_control_type); \ | 60 EXPECT_EQ(expected.form_control_type, actual.form_control_type); \ |
| 62 EXPECT_EQ(expected.autocomplete_type, actual.autocomplete_type); \ | 61 EXPECT_EQ(expected.autocomplete_type, actual.autocomplete_type); \ |
| 63 EXPECT_EQ(expected.max_length, actual.max_length); \ | 62 EXPECT_EQ(expected.max_length, actual.max_length); \ |
| 64 EXPECT_EQ(expected.is_autofilled, actual.is_autofilled); \ | 63 EXPECT_EQ(expected.is_autofilled, actual.is_autofilled); \ |
| 65 } while (0) | 64 } while (0) |
| 66 | 65 |
| 67 #endif // WEBKIT_FORMS_FORM_FIELD_H_ | 66 #endif // WEBKIT_FORMS_FORM_FIELD_H_ |
| OLD | NEW |