| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 "base/string16.h" | 8 #include "base/string16.h" |
| 9 | 9 |
| 10 namespace webkit_glue { | 10 namespace webkit_glue { |
| 11 | 11 |
| 12 // Stores information about a field in a form. | 12 // Stores information about a field in a form. |
| 13 class FormField { | 13 class FormField { |
| 14 public: | 14 public: |
| 15 FormField(); | 15 FormField(); |
| 16 FormField(const string16& name, | 16 FormField(const string16& name, |
| 17 const string16& html_input_type, |
| 17 const string16& value); | 18 const string16& value); |
| 18 | 19 |
| 19 string16 name() const { return name_; } | 20 string16 name() const { return name_; } |
| 21 string16 html_input_type() const { return html_input_type_; } |
| 20 string16 value() const { return value_; } | 22 string16 value() const { return value_; } |
| 21 | 23 |
| 22 void set_value(const string16& value) { value_ = value; } | 24 void set_value(const string16& value) { value_ = value; } |
| 23 | 25 |
| 24 private: | 26 private: |
| 25 string16 name_; | 27 string16 name_; |
| 28 string16 html_input_type_; |
| 26 string16 value_; | 29 string16 value_; |
| 27 }; | 30 }; |
| 28 | 31 |
| 29 } // namespace webkit_glue | 32 } // namespace webkit_glue |
| 30 | 33 |
| 31 #endif // WEBKIT_GLUE_FORM_FIELD_H_ | 34 #endif // WEBKIT_GLUE_FORM_FIELD_H_ |
| OLD | NEW |