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 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
93 const base::TimeDelta& time_until_idle_action) {} | 93 const base::TimeDelta& time_until_idle_action) {} |
94 | 94 |
95 // Called after IdleActionImminent() when the inactivity timer is reset | 95 // Called after IdleActionImminent() when the inactivity timer is reset |
96 // before the idle action has been performed. | 96 // before the idle action has been performed. |
97 virtual void IdleActionDeferred() {} | 97 virtual void IdleActionDeferred() {} |
98 }; | 98 }; |
99 | 99 |
100 // Adds and removes the observer. | 100 // Adds and removes the observer. |
101 virtual void AddObserver(Observer* observer) = 0; | 101 virtual void AddObserver(Observer* observer) = 0; |
102 virtual void RemoveObserver(Observer* observer) = 0; | 102 virtual void RemoveObserver(Observer* observer) = 0; |
103 virtual bool HasObserver(Observer* observer) = 0; | 103 virtual bool HasObserver(const Observer* observer) const = 0; |
104 | 104 |
105 // Decreases the screen brightness. |allow_off| controls whether or not | 105 // Decreases the screen brightness. |allow_off| controls whether or not |
106 // it's allowed to turn off the back light. | 106 // it's allowed to turn off the back light. |
107 virtual void DecreaseScreenBrightness(bool allow_off) = 0; | 107 virtual void DecreaseScreenBrightness(bool allow_off) = 0; |
108 | 108 |
109 // Increases the screen brightness. | 109 // Increases the screen brightness. |
110 virtual void IncreaseScreenBrightness() = 0; | 110 virtual void IncreaseScreenBrightness() = 0; |
111 | 111 |
112 // Set the screen brightness to |percent|, in the range [0.0, 100.0]. | 112 // Set the screen brightness to |percent|, in the range [0.0, 100.0]. |
113 // If |gradual| is true, the transition will be animated. | 113 // If |gradual| is true, the transition will be animated. |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
171 // Create() should be used instead. | 171 // Create() should be used instead. |
172 PowerManagerClient(); | 172 PowerManagerClient(); |
173 | 173 |
174 private: | 174 private: |
175 DISALLOW_COPY_AND_ASSIGN(PowerManagerClient); | 175 DISALLOW_COPY_AND_ASSIGN(PowerManagerClient); |
176 }; | 176 }; |
177 | 177 |
178 } // namespace chromeos | 178 } // namespace chromeos |
179 | 179 |
180 #endif // CHROMEOS_DBUS_POWER_MANAGER_CLIENT_H_ | 180 #endif // CHROMEOS_DBUS_POWER_MANAGER_CLIENT_H_ |
OLD | NEW |