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 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/callback.h" | 10 #include "base/callback.h" |
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
158 // Set the screen brightness to |percent|, in the range [0.0, 100.0]. | 158 // Set the screen brightness to |percent|, in the range [0.0, 100.0]. |
159 // If |gradual| is true, the transition will be animated. | 159 // If |gradual| is true, the transition will be animated. |
160 virtual void SetScreenBrightnessPercent(double percent, bool gradual) = 0; | 160 virtual void SetScreenBrightnessPercent(double percent, bool gradual) = 0; |
161 | 161 |
162 // Asynchronously gets the current screen brightness, in the range | 162 // Asynchronously gets the current screen brightness, in the range |
163 // [0.0, 100.0]. On error (e.g. powerd not running), |callback| will not be | 163 // [0.0, 100.0]. On error (e.g. powerd not running), |callback| will not be |
164 // run. | 164 // run. |
165 virtual void GetScreenBrightnessPercent( | 165 virtual void GetScreenBrightnessPercent( |
166 const GetScreenBrightnessPercentCallback& callback) = 0; | 166 const GetScreenBrightnessPercentCallback& callback) = 0; |
167 | 167 |
| 168 // Get the current screen brightness and syncrhonize it to android settings |
| 169 virtual void SyncScreenBrightness() = 0; |
| 170 |
168 // Decreases the keyboard brightness. | 171 // Decreases the keyboard brightness. |
169 virtual void DecreaseKeyboardBrightness() = 0; | 172 virtual void DecreaseKeyboardBrightness() = 0; |
170 | 173 |
171 // Increases the keyboard brightness. | 174 // Increases the keyboard brightness. |
172 virtual void IncreaseKeyboardBrightness() = 0; | 175 virtual void IncreaseKeyboardBrightness() = 0; |
173 | 176 |
174 // Requests an updated copy of the power status. Observer::PowerChanged() | 177 // Requests an updated copy of the power status. Observer::PowerChanged() |
175 // will be called asynchronously. | 178 // will be called asynchronously. |
176 virtual void RequestStatusUpdate() = 0; | 179 virtual void RequestStatusUpdate() = 0; |
177 | 180 |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
238 // Create() should be used instead. | 241 // Create() should be used instead. |
239 PowerManagerClient(); | 242 PowerManagerClient(); |
240 | 243 |
241 private: | 244 private: |
242 DISALLOW_COPY_AND_ASSIGN(PowerManagerClient); | 245 DISALLOW_COPY_AND_ASSIGN(PowerManagerClient); |
243 }; | 246 }; |
244 | 247 |
245 } // namespace chromeos | 248 } // namespace chromeos |
246 | 249 |
247 #endif // CHROMEOS_DBUS_POWER_MANAGER_CLIENT_H_ | 250 #endif // CHROMEOS_DBUS_POWER_MANAGER_CLIENT_H_ |
OLD | NEW |