| 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 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 174 // The overrides parameter will & out the PowerStateOverrideType types to | 174 // The overrides parameter will & out the PowerStateOverrideType types to |
| 175 // allow specific selection of overrides. For example, to override just dim | 175 // allow specific selection of overrides. For example, to override just dim |
| 176 // and suspending but leaving blanking in, set overrides to, | 176 // and suspending but leaving blanking in, set overrides to, |
| 177 // DISABLE_IDLE_DIM | DISABLE_IDLE_SUSPEND. | 177 // DISABLE_IDLE_DIM | DISABLE_IDLE_SUSPEND. |
| 178 virtual void RequestPowerStateOverrides( | 178 virtual void RequestPowerStateOverrides( |
| 179 uint32 request_id, | 179 uint32 request_id, |
| 180 uint32 duration, | 180 uint32 duration, |
| 181 int overrides, | 181 int overrides, |
| 182 const PowerStateRequestIdCallback& callback) = 0; | 182 const PowerStateRequestIdCallback& callback) = 0; |
| 183 | 183 |
| 184 // Tells powerd whether or not we are in a projecting mode. This is used to |
| 185 // adjust idleness thresholds and derived, on this side, from the number of |
| 186 // video outputs attached. |
| 187 virtual void SetIsProjecting(bool is_projecting) = 0; |
| 188 |
| 184 // Creates the instance. | 189 // Creates the instance. |
| 185 static PowerManagerClient* Create(DBusClientImplementationType type, | 190 static PowerManagerClient* Create(DBusClientImplementationType type, |
| 186 dbus::Bus* bus); | 191 dbus::Bus* bus); |
| 187 | 192 |
| 188 virtual ~PowerManagerClient(); | 193 virtual ~PowerManagerClient(); |
| 189 | 194 |
| 190 protected: | 195 protected: |
| 191 // Create() should be used instead. | 196 // Create() should be used instead. |
| 192 PowerManagerClient(); | 197 PowerManagerClient(); |
| 193 | 198 |
| 194 private: | 199 private: |
| 195 DISALLOW_COPY_AND_ASSIGN(PowerManagerClient); | 200 DISALLOW_COPY_AND_ASSIGN(PowerManagerClient); |
| 196 }; | 201 }; |
| 197 | 202 |
| 198 } // namespace chromeos | 203 } // namespace chromeos |
| 199 | 204 |
| 200 #endif // CHROMEOS_DBUS_POWER_MANAGER_CLIENT_H_ | 205 #endif // CHROMEOS_DBUS_POWER_MANAGER_CLIENT_H_ |
| OLD | NEW |