OLD | NEW |
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_BROWSER_UI_WEBUI_OPTIONS_CHROMEOS_SYSTEM_OPTIONS_HANDLER_H_ | 5 #ifndef CHROME_BROWSER_UI_WEBUI_OPTIONS_CHROMEOS_SYSTEM_OPTIONS_HANDLER_H_ |
6 #define CHROME_BROWSER_UI_WEBUI_OPTIONS_CHROMEOS_SYSTEM_OPTIONS_HANDLER_H_ | 6 #define CHROME_BROWSER_UI_WEBUI_OPTIONS_CHROMEOS_SYSTEM_OPTIONS_HANDLER_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "chrome/browser/ui/webui/options/chromeos/cros_options_page_ui_handler.
h" | 9 #include "chrome/browser/ui/webui/options/chromeos/cros_options_page_ui_handler.
h" |
10 | 10 |
| 11 namespace base { |
11 class DictionaryValue; | 12 class DictionaryValue; |
| 13 } |
12 | 14 |
13 // ChromeOS system options page UI handler. | 15 // ChromeOS system options page UI handler. |
14 class SystemOptionsHandler : public chromeos::CrosOptionsPageUIHandler { | 16 class SystemOptionsHandler : public chromeos::CrosOptionsPageUIHandler { |
15 public: | 17 public: |
16 SystemOptionsHandler(); | 18 SystemOptionsHandler(); |
17 virtual ~SystemOptionsHandler(); | 19 virtual ~SystemOptionsHandler(); |
18 | 20 |
19 // OptionsPageUIHandler implementation. | 21 // OptionsPageUIHandler implementation. |
20 virtual void GetLocalizedValues(DictionaryValue* localized_strings); | 22 virtual void GetLocalizedValues(base::DictionaryValue* localized_strings); |
21 virtual void Initialize(); | 23 virtual void Initialize(); |
22 | 24 |
23 virtual void RegisterMessages(); | 25 virtual void RegisterMessages(); |
24 | 26 |
25 // Called when the accessibility checkbox value is changed. | 27 // Called when the accessibility checkbox value is changed. |
26 // |args| will contain the checkbox checked state as a string | 28 // |args| will contain the checkbox checked state as a string |
27 // ("true" or "false"). | 29 // ("true" or "false"). |
28 void AccessibilityChangeCallback(const ListValue* args); | 30 void AccessibilityChangeCallback(const base::ListValue* args); |
29 | 31 |
30 private: | 32 private: |
31 DISALLOW_COPY_AND_ASSIGN(SystemOptionsHandler); | 33 DISALLOW_COPY_AND_ASSIGN(SystemOptionsHandler); |
32 }; | 34 }; |
33 | 35 |
34 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_CHROMEOS_SYSTEM_OPTIONS_HANDLER_H_ | 36 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_CHROMEOS_SYSTEM_OPTIONS_HANDLER_H_ |
OLD | NEW |