Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(286)

Side by Side Diff: chromeos/dbus/fake_power_manager_client.h

Issue 438433002: Add dark resume methods to PowerManagerClient (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: int32 -> int32_t Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 virtual void SetPolicy( 59 virtual void SetPolicy(
60 const power_manager::PowerManagementPolicy& policy) OVERRIDE; 60 const power_manager::PowerManagementPolicy& policy) OVERRIDE;
61 virtual void SetIsProjecting(bool is_projecting) OVERRIDE; 61 virtual void SetIsProjecting(bool is_projecting) OVERRIDE;
62 virtual base::Closure GetSuspendReadinessCallback() OVERRIDE; 62 virtual base::Closure GetSuspendReadinessCallback() OVERRIDE;
63 virtual int GetNumPendingSuspendReadinessCallbacks() OVERRIDE; 63 virtual int GetNumPendingSuspendReadinessCallbacks() OVERRIDE;
64 64
65 // Emulates the power manager announcing that the system is starting or 65 // Emulates the power manager announcing that the system is starting or
66 // completing a suspend attempt. 66 // completing a suspend attempt.
67 void SendSuspendImminent(); 67 void SendSuspendImminent();
68 void SendSuspendDone(); 68 void SendSuspendDone();
69 void SendDarkSuspendImminent();
69 70
70 private: 71 private:
71 ObserverList<Observer> observers_; 72 ObserverList<Observer> observers_;
72 73
73 // Last policy passed to SetPolicy(). 74 // Last policy passed to SetPolicy().
74 power_manager::PowerManagementPolicy policy_; 75 power_manager::PowerManagementPolicy policy_;
75 76
76 // Number of times that RequestRestart() has been called. 77 // Number of times that RequestRestart() has been called.
77 int num_request_restart_calls_; 78 int num_request_restart_calls_;
78 79
79 // Number of times that SetPolicy() has been called. 80 // Number of times that SetPolicy() has been called.
80 int num_set_policy_calls_; 81 int num_set_policy_calls_;
81 82
82 // Count the number of times SetIsProjecting() has been called. 83 // Count the number of times SetIsProjecting() has been called.
83 int num_set_is_projecting_calls_; 84 int num_set_is_projecting_calls_;
84 85
85 // Last projecting state set in SetIsProjecting(). 86 // Last projecting state set in SetIsProjecting().
86 bool is_projecting_; 87 bool is_projecting_;
87 88
88 DISALLOW_COPY_AND_ASSIGN(FakePowerManagerClient); 89 DISALLOW_COPY_AND_ASSIGN(FakePowerManagerClient);
89 }; 90 };
90 91
91 } // namespace chromeos 92 } // namespace chromeos
92 93
93 #endif // CHROMEOS_DBUS_FAKE_POWER_MANAGER_CLIENT_H_ 94 #endif // CHROMEOS_DBUS_FAKE_POWER_MANAGER_CLIENT_H_
OLDNEW
« no previous file with comments | « no previous file | chromeos/dbus/fake_power_manager_client.cc » ('j') | chromeos/dbus/power_manager_client.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698