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

Unified Diff: ui/display/chromeos/x11/native_display_delegate_x11.cc

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
« no previous file with comments | « ui/display/chromeos/x11/native_display_delegate_x11.h ('k') | ui/display/types/native_display_delegate.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/display/chromeos/x11/native_display_delegate_x11.cc
diff --git a/ui/display/chromeos/x11/native_display_delegate_x11.cc b/ui/display/chromeos/x11/native_display_delegate_x11.cc
index f0d7f01f3de586559576e33f2a390b3e3ae6d908..ac29bcdc8186f5d26109f67eb61ab74d4f053605 100644
--- a/ui/display/chromeos/x11/native_display_delegate_x11.cc
+++ b/ui/display/chromeos/x11/native_display_delegate_x11.cc
@@ -169,6 +169,11 @@ void NativeDisplayDelegateX11::ForceDPMSOn() {
CHECK(DPMSForceLevel(display_, DPMSModeOn));
}
+void NativeDisplayDelegateX11::GetCachedDisplays(
+ const GetDisplaysCallback& callback) {
+ callback.Run(cached_outputs_.get());
+}
+
void NativeDisplayDelegateX11::GetDisplays(
const GetDisplaysCallback& callback) {
CHECK(screen_) << "Server not grabbed";
« no previous file with comments | « ui/display/chromeos/x11/native_display_delegate_x11.h ('k') | ui/display/types/native_display_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698