Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(388)

Side by Side Diff: webkit/glue/form_field.h

Issue 355003: Implement FormStructure and an initial method, EncodeUploadRequest. This als... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/common/render_messages.h ('k') | webkit/glue/form_field.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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_
OLDNEW
« no previous file with comments | « chrome/common/render_messages.h ('k') | webkit/glue/form_field.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698