OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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_FAKE_POWER_MANAGER_CLIENT_H_ | 5 #ifndef CHROMEOS_DBUS_FAKE_POWER_MANAGER_CLIENT_H_ |
6 #define CHROMEOS_DBUS_FAKE_POWER_MANAGER_CLIENT_H_ | 6 #define CHROMEOS_DBUS_FAKE_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 29 matching lines...) Expand all Loading... |
40 virtual bool HasObserver(Observer* observer) OVERRIDE; | 40 virtual bool HasObserver(Observer* observer) OVERRIDE; |
41 virtual void DecreaseScreenBrightness(bool allow_off) OVERRIDE; | 41 virtual void DecreaseScreenBrightness(bool allow_off) OVERRIDE; |
42 virtual void IncreaseScreenBrightness() OVERRIDE; | 42 virtual void IncreaseScreenBrightness() OVERRIDE; |
43 virtual void SetScreenBrightnessPercent( | 43 virtual void SetScreenBrightnessPercent( |
44 double percent, bool gradual) OVERRIDE; | 44 double percent, bool gradual) OVERRIDE; |
45 virtual void GetScreenBrightnessPercent( | 45 virtual void GetScreenBrightnessPercent( |
46 const GetScreenBrightnessPercentCallback& callback) OVERRIDE; | 46 const GetScreenBrightnessPercentCallback& callback) OVERRIDE; |
47 virtual void DecreaseKeyboardBrightness() OVERRIDE; | 47 virtual void DecreaseKeyboardBrightness() OVERRIDE; |
48 virtual void IncreaseKeyboardBrightness() OVERRIDE; | 48 virtual void IncreaseKeyboardBrightness() OVERRIDE; |
49 virtual void RequestStatusUpdate() OVERRIDE; | 49 virtual void RequestStatusUpdate() OVERRIDE; |
| 50 virtual void RequestSuspend() OVERRIDE; |
50 virtual void RequestRestart() OVERRIDE; | 51 virtual void RequestRestart() OVERRIDE; |
51 virtual void RequestShutdown() OVERRIDE; | 52 virtual void RequestShutdown() OVERRIDE; |
52 virtual void NotifyUserActivity( | 53 virtual void NotifyUserActivity( |
53 power_manager::UserActivityType type) OVERRIDE; | 54 power_manager::UserActivityType type) OVERRIDE; |
54 virtual void NotifyVideoActivity(bool is_fullscreen) OVERRIDE; | 55 virtual void NotifyVideoActivity(bool is_fullscreen) OVERRIDE; |
55 virtual void SetPolicy( | 56 virtual void SetPolicy( |
56 const power_manager::PowerManagementPolicy& policy) OVERRIDE; | 57 const power_manager::PowerManagementPolicy& policy) OVERRIDE; |
57 virtual void SetIsProjecting(bool is_projecting) OVERRIDE; | 58 virtual void SetIsProjecting(bool is_projecting) OVERRIDE; |
58 virtual base::Closure GetSuspendReadinessCallback() OVERRIDE; | 59 virtual base::Closure GetSuspendReadinessCallback() OVERRIDE; |
59 virtual int GetNumPendingSuspendReadinessCallbacks() OVERRIDE; | 60 virtual int GetNumPendingSuspendReadinessCallbacks() OVERRIDE; |
(...skipping 28 matching lines...) Expand all Loading... |
88 | 89 |
89 // Last projecting state set in SetIsProjecting(). | 90 // Last projecting state set in SetIsProjecting(). |
90 bool is_projecting_; | 91 bool is_projecting_; |
91 | 92 |
92 DISALLOW_COPY_AND_ASSIGN(FakePowerManagerClient); | 93 DISALLOW_COPY_AND_ASSIGN(FakePowerManagerClient); |
93 }; | 94 }; |
94 | 95 |
95 } // namespace chromeos | 96 } // namespace chromeos |
96 | 97 |
97 #endif // CHROMEOS_DBUS_FAKE_POWER_MANAGER_CLIENT_H_ | 98 #endif // CHROMEOS_DBUS_FAKE_POWER_MANAGER_CLIENT_H_ |
OLD | NEW |