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

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

Issue 1861593002: chromeos: Turn off displays on suspend (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: chromeos: Add functions for configuring cached displays 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/update_display_configuration_task.h
diff --git a/ui/display/chromeos/update_display_configuration_task.h b/ui/display/chromeos/update_display_configuration_task.h
index e92faf5d7ff152f94881beff323336c079266b06..b62385c3dc0d1595dd36bf122792b550b2a24dcb 100644
--- a/ui/display/chromeos/update_display_configuration_task.h
+++ b/ui/display/chromeos/update_display_configuration_task.h
@@ -35,6 +35,7 @@ class DISPLAY_EXPORT UpdateDisplayConfigurationTask {
int power_flags,
uint32_t background_color_argb,
bool force_configure,
+ bool configure_cached_displays,
const ResponseCallback& callback);
~UpdateDisplayConfigurationTask();
@@ -47,6 +48,7 @@ class DISPLAY_EXPORT UpdateDisplayConfigurationTask {
void Run();
private:
+ void OnCachedDisplaysRetrieved(const std::vector<DisplaySnapshot*>& displays);
// Callback to NativeDisplayDelegate::GetDisplays().
void OnDisplaysUpdated(const std::vector<DisplaySnapshot*>& displays);
@@ -93,6 +95,8 @@ class DISPLAY_EXPORT UpdateDisplayConfigurationTask {
bool force_configure_;
+ bool configure_cached_displays_;
+
// Used to signal that the task has finished.
ResponseCallback callback_;
« no previous file with comments | « ui/display/chromeos/test/test_native_display_delegate.cc ('k') | ui/display/chromeos/update_display_configuration_task.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698