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

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

Issue 12036092: Implement support for monitor suspend. (Closed) Base URL: https://chromium.googlesource.com/chromium/src@git-svn
Patch Set: Fixed nits Created 7 years, 11 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 | « chrome/chrome_browser_chromeos.gypi ('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 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 // structure that contains the current state of the power supply. 60 // structure that contains the current state of the power supply.
61 virtual void PowerChanged(const PowerSupplyStatus& status) {} 61 virtual void PowerChanged(const PowerSupplyStatus& status) {}
62 62
63 // Called when we go idle for threshold time. 63 // Called when we go idle for threshold time.
64 virtual void IdleNotify(int64 threshold_secs) {} 64 virtual void IdleNotify(int64 threshold_secs) {}
65 65
66 // Called when a request is received to dim or undim the screen in software 66 // Called when a request is received to dim or undim the screen in software
67 // (as opposed to the more-common method of adjusting the backlight). 67 // (as opposed to the more-common method of adjusting the backlight).
68 virtual void ScreenDimmingRequested(ScreenDimmingState state) {} 68 virtual void ScreenDimmingRequested(ScreenDimmingState state) {}
69 69
70 // Called when the system is about to suspend. Suspend is deferred until
71 // all observers' implementations of this method have finished running.
72 virtual void SuspendImminent() {}
73
70 // Called when the power button is pressed or released. 74 // Called when the power button is pressed or released.
71 // Note: Implement both this method and 75 // Note: Implement both this method and
72 // RootPowerManagerObserver::OnPowerButtonEvent() until this has been moved 76 // RootPowerManagerObserver::OnPowerButtonEvent() until this has been moved
73 // to powerd: http://crosbug.com/36804 77 // to powerd: http://crosbug.com/36804
74 virtual void PowerButtonEventReceived(bool down, 78 virtual void PowerButtonEventReceived(bool down,
75 const base::TimeTicks& timestamp) {} 79 const base::TimeTicks& timestamp) {}
76 80
77 // Called when the device's lid is opened or closed. 81 // Called when the device's lid is opened or closed.
78 // Note: Implement both this method and 82 // Note: Implement both this method and
79 // RootPowerManagerObserver::OnLidEvent() until this has been moved 83 // RootPowerManagerObserver::OnLidEvent() until this has been moved
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
194 // Create() should be used instead. 198 // Create() should be used instead.
195 PowerManagerClient(); 199 PowerManagerClient();
196 200
197 private: 201 private:
198 DISALLOW_COPY_AND_ASSIGN(PowerManagerClient); 202 DISALLOW_COPY_AND_ASSIGN(PowerManagerClient);
199 }; 203 };
200 204
201 } // namespace chromeos 205 } // namespace chromeos
202 206
203 #endif // CHROMEOS_DBUS_POWER_MANAGER_CLIENT_H_ 207 #endif // CHROMEOS_DBUS_POWER_MANAGER_CLIENT_H_
OLDNEW
« no previous file with comments | « chrome/chrome_browser_chromeos.gypi ('k') | chromeos/dbus/power_manager_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698