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

Side by Side Diff: chrome/browser/ui/webui/options2/core_options_handler2.h

Issue 9994005: Separate handler initialization from page initialization (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: dbeam review Created 8 years, 8 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_BROWSER_UI_WEBUI_OPTIONS2_CORE_OPTIONS_HANDLER2_H_ 5 #ifndef CHROME_BROWSER_UI_WEBUI_OPTIONS2_CORE_OPTIONS_HANDLER2_H_
6 #define CHROME_BROWSER_UI_WEBUI_OPTIONS2_CORE_OPTIONS_HANDLER2_H_ 6 #define CHROME_BROWSER_UI_WEBUI_OPTIONS2_CORE_OPTIONS_HANDLER2_H_
7 #pragma once 7 #pragma once
8 8
9 #include <map> 9 #include <map>
10 #include <string> 10 #include <string>
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 // Value::Type, since a TYPE_STRING can require custom processing. 91 // Value::Type, since a TYPE_STRING can require custom processing.
92 enum PrefType { 92 enum PrefType {
93 TYPE_BOOLEAN = 0, 93 TYPE_BOOLEAN = 0,
94 TYPE_INTEGER, 94 TYPE_INTEGER,
95 TYPE_DOUBLE, 95 TYPE_DOUBLE,
96 TYPE_STRING, 96 TYPE_STRING,
97 TYPE_URL, 97 TYPE_URL,
98 TYPE_LIST, 98 TYPE_LIST,
99 }; 99 };
100 100
101 // Callback for the "coreOptionsInitialize" message. This message will 101 // Callback for the "coreOptionsInitializePages" message. This calls the
102 // trigger the Initialize() method of all other handlers so that final 102 // InitializePage() method of all other handlers, to pass data back to the
103 // setup can be performed before the page is shown. 103 // JavaScript on the page so it can populate the UI.
104 void HandleInitialize(const ListValue* args); 104 void HandleInitializePages(const ListValue* args);
105 105
106 // Callback for the "fetchPrefs" message. This message accepts the list of 106 // Callback for the "fetchPrefs" message. This message accepts the list of
107 // preference names passed as the |args| parameter (ListValue). It passes 107 // preference names passed as the |args| parameter (ListValue). It passes
108 // results dictionary of preference values by calling prefsFetched() JS method 108 // results dictionary of preference values by calling prefsFetched() JS method
109 // on the page. 109 // on the page.
110 void HandleFetchPrefs(const ListValue* args); 110 void HandleFetchPrefs(const ListValue* args);
111 111
112 // Callback for the "observePrefs" message. This message initiates 112 // Callback for the "observePrefs" message. This message initiates
113 // notification observing for given array of preference names. 113 // notification observing for given array of preference names.
114 void HandleObservePrefs(const ListValue* args); 114 void HandleObservePrefs(const ListValue* args);
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
146 // Used for asynchronously updating the preference stating whether clearing 146 // Used for asynchronously updating the preference stating whether clearing
147 // LSO data is supported. 147 // LSO data is supported.
148 PluginDataRemoverHelper clear_plugin_lso_data_enabled_; 148 PluginDataRemoverHelper clear_plugin_lso_data_enabled_;
149 149
150 DISALLOW_COPY_AND_ASSIGN(CoreOptionsHandler); 150 DISALLOW_COPY_AND_ASSIGN(CoreOptionsHandler);
151 }; 151 };
152 152
153 } // namespace options2 153 } // namespace options2
154 154
155 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS2_CORE_OPTIONS_HANDLER2_H_ 155 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS2_CORE_OPTIONS_HANDLER2_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698