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

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: fix the nit. 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>
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 // and the experiment id for the server predictions. 47 // and the experiment id for the server predictions.
48 bool ShowPredictions(const FormDataPredictions& form); 48 bool ShowPredictions(const FormDataPredictions& form);
49 49
50 private: 50 private:
51 // The cached web frames. 51 // The cached web frames.
52 std::set<WebKit::WebDocument> web_documents_; 52 std::set<WebKit::WebDocument> web_documents_;
53 53
54 // The cached initial values for <select> elements. 54 // The cached initial values for <select> elements.
55 std::map<const WebKit::WebSelectElement, string16> initial_select_values_; 55 std::map<const WebKit::WebSelectElement, string16> initial_select_values_;
56 56
57 // The cached initial values for checkable <input> elements.
58 std::map<const WebKit::WebInputElement, bool> initial_checked_state_;
59
57 DISALLOW_COPY_AND_ASSIGN(FormCache); 60 DISALLOW_COPY_AND_ASSIGN(FormCache);
58 }; 61 };
59 62
60 } // namespace autofill 63 } // namespace autofill
61 64
62 #endif // CHROME_RENDERER_AUTOFILL_FORM_CACHE_H_ 65 #endif // CHROME_RENDERER_AUTOFILL_FORM_CACHE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698