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

Unified Diff: services/ui/ws/display.cc

Issue 2369793002: WIP: Propagate SurfaceID up window tree hierarchy
Patch Set: Fix input events: EventDispatcher ignores container windows Created 4 years, 3 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 | « services/ui/ws/display.h ('k') | services/ui/ws/display_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/ui/ws/display.cc
diff --git a/services/ui/ws/display.cc b/services/ui/ws/display.cc
index 42807955e82786a5f8674f19d483439130bd9d34..25c7cdfd2508cf6dc86a9261699ac22d9a87eedc 100644
--- a/services/ui/ws/display.cc
+++ b/services/ui/ws/display.cc
@@ -285,6 +285,13 @@ void Display::CreateWindowManagerDisplayRootFromFactory(
std::move(display_root_ptr));
}
+ServerWindow* Display::GetActiveRootWindow() {
+ WindowManagerDisplayRoot* display_root = GetActiveWindowManagerDisplayRoot();
+ if (display_root)
+ return display_root->root();
+ return nullptr;
+}
+
ServerWindow* Display::GetRootWindow() {
return root_.get();
}
« no previous file with comments | « services/ui/ws/display.h ('k') | services/ui/ws/display_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698