Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(201)

Side by Side Diff: chrome/browser/ui/webui/options2/chromeos/system_options_handler2.h

Issue 9232010: [uber page] Migrate all elements in the 'System' (cros) page to new locations. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 8 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_UI_WEBUI_OPTIONS2_CHROMEOS_SYSTEM_OPTIONS_HANDLER2_H_
6 #define CHROME_BROWSER_UI_WEBUI_OPTIONS2_CHROMEOS_SYSTEM_OPTIONS_HANDLER2_H_
7 #pragma once
8
9 #include "base/memory/weak_ptr.h"
10 #include "base/compiler_specific.h"
11 #include "chrome/browser/chromeos/device_hierarchy_observer.h"
12 #include "chrome/browser/ui/webui/options2/options_ui2.h"
13
14 namespace base {
15 class DictionaryValue;
16 }
17
18 namespace options2 {
19
20 // ChromeOS system options page UI handler.
21 class SystemOptionsHandler
22 : public OptionsPageUIHandler,
23 public chromeos::DeviceHierarchyObserver,
24 public base::SupportsWeakPtr<SystemOptionsHandler> {
25 public:
26 SystemOptionsHandler();
27 virtual ~SystemOptionsHandler();
28
29 // OptionsPageUIHandler implementation.
30 virtual void GetLocalizedValues(
31 base::DictionaryValue* localized_strings) OVERRIDE;
32 virtual void Initialize() OVERRIDE;
33
34 virtual void RegisterMessages() OVERRIDE;
35
36 // DeviceHierarchyObserver implementation.
37 virtual void DeviceHierarchyChanged() OVERRIDE;
38
39 // Called when the accessibility checkbox values are changed.
40 // |args| will contain the checkbox checked state as a string
41 // ("true" or "false").
42 void SpokenFeedbackChangeCallback(const base::ListValue* args);
43 void HighContrastChangeCallback(const base::ListValue* args);
44 void ScreenMagnifierChangeCallback(const base::ListValue* args);
45 void VirtualKeyboardChangeCallback(const base::ListValue* args);
46
47 // Called when the System configuration screen is used to adjust
48 // the screen brightness.
49 // |args| will be an empty list.
50 void DecreaseScreenBrightnessCallback(const base::ListValue* args);
51 void IncreaseScreenBrightnessCallback(const base::ListValue* args);
52
53 private:
54 // Check for input devices.
55 void CheckTouchpadExists();
56 void CheckMouseExists();
57
58 // Callback for input device checks.
59 void TouchpadExists(bool* exists);
60 void MouseExists(bool* exists);
61
62 DISALLOW_COPY_AND_ASSIGN(SystemOptionsHandler);
63 };
64
65 } // namespace options2
66
67 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS2_CHROMEOS_SYSTEM_OPTIONS_HANDLER2_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698