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 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
121 // Decreases the keyboard brightness. | 121 // Decreases the keyboard brightness. |
122 virtual void DecreaseKeyboardBrightness() = 0; | 122 virtual void DecreaseKeyboardBrightness() = 0; |
123 | 123 |
124 // Increases the keyboard brightness. | 124 // Increases the keyboard brightness. |
125 virtual void IncreaseKeyboardBrightness() = 0; | 125 virtual void IncreaseKeyboardBrightness() = 0; |
126 | 126 |
127 // Requests an updated copy of the power status. Observer::PowerChanged() | 127 // Requests an updated copy of the power status. Observer::PowerChanged() |
128 // will be called asynchronously. | 128 // will be called asynchronously. |
129 virtual void RequestStatusUpdate() = 0; | 129 virtual void RequestStatusUpdate() = 0; |
130 | 130 |
| 131 // Requests suspend of the system. |
| 132 virtual void RequestSuspend() = 0; |
| 133 |
131 // Requests restart of the system. | 134 // Requests restart of the system. |
132 virtual void RequestRestart() = 0; | 135 virtual void RequestRestart() = 0; |
133 | 136 |
134 // Requests shutdown of the system. | 137 // Requests shutdown of the system. |
135 virtual void RequestShutdown() = 0; | 138 virtual void RequestShutdown() = 0; |
136 | 139 |
137 // Notifies the power manager that the user is active (i.e. generating input | 140 // Notifies the power manager that the user is active (i.e. generating input |
138 // events). | 141 // events). |
139 virtual void NotifyUserActivity(power_manager::UserActivityType type) = 0; | 142 virtual void NotifyUserActivity(power_manager::UserActivityType type) = 0; |
140 | 143 |
(...skipping 27 matching lines...) Expand all Loading... |
168 // Create() should be used instead. | 171 // Create() should be used instead. |
169 PowerManagerClient(); | 172 PowerManagerClient(); |
170 | 173 |
171 private: | 174 private: |
172 DISALLOW_COPY_AND_ASSIGN(PowerManagerClient); | 175 DISALLOW_COPY_AND_ASSIGN(PowerManagerClient); |
173 }; | 176 }; |
174 | 177 |
175 } // namespace chromeos | 178 } // namespace chromeos |
176 | 179 |
177 #endif // CHROMEOS_DBUS_POWER_MANAGER_CLIENT_H_ | 180 #endif // CHROMEOS_DBUS_POWER_MANAGER_CLIENT_H_ |
OLD | NEW |