| 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/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 54 // Called when the brightness is changed. | 54 // Called when the brightness is changed. |
| 55 // |level| is of the range [0, 100]. | 55 // |level| is of the range [0, 100]. |
| 56 // |user_initiated| is true if the action is initiated by the user. | 56 // |user_initiated| is true if the action is initiated by the user. |
| 57 virtual void BrightnessChanged(int level, bool user_initiated) {} | 57 virtual void BrightnessChanged(int level, bool user_initiated) {} |
| 58 | 58 |
| 59 // Called when a screen is turned on or off to request that Chrome enable or | 59 // Called when a screen is turned on or off to request that Chrome enable or |
| 60 // disable the corresponding CRTC for the output. | 60 // disable the corresponding CRTC for the output. |
| 61 // |power_on| The new state of the power setting. | 61 // |power_on| The new state of the power setting. |
| 62 // |all_displays| True if this applies to all displays or false if it is | 62 // |all_displays| True if this applies to all displays or false if it is |
| 63 // the internal display only. | 63 // the internal display only. |
| 64 // TODO(derat): Remove this. |
| 64 virtual void ScreenPowerSet(bool power_on, bool all_displays) {} | 65 virtual void ScreenPowerSet(bool power_on, bool all_displays) {} |
| 65 | 66 |
| 66 // Called when power supply polling takes place. |status| is a data | 67 // Called when power supply polling takes place. |status| is a data |
| 67 // structure that contains the current state of the power supply. | 68 // structure that contains the current state of the power supply. |
| 68 virtual void PowerChanged(const PowerSupplyStatus& status) {} | 69 virtual void PowerChanged(const PowerSupplyStatus& status) {} |
| 69 | 70 |
| 70 // Called when we go idle for threshold time. | 71 // Called when we go idle for threshold time. |
| 71 virtual void IdleNotify(int64 threshold_secs) {} | 72 virtual void IdleNotify(int64 threshold_secs) {} |
| 72 | 73 |
| 73 // Called when a request is received to dim or undim the screen in software | 74 // Called when a request is received to dim or undim the screen in software |
| (...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 209 // Create() should be used instead. | 210 // Create() should be used instead. |
| 210 PowerManagerClient(); | 211 PowerManagerClient(); |
| 211 | 212 |
| 212 private: | 213 private: |
| 213 DISALLOW_COPY_AND_ASSIGN(PowerManagerClient); | 214 DISALLOW_COPY_AND_ASSIGN(PowerManagerClient); |
| 214 }; | 215 }; |
| 215 | 216 |
| 216 } // namespace chromeos | 217 } // namespace chromeos |
| 217 | 218 |
| 218 #endif // CHROMEOS_DBUS_POWER_MANAGER_CLIENT_H_ | 219 #endif // CHROMEOS_DBUS_POWER_MANAGER_CLIENT_H_ |
| OLD | NEW |