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

Unified Diff: ash/aura/wm_lookup_aura.cc

Issue 2620913003: Removes WmRootWindowController subclasses (Closed)
Patch Set: spelling Created 3 years, 11 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/ash_touch_exploration_manager_chromeos.cc ('k') | ash/aura/wm_root_window_controller_aura.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/aura/wm_lookup_aura.cc
diff --git a/ash/aura/wm_lookup_aura.cc b/ash/aura/wm_lookup_aura.cc
index b06822721e46eb73c3481168e183bf4450f524db..927723569087662bd490e587ff3c1ff39e13588b 100644
--- a/ash/aura/wm_lookup_aura.cc
+++ b/ash/aura/wm_lookup_aura.cc
@@ -4,11 +4,12 @@
#include "ash/aura/wm_lookup_aura.h"
-#include "ash/aura/wm_root_window_controller_aura.h"
#include "ash/aura/wm_window_aura.h"
#include "ash/common/wm_layout_manager.h"
#include "ash/display/window_tree_host_manager.h"
+#include "ash/root_window_controller.h"
#include "ash/shell.h"
+#include "ui/views/widget/widget.h"
namespace ash {
@@ -22,9 +23,13 @@ WmLookupAura::~WmLookupAura() {
WmRootWindowController* WmLookupAura::GetRootWindowControllerWithDisplayId(
int64_t id) {
- return WmRootWindowControllerAura::Get(Shell::GetInstance()
- ->window_tree_host_manager()
- ->GetRootWindowForDisplayId(id));
+ aura::Window* root_window = Shell::GetInstance()
+ ->window_tree_host_manager()
+ ->GetRootWindowForDisplayId(id);
+ return root_window
+ ? RootWindowController::ForWindow(root_window)
+ ->wm_root_window_controller()
+ : nullptr;
}
WmWindow* WmLookupAura::GetWindowForWidget(views::Widget* widget) {
« no previous file with comments | « ash/ash_touch_exploration_manager_chromeos.cc ('k') | ash/aura/wm_root_window_controller_aura.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698