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

Side by Side Diff: chrome/renderer/autofill/form_manager.h

Issue 6390006: Create autofill subdirectory in chrome/renderer (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Using order Created 9 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 | Annotate | Revision Log
OLDNEW
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 CHROME_RENDERER_FORM_MANAGER_H_ 5 #ifndef CHROME_RENDERER_AUTOFILL_FORM_MANAGER_H_
6 #define CHROME_RENDERER_FORM_MANAGER_H_ 6 #define CHROME_RENDERER_AUTOFILL_FORM_MANAGER_H_
7 #pragma once 7 #pragma once
8 8
9 #include <map> 9 #include <map>
10 #include <vector> 10 #include <vector>
11 11
12 #include "base/callback.h" 12 #include "base/callback.h"
13 #include "base/string16.h" 13 #include "base/string16.h"
14 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFormElement.h" 14 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFormElement.h"
15 15
16 namespace webkit_glue { 16 namespace webkit_glue {
17 struct FormData; 17 struct FormData;
18 class FormField; 18 class FormField;
19 } // namespace webkit_glue 19 } // namespace webkit_glue
20 20
21 namespace WebKit { 21 namespace WebKit {
22 class WebFormControlElement; 22 class WebFormControlElement;
23 class WebFrame; 23 class WebFrame;
24 } // namespace WebKit 24 } // namespace WebKit
25 25
26 namespace autofill {
27
26 // Manages the forms in a RenderView. 28 // Manages the forms in a RenderView.
27 class FormManager { 29 class FormManager {
28 public: 30 public:
29 // A bit field mask for form requirements. 31 // A bit field mask for form requirements.
30 enum RequirementsMask { 32 enum RequirementsMask {
31 REQUIRE_NONE = 0, // No requirements. 33 REQUIRE_NONE = 0, // No requirements.
32 REQUIRE_AUTOCOMPLETE = 1 << 0, // Require that autocomplete != off. 34 REQUIRE_AUTOCOMPLETE = 1 << 0, // Require that autocomplete != off.
33 REQUIRE_ENABLED = 1 << 1, // Require that disabled attribute is off. 35 REQUIRE_ENABLED = 1 << 1, // Require that disabled attribute is off.
34 REQUIRE_EMPTY = 1 << 2, // Require that the fields are empty. 36 REQUIRE_EMPTY = 1 << 2, // Require that the fields are empty.
35 }; 37 };
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after
175 void PreviewFormField(WebKit::WebFormControlElement* field, 177 void PreviewFormField(WebKit::WebFormControlElement* field,
176 const webkit_glue::FormField* data, 178 const webkit_glue::FormField* data,
177 bool is_initiating_node); 179 bool is_initiating_node);
178 180
179 // The cached FormElement objects. 181 // The cached FormElement objects.
180 FormElementList form_elements_; 182 FormElementList form_elements_;
181 183
182 DISALLOW_COPY_AND_ASSIGN(FormManager); 184 DISALLOW_COPY_AND_ASSIGN(FormManager);
183 }; 185 };
184 186
185 #endif // CHROME_RENDERER_FORM_MANAGER_H_ 187 } // namespace autofill
188
189 #endif // CHROME_RENDERER_AUTOFILL_FORM_MANAGER_H_
OLDNEW
« no previous file with comments | « chrome/renderer/autofill/form_autocomplete_browsertest.cc ('k') | chrome/renderer/autofill/form_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698