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_OPTIONS_BROWSER_OPTIONS_HANDLER_H_ | 5 #ifndef CHROME_BROWSER_UI_WEBUI_OPTIONS_BROWSER_OPTIONS_HANDLER_H_ |
6 #define CHROME_BROWSER_UI_WEBUI_OPTIONS_BROWSER_OPTIONS_HANDLER_H_ | 6 #define CHROME_BROWSER_UI_WEBUI_OPTIONS_BROWSER_OPTIONS_HANDLER_H_ |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 233 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
244 // Setup the enabled or disabled state of the cloud print connector | 244 // Setup the enabled or disabled state of the cloud print connector |
245 // management UI. | 245 // management UI. |
246 void SetupCloudPrintConnectorSection(); | 246 void SetupCloudPrintConnectorSection(); |
247 | 247 |
248 // Remove cloud print connector section if cloud print connector management | 248 // Remove cloud print connector section if cloud print connector management |
249 // UI is disabled. | 249 // UI is disabled. |
250 void RemoveCloudPrintConnectorSection(); | 250 void RemoveCloudPrintConnectorSection(); |
251 #endif // defined(OS_CHROMEOS) | 251 #endif // defined(OS_CHROMEOS) |
252 #endif // defined(ENABLE_FULL_PRINTING) | 252 #endif // defined(ENABLE_FULL_PRINTING) |
253 | 253 |
| 254 // Check if hotword is available. If it is, tell the javascript to show |
| 255 // the hotword section of the settings page. |
| 256 void SendHotwordAvailable(); |
| 257 |
| 258 // Callback for "requestHotwordAvailable" message. |
| 259 void HandleRequestHotwordAvailable(const base::ListValue* args); |
| 260 |
254 #if defined(OS_CHROMEOS) | 261 #if defined(OS_CHROMEOS) |
255 // Opens the wallpaper manager component extension. | 262 // Opens the wallpaper manager component extension. |
256 void HandleOpenWallpaperManager(const base::ListValue* args); | 263 void HandleOpenWallpaperManager(const base::ListValue* args); |
257 | 264 |
258 // Called when the accessibility checkbox values are changed. | 265 // Called when the accessibility checkbox values are changed. |
259 // |args| will contain the checkbox checked state as a string | 266 // |args| will contain the checkbox checked state as a string |
260 // ("true" or "false"). | 267 // ("true" or "false"). |
261 void VirtualKeyboardChangeCallback(const base::ListValue* args); | 268 void VirtualKeyboardChangeCallback(const base::ListValue* args); |
262 | 269 |
263 // Called when the user confirmed factory reset. Chrome will | 270 // Called when the user confirmed factory reset. Chrome will |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
327 | 334 |
328 // Used to get WeakPtr to self for use on the UI thread. | 335 // Used to get WeakPtr to self for use on the UI thread. |
329 base::WeakPtrFactory<BrowserOptionsHandler> weak_ptr_factory_; | 336 base::WeakPtrFactory<BrowserOptionsHandler> weak_ptr_factory_; |
330 | 337 |
331 DISALLOW_COPY_AND_ASSIGN(BrowserOptionsHandler); | 338 DISALLOW_COPY_AND_ASSIGN(BrowserOptionsHandler); |
332 }; | 339 }; |
333 | 340 |
334 } // namespace options | 341 } // namespace options |
335 | 342 |
336 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_BROWSER_OPTIONS_HANDLER_H_ | 343 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_BROWSER_OPTIONS_HANDLER_H_ |
OLD | NEW |