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

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

Issue 788423002: Add display task to trigger display configuration (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@async-refactor3
Patch Set: Remove include in favour of forward declare Created 6 years 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/display.gyp » ('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 525fcc96a5f5353eb57bb3b74bc88670d047db33..fd0402cd4fffcc6c9938292d8e2352850bf1d6c7 100644
--- a/ui/display/chromeos/x11/native_display_delegate_x11.cc
+++ b/ui/display/chromeos/x11/native_display_delegate_x11.cc
@@ -192,6 +192,11 @@ std::vector<DisplaySnapshot*> NativeDisplayDelegateX11::GetDisplays() {
return cached_outputs_.get();
}
+void NativeDisplayDelegateX11::GetDisplays(
+ const GetDisplaysCallback& callback) {
+ callback.Run(GetDisplays());
+}
+
void NativeDisplayDelegateX11::AddMode(const DisplaySnapshot& output,
const DisplayMode* mode) {
CHECK(screen_) << "Server not grabbed";
« no previous file with comments | « ui/display/chromeos/x11/native_display_delegate_x11.h ('k') | ui/display/display.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698