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

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

Issue 12260029: chromeos: Don't override suspend-on-lid-closed. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: update comment Created 7 years, 10 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | 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 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 enum UpdateRequestType { 98 enum UpdateRequestType {
99 UPDATE_INITIAL, // Initial update request. 99 UPDATE_INITIAL, // Initial update request.
100 UPDATE_USER, // User initialted update request. 100 UPDATE_USER, // User initialted update request.
101 UPDATE_POLL // Update requested by poll signal. 101 UPDATE_POLL // Update requested by poll signal.
102 }; 102 };
103 103
104 enum PowerStateOverrideType { 104 enum PowerStateOverrideType {
105 DISABLE_IDLE_DIM = 1 << 0, // Disable screen dimming on idle. 105 DISABLE_IDLE_DIM = 1 << 0, // Disable screen dimming on idle.
106 DISABLE_IDLE_BLANK = 1 << 1, // Disable screen blanking on idle. 106 DISABLE_IDLE_BLANK = 1 << 1, // Disable screen blanking on idle.
107 DISABLE_IDLE_SUSPEND = 1 << 2, // Disable suspend on idle. 107 DISABLE_IDLE_SUSPEND = 1 << 2, // Disable suspend on idle.
108 DISABLE_IDLE_LID_SUSPEND = 1 << 3, // Disable suspend on lid closed. 108 DISABLE_LID_SUSPEND = 1 << 3, // Disable suspend on lid closed.
109 }; 109 };
110 110
111 // Adds and removes the observer. 111 // Adds and removes the observer.
112 virtual void AddObserver(Observer* observer) = 0; 112 virtual void AddObserver(Observer* observer) = 0;
113 virtual void RemoveObserver(Observer* observer) = 0; 113 virtual void RemoveObserver(Observer* observer) = 0;
114 virtual bool HasObserver(Observer* observer) = 0; 114 virtual bool HasObserver(Observer* observer) = 0;
115 115
116 // Decreases the screen brightness. |allow_off| controls whether or not 116 // Decreases the screen brightness. |allow_off| controls whether or not
117 // it's allowed to turn off the back light. 117 // it's allowed to turn off the back light.
118 virtual void DecreaseScreenBrightness(bool allow_off) = 0; 118 virtual void DecreaseScreenBrightness(bool allow_off) = 0;
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
209 // Create() should be used instead. 209 // Create() should be used instead.
210 PowerManagerClient(); 210 PowerManagerClient();
211 211
212 private: 212 private:
213 DISALLOW_COPY_AND_ASSIGN(PowerManagerClient); 213 DISALLOW_COPY_AND_ASSIGN(PowerManagerClient);
214 }; 214 };
215 215
216 } // namespace chromeos 216 } // namespace chromeos
217 217
218 #endif // CHROMEOS_DBUS_POWER_MANAGER_CLIENT_H_ 218 #endif // CHROMEOS_DBUS_POWER_MANAGER_CLIENT_H_
OLDNEW
« no previous file with comments | « no previous file | chromeos/dbus/power_manager_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698