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

Unified Diff: ui/display/types/native_display_delegate.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/types/native_display_delegate.h
diff --git a/ui/display/types/native_display_delegate.h b/ui/display/types/native_display_delegate.h
index b17be8f1cffda92a19ad1e77a6591bd75486a8dc..7acf8ad65178541c40c88341484d9d9ad09e1a9a 100644
--- a/ui/display/types/native_display_delegate.h
+++ b/ui/display/types/native_display_delegate.h
@@ -68,6 +68,11 @@ class DISPLAY_TYPES_EXPORT NativeDisplayDelegate {
// Enables DPMS and forces it to the "on" state.
virtual void ForceDPMSOn() = 0;
+ // Queries for a list of cached displays and returns them via |callback|.
+ // Note that the list of displays may be outdated, so this should not be
+ // solely relied upon for correctness.
+ virtual void GetCachedDisplays(const GetDisplaysCallback& callback) = 0;
+
// Queries for a list of fresh displays and returns them via |callback|.
// Note the query operation may be expensive and take over 60 milliseconds.
virtual void GetDisplays(const GetDisplaysCallback& callback) = 0;
« no previous file with comments | « ui/display/chromeos/x11/native_display_delegate_x11.cc ('k') | ui/ozone/common/native_display_delegate_ozone.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698