Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 Loading... | |
| 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 // TODO document |
|
Dan Beam
2012/04/10 04:38:43
do it
Tyler Breisacher (Chromium)
2012/04/10 17:43:28
Did it.
| |
| 102 // trigger the Initialize() method of all other handlers so that final | 102 void HandleInitializeHandlers(const ListValue* args); |
| 103 // setup can be performed before the page is shown. | 103 |
| 104 void HandleInitialize(const ListValue* args); | 104 // Callback for the "coreOptionsInitializePages" message. This calls the |
| 105 // InitializePage() method of all other handlers, to pass data back to the | |
| 106 // JavaScript on the page so it can populate the UI. | |
| 107 void HandleInitializePages(const ListValue* args); | |
| 105 | 108 |
| 106 // Callback for the "fetchPrefs" message. This message accepts the list of | 109 // Callback for the "fetchPrefs" message. This message accepts the list of |
| 107 // preference names passed as the |args| parameter (ListValue). It passes | 110 // preference names passed as the |args| parameter (ListValue). It passes |
| 108 // results dictionary of preference values by calling prefsFetched() JS method | 111 // results dictionary of preference values by calling prefsFetched() JS method |
| 109 // on the page. | 112 // on the page. |
| 110 void HandleFetchPrefs(const ListValue* args); | 113 void HandleFetchPrefs(const ListValue* args); |
| 111 | 114 |
| 112 // Callback for the "observePrefs" message. This message initiates | 115 // Callback for the "observePrefs" message. This message initiates |
| 113 // notification observing for given array of preference names. | 116 // notification observing for given array of preference names. |
| 114 void HandleObservePrefs(const ListValue* args); | 117 void HandleObservePrefs(const ListValue* args); |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 146 // Used for asynchronously updating the preference stating whether clearing | 149 // Used for asynchronously updating the preference stating whether clearing |
| 147 // LSO data is supported. | 150 // LSO data is supported. |
| 148 PluginDataRemoverHelper clear_plugin_lso_data_enabled_; | 151 PluginDataRemoverHelper clear_plugin_lso_data_enabled_; |
| 149 | 152 |
| 150 DISALLOW_COPY_AND_ASSIGN(CoreOptionsHandler); | 153 DISALLOW_COPY_AND_ASSIGN(CoreOptionsHandler); |
| 151 }; | 154 }; |
| 152 | 155 |
| 153 } // namespace options2 | 156 } // namespace options2 |
| 154 | 157 |
| 155 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS2_CORE_OPTIONS_HANDLER2_H_ | 158 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS2_CORE_OPTIONS_HANDLER2_H_ |
| OLD | NEW |