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

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

Issue 585623003: [Athena] Make a quick power button tap suspend the device (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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
« no previous file with comments | « chromeos/dbus/fake_power_manager_client.cc ('k') | chromeos/dbus/power_manager_client.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_POWER_MANAGER_CLIENT_H_ 5 #ifndef CHROMEOS_DBUS_POWER_MANAGER_CLIENT_H_
6 #define CHROMEOS_DBUS_POWER_MANAGER_CLIENT_H_ 6 #define CHROMEOS_DBUS_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 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
121 // Decreases the keyboard brightness. 121 // Decreases the keyboard brightness.
122 virtual void DecreaseKeyboardBrightness() = 0; 122 virtual void DecreaseKeyboardBrightness() = 0;
123 123
124 // Increases the keyboard brightness. 124 // Increases the keyboard brightness.
125 virtual void IncreaseKeyboardBrightness() = 0; 125 virtual void IncreaseKeyboardBrightness() = 0;
126 126
127 // Requests an updated copy of the power status. Observer::PowerChanged() 127 // Requests an updated copy of the power status. Observer::PowerChanged()
128 // will be called asynchronously. 128 // will be called asynchronously.
129 virtual void RequestStatusUpdate() = 0; 129 virtual void RequestStatusUpdate() = 0;
130 130
131 // Requests suspend of the system.
132 virtual void RequestSuspend() = 0;
133
131 // Requests restart of the system. 134 // Requests restart of the system.
132 virtual void RequestRestart() = 0; 135 virtual void RequestRestart() = 0;
133 136
134 // Requests shutdown of the system. 137 // Requests shutdown of the system.
135 virtual void RequestShutdown() = 0; 138 virtual void RequestShutdown() = 0;
136 139
137 // Notifies the power manager that the user is active (i.e. generating input 140 // Notifies the power manager that the user is active (i.e. generating input
138 // events). 141 // events).
139 virtual void NotifyUserActivity(power_manager::UserActivityType type) = 0; 142 virtual void NotifyUserActivity(power_manager::UserActivityType type) = 0;
140 143
(...skipping 27 matching lines...) Expand all
168 // Create() should be used instead. 171 // Create() should be used instead.
169 PowerManagerClient(); 172 PowerManagerClient();
170 173
171 private: 174 private:
172 DISALLOW_COPY_AND_ASSIGN(PowerManagerClient); 175 DISALLOW_COPY_AND_ASSIGN(PowerManagerClient);
173 }; 176 };
174 177
175 } // namespace chromeos 178 } // namespace chromeos
176 179
177 #endif // CHROMEOS_DBUS_POWER_MANAGER_CLIENT_H_ 180 #endif // CHROMEOS_DBUS_POWER_MANAGER_CLIENT_H_
OLDNEW
« no previous file with comments | « chromeos/dbus/fake_power_manager_client.cc ('k') | chromeos/dbus/power_manager_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698