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

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

Issue 8930012: Revert 114236 - Options2: Pull the trigger. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years 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) 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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698