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

Side by Side Diff: chromeos/dbus/power_manager_client.h

Issue 10700150: Add methods for controlling keyboard brightness. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: review Created 8 years, 5 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
« no previous file with comments | « chromeos/dbus/mock_power_manager_client.h ('k') | chromeos/dbus/power_manager_client.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 CHROMEOS_DBUS_POWER_MANAGER_CLIENT_H_ 5 #ifndef CHROMEOS_DBUS_POWER_MANAGER_CLIENT_H_
6 #define CHROMEOS_DBUS_POWER_MANAGER_CLIENT_H_ 6 #define CHROMEOS_DBUS_POWER_MANAGER_CLIENT_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 112
113 // Set the screen brightness to |percent|, in the range [0.0, 100.0]. 113 // Set the screen brightness to |percent|, in the range [0.0, 100.0].
114 // If |gradual| is true, the transition will be animated. 114 // If |gradual| is true, the transition will be animated.
115 virtual void SetScreenBrightnessPercent(double percent, bool gradual) = 0; 115 virtual void SetScreenBrightnessPercent(double percent, bool gradual) = 0;
116 116
117 // Asynchronously gets the current screen brightness, in the range 117 // Asynchronously gets the current screen brightness, in the range
118 // [0.0, 100.0]. 118 // [0.0, 100.0].
119 virtual void GetScreenBrightnessPercent( 119 virtual void GetScreenBrightnessPercent(
120 const GetScreenBrightnessPercentCallback& callback) = 0; 120 const GetScreenBrightnessPercentCallback& callback) = 0;
121 121
122 // Decreases the keyboard brightness.
123 virtual void DecreaseKeyboardBrightness() = 0;
124
125 // Increases the keyboard brightness.
126 virtual void IncreaseKeyboardBrightness() = 0;
127
122 // Request for power supply status update. 128 // Request for power supply status update.
123 virtual void RequestStatusUpdate(UpdateRequestType update_type) = 0; 129 virtual void RequestStatusUpdate(UpdateRequestType update_type) = 0;
124 130
125 // Requests restart of the system. 131 // Requests restart of the system.
126 virtual void RequestRestart() = 0; 132 virtual void RequestRestart() = 0;
127 133
128 // Requests shutdown of the system. 134 // Requests shutdown of the system.
129 virtual void RequestShutdown() = 0; 135 virtual void RequestShutdown() = 0;
130 136
131 // Notifies PowerManager that screen lock has been completed. 137 // Notifies PowerManager that screen lock has been completed.
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
185 // Create() should be used instead. 191 // Create() should be used instead.
186 PowerManagerClient(); 192 PowerManagerClient();
187 193
188 private: 194 private:
189 DISALLOW_COPY_AND_ASSIGN(PowerManagerClient); 195 DISALLOW_COPY_AND_ASSIGN(PowerManagerClient);
190 }; 196 };
191 197
192 } // namespace chromeos 198 } // namespace chromeos
193 199
194 #endif // CHROMEOS_DBUS_POWER_MANAGER_CLIENT_H_ 200 #endif // CHROMEOS_DBUS_POWER_MANAGER_CLIENT_H_
OLDNEW
« no previous file with comments | « chromeos/dbus/mock_power_manager_client.h ('k') | chromeos/dbus/power_manager_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698