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

Unified Diff: ui/display/chromeos/display_configurator.h

Issue 1949753004: Revert of chromeos: Turn off displays on suspend (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Revert PS that actually landed: PS#11, not PS#12 Created 4 years, 7 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 | « no previous file | ui/display/chromeos/display_configurator.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/display/chromeos/display_configurator.h
diff --git a/ui/display/chromeos/display_configurator.h b/ui/display/chromeos/display_configurator.h
index f97392f35e87488a37daf04cbc46f9512a2761fa..aba0fa67a43170e8875471a608cc9ffa00ee81f2 100644
--- a/ui/display/chromeos/display_configurator.h
+++ b/ui/display/chromeos/display_configurator.h
@@ -300,15 +300,13 @@ class DISPLAY_EXPORT DisplayConfigurator : public NativeDisplayObserver {
typedef std::map<ContentProtectionClientId, ContentProtections>
ProtectionRequests;
- // Updates |pending_*| members and applies the passed-in state. |callback| is
- // invoked (perhaps synchronously) on completion.
- void SetDisplayPowerInternal(chromeos::DisplayPowerState power_state,
- int flags,
- const ConfigurationCallback& callback);
-
// Configures displays. Invoked by |configure_timer_|.
void ConfigureDisplays();
+ // Restores |requested_power_state_| after the system has resumed,
+ // additionally forcing a probe. Invoked by |configure_timer_|.
+ void RestoreRequestedPowerStateAfterResume();
+
// Notifies observers about an attempted state change.
void NotifyDisplayStateObservers(bool success,
MultipleDisplayState attempted_state);
@@ -396,15 +394,11 @@ class DISPLAY_EXPORT DisplayConfigurator : public NativeDisplayObserver {
// Stores the requested power state.
chromeos::DisplayPowerState requested_power_state_;
- // The power state used by RunPendingConfiguration(). May be
- // |requested_power_state_| or DISPLAY_POWER_ALL_OFF for suspend.
- chromeos::DisplayPowerState pending_power_state_;
-
- // True if |pending_power_state_| has been changed.
- bool has_pending_power_state_;
+ // True if |requested_power_state_| has been changed due to a user request.
+ bool requested_power_state_change_;
// Bitwise-or value of the |kSetDisplayPower*| flags defined above.
- int pending_power_flags_;
+ int requested_power_flags_;
// List of callbacks from callers waiting for the display configuration to
// start/finish. Note these callbacks belong to the pending request, not a
« no previous file with comments | « no previous file | ui/display/chromeos/display_configurator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698