| 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 20 matching lines...) Expand all Loading... |
| 31 int num_set_is_projecting_calls() const { | 31 int num_set_is_projecting_calls() const { |
| 32 return num_set_is_projecting_calls_; | 32 return num_set_is_projecting_calls_; |
| 33 } | 33 } |
| 34 bool is_projecting() const { return is_projecting_; } | 34 bool is_projecting() const { return is_projecting_; } |
| 35 | 35 |
| 36 // PowerManagerClient overrides | 36 // PowerManagerClient overrides |
| 37 virtual void Init(dbus::Bus* bus) override; | 37 virtual void Init(dbus::Bus* bus) override; |
| 38 virtual void AddObserver(Observer* observer) override; | 38 virtual void AddObserver(Observer* observer) override; |
| 39 virtual void RemoveObserver(Observer* observer) override; | 39 virtual void RemoveObserver(Observer* observer) override; |
| 40 virtual bool HasObserver(const Observer* observer) const override; | 40 virtual bool HasObserver(const Observer* observer) const override; |
| 41 virtual void SetRenderProcessManagerDelegate( |
| 42 base::WeakPtr<RenderProcessManagerDelegate> delegate) override; |
| 41 virtual void DecreaseScreenBrightness(bool allow_off) override; | 43 virtual void DecreaseScreenBrightness(bool allow_off) override; |
| 42 virtual void IncreaseScreenBrightness() override; | 44 virtual void IncreaseScreenBrightness() override; |
| 43 virtual void SetScreenBrightnessPercent( | 45 virtual void SetScreenBrightnessPercent( |
| 44 double percent, bool gradual) override; | 46 double percent, bool gradual) override; |
| 45 virtual void GetScreenBrightnessPercent( | 47 virtual void GetScreenBrightnessPercent( |
| 46 const GetScreenBrightnessPercentCallback& callback) override; | 48 const GetScreenBrightnessPercentCallback& callback) override; |
| 47 virtual void DecreaseKeyboardBrightness() override; | 49 virtual void DecreaseKeyboardBrightness() override; |
| 48 virtual void IncreaseKeyboardBrightness() override; | 50 virtual void IncreaseKeyboardBrightness() override; |
| 49 virtual void RequestStatusUpdate() override; | 51 virtual void RequestStatusUpdate() override; |
| 50 virtual void RequestSuspend() override; | 52 virtual void RequestSuspend() override; |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 83 int num_request_shutdown_calls_; | 85 int num_request_shutdown_calls_; |
| 84 int num_set_policy_calls_; | 86 int num_set_policy_calls_; |
| 85 int num_set_is_projecting_calls_; | 87 int num_set_is_projecting_calls_; |
| 86 | 88 |
| 87 // Number of pending suspend readiness callbacks. | 89 // Number of pending suspend readiness callbacks. |
| 88 int num_pending_suspend_readiness_callbacks_; | 90 int num_pending_suspend_readiness_callbacks_; |
| 89 | 91 |
| 90 // Last projecting state set in SetIsProjecting(). | 92 // Last projecting state set in SetIsProjecting(). |
| 91 bool is_projecting_; | 93 bool is_projecting_; |
| 92 | 94 |
| 95 // Delegate for managing power consumption of Chrome's renderer processes. |
| 96 base::WeakPtr<RenderProcessManagerDelegate> render_process_manager_delegate_; |
| 97 |
| 93 DISALLOW_COPY_AND_ASSIGN(FakePowerManagerClient); | 98 DISALLOW_COPY_AND_ASSIGN(FakePowerManagerClient); |
| 94 }; | 99 }; |
| 95 | 100 |
| 96 } // namespace chromeos | 101 } // namespace chromeos |
| 97 | 102 |
| 98 #endif // CHROMEOS_DBUS_FAKE_POWER_MANAGER_CLIENT_H_ | 103 #endif // CHROMEOS_DBUS_FAKE_POWER_MANAGER_CLIENT_H_ |
| OLD | NEW |