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