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

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

Issue 1861593002: chromeos: Turn off displays on suspend (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: chromeos: Turn off displays on suspend Created 4 years, 8 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
Index: ui/display/chromeos/display_configurator.h
diff --git a/ui/display/chromeos/display_configurator.h b/ui/display/chromeos/display_configurator.h
index 7a2449f3e56de61715d54f490333e072d18fe8d6..07e391dd62345e0f41ba43820f4656327b5f8c22 100644
--- a/ui/display/chromeos/display_configurator.h
+++ b/ui/display/chromeos/display_configurator.h
@@ -396,6 +396,9 @@ class DISPLAY_EXPORT DisplayConfigurator : public NativeDisplayObserver {
// Stores the requested power state.
chromeos::DisplayPowerState requested_power_state_;
+ // The display power state before suspend.
+ chromeos::DisplayPowerState saved_power_state_;
Daniel Erat 2016/04/08 20:26:51 here's a possibly-naive question: why is this need
dbasehore 2016/04/08 20:38:11 This is to handle the display state changing out f
Daniel Erat 2016/04/08 20:42:11 yeah, that's the idea. then we don't need to track
+
// True if |requested_power_state_| has been changed due to a user request.
bool requested_power_state_change_;
« no previous file with comments | « no previous file | ui/display/chromeos/display_configurator.cc » ('j') | ui/display/chromeos/display_configurator.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698