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

Unified Diff: ash/shell.cc

Issue 2726823003: Remove WmLookup. (Closed)
Patch Set: Clean up include and modify comment. 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
« no previous file with comments | « ash/shell.h ('k') | ash/system/web_notification/ash_popup_alignment_delegate_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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();
« no previous file with comments | « ash/shell.h ('k') | ash/system/web_notification/ash_popup_alignment_delegate_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698