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

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

Issue 2409983006: Make [S,G]getBacklightsForcedOff dbus API integrated to power_manager_client (Closed)
Patch Set: Created 4 years, 2 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 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 void IncreaseKeyboardBrightness() override; 56 void IncreaseKeyboardBrightness() override;
57 void RequestStatusUpdate() override; 57 void RequestStatusUpdate() override;
58 void RequestSuspend() override; 58 void RequestSuspend() override;
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 void SetBacklightsForcedOff(bool is_off) override;
67 void GetBacklightsForcedOffState(
68 const GetBacklightsForcedOffStateCallback& callback) override;
66 base::Closure GetSuspendReadinessCallback() override; 69 base::Closure GetSuspendReadinessCallback() override;
67 int GetNumPendingSuspendReadinessCallbacks() override; 70 int GetNumPendingSuspendReadinessCallbacks() override;
68 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();
(...skipping 45 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 | « no previous file | chromeos/dbus/fake_power_manager_client.cc » ('j') | chromeos/dbus/fake_power_manager_client.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698