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

Side by Side Diff: chrome/browser/ui/webui/options/chromeos/system_options_handler.h

Issue 9814030: get rid of old options pages (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: more fixes Created 8 years, 9 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_OPTIONS_CHROMEOS_SYSTEM_OPTIONS_HANDLER_H_
6 #define CHROME_BROWSER_UI_WEBUI_OPTIONS_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/chromeos/device_hierarchy_observer.h"
12 #include "chrome/browser/ui/webui/options/options_ui.h"
13
14 namespace base {
15 class DictionaryValue;
16 }
17
18 // ChromeOS system options page UI handler.
19 class SystemOptionsHandler
20 : public OptionsPageUIHandler,
21 public chromeos::DeviceHierarchyObserver,
22 public base::SupportsWeakPtr<SystemOptionsHandler> {
23 public:
24 SystemOptionsHandler();
25 virtual ~SystemOptionsHandler();
26
27 // OptionsPageUIHandler implementation.
28 virtual void GetLocalizedValues(
29 base::DictionaryValue* localized_strings) OVERRIDE;
30 virtual void InitializeHandler() OVERRIDE;
31
32 virtual void RegisterMessages() OVERRIDE;
33
34 // DeviceHierarchyObserver implementation.
35 virtual void DeviceHierarchyChanged() OVERRIDE;
36
37 // Called when the accessibility checkbox values are changed.
38 // |args| will contain the checkbox checked state as a string
39 // ("true" or "false").
40 void SpokenFeedbackChangeCallback(const base::ListValue* args);
41 void HighContrastChangeCallback(const base::ListValue* args);
42 void ScreenMagnifierChangeCallback(const base::ListValue* args);
43 void VirtualKeyboardChangeCallback(const base::ListValue* args);
44
45 // Called when the System configuration screen is used to adjust
46 // the screen brightness.
47 // |args| will be an empty list.
48 void DecreaseScreenBrightnessCallback(const base::ListValue* args);
49 void IncreaseScreenBrightnessCallback(const base::ListValue* args);
50
51 private:
52 // Check for input devices.
53 void CheckTouchpadExists();
54 void CheckMouseExists();
55
56 // Callback for input device checks.
57 void TouchpadExists(bool* exists);
58 void MouseExists(bool* exists);
59
60 DISALLOW_COPY_AND_ASSIGN(SystemOptionsHandler);
61 };
62
63 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_CHROMEOS_SYSTEM_OPTIONS_HANDLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698