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

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

Issue 19535: Cleanup in webkit/glue/ (Closed)
Patch Set: Created 11 years, 10 months 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
« no previous file with comments | « no previous file | webkit/glue/back_forward_list_client_impl.h » ('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) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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_AUTOFILL_FORM_H_ 5 #ifndef WEBKIT_GLUE_AUTOFILL_FORM_H_
6 #define WEBKIT_GLUE_AUTOFILL_FORM_H_ 6 #define WEBKIT_GLUE_AUTOFILL_FORM_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
11 #include "base/time.h"
12 #include "webkit/glue/autofill_form.h"
13
14 namespace WebCore { 11 namespace WebCore {
15 class HTMLFormElement; 12 class HTMLFormElement;
16 } 13 }
17 14
18 // The AutofillForm struct represents a single HTML form together with the 15 // The AutofillForm struct represents a single HTML form together with the
19 // values entered in the fields. 16 // values entered in the fields.
20 17
21 class AutofillForm { 18 class AutofillForm {
22 public: 19 public:
23 // Struct for storing name/value pairs. 20 // Struct for storing name/value pairs.
24 struct Element { 21 struct Element {
25 Element() {} 22 Element() {}
26 Element(const std::wstring& in_name, const std::wstring& in_value) { 23 Element(const std::wstring& in_name, const std::wstring& in_value) {
27 name = in_name; 24 name = in_name;
28 value = in_value; 25 value = in_value;
29 } 26 }
30 std::wstring name; 27 std::wstring name;
31 std::wstring value; 28 std::wstring value;
32 }; 29 };
33 30
34 static AutofillForm* CreateAutofillForm(WebCore::HTMLFormElement* form); 31 static AutofillForm* CreateAutofillForm(WebCore::HTMLFormElement* form);
35 32
36 // A vector of all the input fields in the form. 33 // A vector of all the input fields in the form.
37 std::vector<Element> elements; 34 std::vector<Element> elements;
38 }; 35 };
39 36
40 #endif // WEBKIT_GLUE_AUTOFILL_FORM_H_ 37 #endif // WEBKIT_GLUE_AUTOFILL_FORM_H_
OLDNEW
« no previous file with comments | « no previous file | webkit/glue/back_forward_list_client_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698