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

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

Issue 2296003002: ABANDONED: chromeos: Resume displays when suspend is cancelled. (Closed)
Patch Set: fix comment Created 4 years, 3 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 <deque> 8 #include <deque>
9 #include <string> 9 #include <string>
10 10
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 void RequestRestart() override; 59 void RequestRestart() override;
60 void RequestShutdown() override; 60 void RequestShutdown() override;
61 void NotifyUserActivity(power_manager::UserActivityType type) override; 61 void NotifyUserActivity(power_manager::UserActivityType type) override;
62 void NotifyVideoActivity(bool is_fullscreen) override; 62 void NotifyVideoActivity(bool is_fullscreen) override;
63 void SetPolicy(const power_manager::PowerManagementPolicy& policy) override; 63 void SetPolicy(const power_manager::PowerManagementPolicy& policy) override;
64 void SetIsProjecting(bool is_projecting) override; 64 void SetIsProjecting(bool is_projecting) override;
65 void SetPowerSource(const std::string& id) override; 65 void SetPowerSource(const std::string& id) override;
66 base::Closure GetSuspendReadinessCallback() override; 66 base::Closure GetSuspendReadinessCallback() override;
67 int GetNumPendingSuspendReadinessCallbacks() override; 67 int GetNumPendingSuspendReadinessCallbacks() override;
68 68
69 // Resets the object's state.
70 void Reset();
71
69 // Pops the first report from |video_activity_reports_|, returning whether the 72 // Pops the first report from |video_activity_reports_|, returning whether the
70 // activity was fullscreen or not. There must be at least one report. 73 // activity was fullscreen or not. There must be at least one report.
71 bool PopVideoActivityReport(); 74 bool PopVideoActivityReport();
72 75
73 // Emulates the power manager announcing that the system is starting or 76 // Emulates the power manager announcing that the system is starting or
74 // completing a suspend attempt. 77 // completing a suspend attempt.
75 void SendSuspendImminent(); 78 void SendSuspendImminent();
76 void SendSuspendDone(); 79 void SendSuspendDone();
77 void SendDarkSuspendImminent(); 80 void SendDarkSuspendImminent();
78 81
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
121 // Note: This should remain the last member so it'll be destroyed and 124 // Note: This should remain the last member so it'll be destroyed and
122 // invalidate its weak pointers before any other members are destroyed. 125 // invalidate its weak pointers before any other members are destroyed.
123 base::WeakPtrFactory<FakePowerManagerClient> weak_ptr_factory_; 126 base::WeakPtrFactory<FakePowerManagerClient> weak_ptr_factory_;
124 127
125 DISALLOW_COPY_AND_ASSIGN(FakePowerManagerClient); 128 DISALLOW_COPY_AND_ASSIGN(FakePowerManagerClient);
126 }; 129 };
127 130
128 } // namespace chromeos 131 } // namespace chromeos
129 132
130 #endif // CHROMEOS_DBUS_FAKE_POWER_MANAGER_CLIENT_H_ 133 #endif // CHROMEOS_DBUS_FAKE_POWER_MANAGER_CLIENT_H_
OLDNEW
« no previous file with comments | « ash/system/chromeos/power/power_event_observer_unittest.cc ('k') | chromeos/dbus/fake_power_manager_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698