Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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_GLUE_FORM_FIELD_H_ | 5 #ifndef WEBKIT_GLUE_FORM_FIELD_H_ |
| 6 #define WEBKIT_GLUE_FORM_FIELD_H_ | 6 #define WEBKIT_GLUE_FORM_FIELD_H_ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/string16.h" | 10 #include "base/string16.h" |
| (...skipping 24 matching lines...) Expand all Loading... | |
| 35 // TODO(dhollowa): This will be removed when we implement field ids. | 35 // TODO(dhollowa): This will be removed when we implement field ids. |
| 36 bool StrictlyEqualsHack(const FormField& field) const; | 36 bool StrictlyEqualsHack(const FormField& field) const; |
| 37 | 37 |
| 38 string16 label; | 38 string16 label; |
| 39 string16 name; | 39 string16 name; |
| 40 string16 value; | 40 string16 value; |
| 41 string16 form_control_type; | 41 string16 form_control_type; |
| 42 int max_length; | 42 int max_length; |
| 43 bool is_autofilled; | 43 bool is_autofilled; |
| 44 std::vector<string16> option_strings; | 44 std::vector<string16> option_strings; |
| 45 bool is_text_input; | |
|
dhollowa
2011/05/17 16:47:20
This is a derived field, we shouldn't be storing t
| |
| 45 }; | 46 }; |
| 46 | 47 |
| 47 // So we can compare FormFields with EXPECT_EQ(). | 48 // So we can compare FormFields with EXPECT_EQ(). |
| 48 std::ostream& operator<<(std::ostream& os, const FormField& field); | 49 std::ostream& operator<<(std::ostream& os, const FormField& field); |
| 49 | 50 |
| 50 } // namespace webkit_glue | 51 } // namespace webkit_glue |
| 51 | 52 |
| 52 #endif // WEBKIT_GLUE_FORM_FIELD_H_ | 53 #endif // WEBKIT_GLUE_FORM_FIELD_H_ |
| OLD | NEW |