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 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
155 // the request id and the method will call the provided callback with the | 155 // the request id and the method will call the provided callback with the |
156 // new request ID for use with further calls. | 156 // new request ID for use with further calls. |
157 // The overrides parameter will & out the PowerStateOverrideType types to | 157 // The overrides parameter will & out the PowerStateOverrideType types to |
158 // allow specific selection of overrides. For example, to override just dim | 158 // allow specific selection of overrides. For example, to override just dim |
159 // and suspending but leaving blanking in, set overrides to, | 159 // and suspending but leaving blanking in, set overrides to, |
160 // DISABLE_IDLE_DIM | DISABLE_IDLE_SUSPEND. | 160 // DISABLE_IDLE_DIM | DISABLE_IDLE_SUSPEND. |
161 virtual void RequestPowerStateOverrides( | 161 virtual void RequestPowerStateOverrides( |
162 uint32 request_id, | 162 uint32 request_id, |
163 uint32 duration, | 163 uint32 duration, |
164 int overrides, | 164 int overrides, |
165 PowerStateRequestIdCallback callback) = 0; | 165 const PowerStateRequestIdCallback& callback) = 0; |
166 | 166 |
167 // Creates the instance. | 167 // Creates the instance. |
168 static PowerManagerClient* Create(DBusClientImplementationType type, | 168 static PowerManagerClient* Create(DBusClientImplementationType type, |
169 dbus::Bus* bus); | 169 dbus::Bus* bus); |
170 | 170 |
171 virtual ~PowerManagerClient(); | 171 virtual ~PowerManagerClient(); |
172 | 172 |
173 protected: | 173 protected: |
174 // Create() should be used instead. | 174 // Create() should be used instead. |
175 PowerManagerClient(); | 175 PowerManagerClient(); |
176 | 176 |
177 private: | 177 private: |
178 DISALLOW_COPY_AND_ASSIGN(PowerManagerClient); | 178 DISALLOW_COPY_AND_ASSIGN(PowerManagerClient); |
179 }; | 179 }; |
180 | 180 |
181 } // namespace chromeos | 181 } // namespace chromeos |
182 | 182 |
183 #endif // CHROMEOS_DBUS_POWER_MANAGER_CLIENT_H_ | 183 #endif // CHROMEOS_DBUS_POWER_MANAGER_CLIENT_H_ |
OLD | NEW |