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

Unified Diff: chromeos/dbus/power_manager_client.h

Issue 12775019: chromeos: Remove PowerStateOverride. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: more feedback Created 7 years, 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chromeos/dbus/mock_power_manager_client.h ('k') | chromeos/dbus/power_manager_client.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromeos/dbus/power_manager_client.h
diff --git a/chromeos/dbus/power_manager_client.h b/chromeos/dbus/power_manager_client.h
index f05a2c8e8f2c28695c70431dd64e9a4ccec274aa..7721c5b2b2ddc72aab13965f119c4f1212037ccc 100644
--- a/chromeos/dbus/power_manager_client.h
+++ b/chromeos/dbus/power_manager_client.h
@@ -26,7 +26,6 @@ class PowerManagementPolicy;
namespace chromeos {
typedef base::Callback<void(void)> IdleNotificationCallback;
-typedef base::Callback<void(uint32)> PowerStateRequestIdCallback;
// Callback used for getting the current screen brightness. The param is in the
// range [0.0, 100.0].
@@ -106,13 +105,6 @@ class CHROMEOS_EXPORT PowerManagerClient {
UPDATE_POLL // Update requested by poll signal.
};
- enum PowerStateOverrideType {
- DISABLE_IDLE_DIM = 1 << 0, // Disable screen dimming on idle.
- DISABLE_IDLE_BLANK = 1 << 1, // Disable screen blanking on idle.
- DISABLE_IDLE_SUSPEND = 1 << 2, // Disable suspend on idle.
- DISABLE_LID_SUSPEND = 1 << 3, // Disable suspend on lid closed.
- };
-
// Adds and removes the observer.
virtual void AddObserver(Observer* observer) = 0;
virtual void RemoveObserver(Observer* observer) = 0;
@@ -173,23 +165,6 @@ class CHROMEOS_EXPORT PowerManagerClient {
virtual void SetPolicy(
const power_manager::PowerManagementPolicy& policy) = 0;
- // Override the current power state on the machine. The overrides will be
- // applied to the request ID specified. To specify a new request; use 0 as the
- // request id and the method will call the provided callback with the new
- // request ID for use with further calls. |duration| will be rounded down to
- // the nearest second. The overrides parameter will & out the
- // PowerStateOverrideType types to allow specific selection of overrides. For
- // example, to override just dim and suspending but leaving blanking in, set
- // overrides to, DISABLE_IDLE_DIM | DISABLE_IDLE_SUSPEND.
- virtual void RequestPowerStateOverrides(
- uint32 request_id,
- base::TimeDelta duration,
- int overrides,
- const PowerStateRequestIdCallback& callback) = 0;
-
- // Cancels the power state override request specified by request_id.
- virtual void CancelPowerStateOverrides(uint32 request_id) = 0;
-
// Tells powerd whether or not we are in a projecting mode. This is used to
// adjust idleness thresholds and derived, on this side, from the number of
// video outputs attached.
« no previous file with comments | « chromeos/dbus/mock_power_manager_client.h ('k') | chromeos/dbus/power_manager_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698