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

Unified Diff: ash/shell.cc

Issue 2726823003: Remove WmLookup. (Closed)
Patch Set: Clean up and rebase. Created 3 years, 10 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: ash/shell.cc
diff --git a/ash/shell.cc b/ash/shell.cc
index 213fa9bec5043968a251d9cce96b0cab17d47220..90c62c0b85af397d0abb5a33da500ac9527fdbff 100644
--- a/ash/shell.cc
+++ b/ash/shell.cc
@@ -229,6 +229,15 @@ Shell::RootWindowControllerList Shell::GetAllRootWindowControllers() {
}
// static
+RootWindowController* Shell::GetRootWindowControllerWithDisplayId(
+ int64_t display_id) {
+ CHECK(HasInstance());
+ WmWindow* root_window =
+ instance_->wm_shell_->GetRootWindowForDisplayId(display_id);
+ return root_window ? root_window->GetRootWindowController() : nullptr;
+}
+
+// static
aura::Window* Shell::GetPrimaryRootWindow() {
CHECK(HasInstance());
return instance_->wm_shell_->GetPrimaryRootWindow()->aura_window();

Powered by Google App Engine
This is Rietveld 408576698