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

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

Issue 11415221: Add support for autofilling radio buttons and checkboxes. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Fixed review comments Created 8 years 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
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_AUTOFILL_FORM_CACHE_H_ 5 #ifndef CHROME_RENDERER_AUTOFILL_FORM_CACHE_H_
6 #define CHROME_RENDERER_AUTOFILL_FORM_CACHE_H_ 6 #define CHROME_RENDERER_AUTOFILL_FORM_CACHE_H_
7 7
8 #include <map> 8 #include <map>
9 #include <set> 9 #include <set>
10 #include <vector> 10 #include <vector>
11 11
12 #include "base/string16.h" 12 #include "base/string16.h"
13 13
14 struct FormData; 14 struct FormData;
15 struct FormDataPredictions; 15 struct FormDataPredictions;
16 16
17 namespace WebKit { 17 namespace WebKit {
18 class WebDocument; 18 class WebDocument;
19 class WebFrame; 19 class WebFrame;
20 class WebInputElement; 20 class WebInputElement;
21 class WebSelectElement; 21 class WebSelectElement;
22 class WebFormControlElement;
Ilya Sherman 2012/12/11 05:56:19 nit: This forward declaration doesn't seem to be n
Raman Kakilate 2012/12/11 17:45:45 Done.
22 } 23 }
23 24
24 namespace autofill { 25 namespace autofill {
25 26
26 // Manages the forms in a RenderView. 27 // Manages the forms in a RenderView.
27 class FormCache { 28 class FormCache {
28 public: 29 public:
29 FormCache(); 30 FormCache();
30 ~FormCache(); 31 ~FormCache();
31 32
(...skipping 15 matching lines...) Expand all
47 // and the experiment id for the server predictions. 48 // and the experiment id for the server predictions.
48 bool ShowPredictions(const FormDataPredictions& form); 49 bool ShowPredictions(const FormDataPredictions& form);
49 50
50 private: 51 private:
51 // The cached web frames. 52 // The cached web frames.
52 std::set<WebKit::WebDocument> web_documents_; 53 std::set<WebKit::WebDocument> web_documents_;
53 54
54 // The cached initial values for <select> elements. 55 // The cached initial values for <select> elements.
55 std::map<const WebKit::WebSelectElement, string16> initial_select_values_; 56 std::map<const WebKit::WebSelectElement, string16> initial_select_values_;
56 57
58 // The cached initial values for checkable <input> elements.
59 std::map<const WebKit::WebInputElement, bool> initial_checked_state_;
60
57 DISALLOW_COPY_AND_ASSIGN(FormCache); 61 DISALLOW_COPY_AND_ASSIGN(FormCache);
58 }; 62 };
59 63
60 } // namespace autofill 64 } // namespace autofill
61 65
62 #endif // CHROME_RENDERER_AUTOFILL_FORM_CACHE_H_ 66 #endif // CHROME_RENDERER_AUTOFILL_FORM_CACHE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698