OLD | NEW |
| (Empty) |
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 | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef CHROME_BROWSER_UI_WEBUI_OPTIONS2_CHROMEOS_SYSTEM_OPTIONS_HANDLER_H_ | |
6 #define CHROME_BROWSER_UI_WEBUI_OPTIONS2_CHROMEOS_SYSTEM_OPTIONS_HANDLER_H_ | |
7 #pragma once | |
8 | |
9 #include "base/memory/weak_ptr.h" | |
10 #include "base/compiler_specific.h" | |
11 #include "chrome/browser/ui/webui/options2/options_ui.h" | |
12 | |
13 namespace base { | |
14 class DictionaryValue; | |
15 } | |
16 | |
17 // ChromeOS system options page UI handler. | |
18 class SystemOptionsHandler | |
19 : public OptionsPage2UIHandler, | |
20 public base::SupportsWeakPtr<SystemOptionsHandler> { | |
21 public: | |
22 SystemOptionsHandler(); | |
23 virtual ~SystemOptionsHandler(); | |
24 | |
25 // OptionsPage2UIHandler implementation. | |
26 virtual void GetLocalizedValues( | |
27 base::DictionaryValue* localized_strings) OVERRIDE; | |
28 virtual void Initialize() OVERRIDE; | |
29 | |
30 virtual void RegisterMessages() OVERRIDE; | |
31 | |
32 // Called when the accessibility checkbox value is changed. | |
33 // |args| will contain the checkbox checked state as a string | |
34 // ("true" or "false"). | |
35 void AccessibilityChangeCallback(const base::ListValue* args); | |
36 | |
37 // Called when the System configuration screen is used to adjust | |
38 // the screen brightness. | |
39 // |args| will be an empty list. | |
40 void DecreaseScreenBrightnessCallback(const base::ListValue* args); | |
41 void IncreaseScreenBrightnessCallback(const base::ListValue* args); | |
42 | |
43 private: | |
44 // Callback for TouchpadHelper. | |
45 void TouchpadExists(bool* exists); | |
46 | |
47 DISALLOW_COPY_AND_ASSIGN(SystemOptionsHandler); | |
48 }; | |
49 | |
50 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS2_CHROMEOS_SYSTEM_OPTIONS_HANDLER_H_ | |
OLD | NEW |