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_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 "base/memory/weak_ptr.h" | 9 #include "base/memory/weak_ptr.h" |
10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
11 #include "chrome/browser/chromeos/device_hierarchy_observer.h" | 11 #include "chrome/browser/chromeos/device_hierarchy_observer.h" |
12 #include "chrome/browser/ui/webui/options/options_ui.h" | 12 #include "chrome/browser/ui/webui/options/options_ui.h" |
13 | 13 |
14 namespace base { | 14 namespace base { |
15 class DictionaryValue; | 15 class DictionaryValue; |
16 } | 16 } |
17 | 17 |
18 // ChromeOS system options page UI handler. | 18 // ChromeOS system options page UI handler. |
19 class SystemOptionsHandler | 19 class SystemOptionsHandler |
20 : public OptionsPageUIHandler, | 20 : public OptionsPageUIHandler, |
21 public chromeos::DeviceHierarchyObserver, | 21 public chromeos::DeviceHierarchyObserver, |
22 public base::SupportsWeakPtr<SystemOptionsHandler> { | 22 public base::SupportsWeakPtr<SystemOptionsHandler> { |
23 public: | 23 public: |
24 SystemOptionsHandler(); | 24 SystemOptionsHandler(); |
25 virtual ~SystemOptionsHandler(); | 25 virtual ~SystemOptionsHandler(); |
26 | 26 |
27 // OptionsPageUIHandler implementation. | 27 // OptionsPageUIHandler implementation. |
28 virtual void GetLocalizedValues( | 28 virtual void GetLocalizedValues( |
29 base::DictionaryValue* localized_strings) OVERRIDE; | 29 base::DictionaryValue* localized_strings) OVERRIDE; |
30 virtual void Initialize() OVERRIDE; | 30 virtual void InitializeHandler() OVERRIDE; |
31 | 31 |
32 virtual void RegisterMessages() OVERRIDE; | 32 virtual void RegisterMessages() OVERRIDE; |
33 | 33 |
34 // DeviceHierarchyObserver implementation. | 34 // DeviceHierarchyObserver implementation. |
35 virtual void DeviceHierarchyChanged() OVERRIDE; | 35 virtual void DeviceHierarchyChanged() OVERRIDE; |
36 | 36 |
37 // Called when the accessibility checkbox values are changed. | 37 // Called when the accessibility checkbox values are changed. |
38 // |args| will contain the checkbox checked state as a string | 38 // |args| will contain the checkbox checked state as a string |
39 // ("true" or "false"). | 39 // ("true" or "false"). |
40 void SpokenFeedbackChangeCallback(const base::ListValue* args); | 40 void SpokenFeedbackChangeCallback(const base::ListValue* args); |
(...skipping 13 matching lines...) Expand all Loading... |
54 void CheckMouseExists(); | 54 void CheckMouseExists(); |
55 | 55 |
56 // Callback for input device checks. | 56 // Callback for input device checks. |
57 void TouchpadExists(bool* exists); | 57 void TouchpadExists(bool* exists); |
58 void MouseExists(bool* exists); | 58 void MouseExists(bool* exists); |
59 | 59 |
60 DISALLOW_COPY_AND_ASSIGN(SystemOptionsHandler); | 60 DISALLOW_COPY_AND_ASSIGN(SystemOptionsHandler); |
61 }; | 61 }; |
62 | 62 |
63 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_CHROMEOS_SYSTEM_OPTIONS_HANDLER_H_ | 63 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_CHROMEOS_SYSTEM_OPTIONS_HANDLER_H_ |
OLD | NEW |