OLD | NEW |
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 Loading... |
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 Loading... |
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_ |
OLD | NEW |