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

Unified Diff: ash/wm/window_util.cc

Issue 2613863005: Removes/promotes functions from WmWindowMus to WmWindowAura (Closed)
Patch Set: window_ part2 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/mus/bridge/wm_window_mus.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/wm/window_util.cc
diff --git a/ash/wm/window_util.cc b/ash/wm/window_util.cc
index 38d7e32e2f19481bca4765b52f875b9e86e1c627..6700bf09a08380d064fad71141bec9fcc3033e56 100644
--- a/ash/wm/window_util.cc
+++ b/ash/wm/window_util.cc
@@ -11,6 +11,7 @@
#include "ash/common/wm/window_state.h"
#include "ash/common/wm/wm_event.h"
#include "ash/common/wm/wm_screen_util.h"
+#include "ash/common/wm_root_window_controller.h"
#include "ash/common/wm_window.h"
#include "ash/shell.h"
#include "ash/wm/window_properties.h"
@@ -73,10 +74,11 @@ bool MoveWindowToEventRoot(aura::Window* window, const ui::Event& event) {
target->GetWidget()->GetNativeView()->GetRootWindow();
if (!target_root || target_root == window->GetRootWindow())
return false;
- aura::Window* window_container =
- ash::Shell::GetContainer(target_root, window->parent()->id());
+ WmWindow* window_container = WmWindowAura::Get(target_root)
+ ->GetRootWindowController()
+ ->GetContainer(window->parent()->id());
// Move the window to the target launcher.
- window_container->AddChild(window);
+ window_container->AddChild(WmWindowAura::Get(window));
return true;
}
« no previous file with comments | « ash/mus/bridge/wm_window_mus.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698