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

Unified Diff: ash/mus/window_manager.cc

Issue 2826453003: Makes functions in container_finder take aura::Window (Closed)
Patch Set: cleanup Created 3 years, 8 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/top_level_window_factory.cc ('k') | ash/root_window_controller.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/mus/window_manager.cc
diff --git a/ash/mus/window_manager.cc b/ash/mus/window_manager.cc
index a8e3e2d5b40144a239836992ba0fb2c5a04f98eb..003dc5d0585b1958cb0c44923f70ff5c528a1093 100644
--- a/ash/mus/window_manager.cc
+++ b/ash/mus/window_manager.cc
@@ -356,12 +356,11 @@ void WindowManager::OnWmSetModalType(aura::Window* window, ui::ModalType type) {
if (type != ui::MODAL_TYPE_SYSTEM && old_type != ui::MODAL_TYPE_SYSTEM)
return;
- WmWindow* new_parent =
- wm::GetDefaultParent(WmWindow::Get(window), window->bounds());
+ aura::Window* new_parent = wm::GetDefaultParent(window, window->bounds());
DCHECK(new_parent);
if (window->parent())
window->parent()->RemoveChild(window);
- new_parent->aura_window()->AddChild(window);
+ new_parent->AddChild(window);
}
void WindowManager::OnWmSetCanFocus(aura::Window* window, bool can_focus) {
« no previous file with comments | « ash/mus/top_level_window_factory.cc ('k') | ash/root_window_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698