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

Unified Diff: ash/common/wm/panels/panel_window_resizer.cc

Issue 2737213002: Update window_parenting_utils to use aura::window (Closed)
Patch Set: fix Created 3 years, 9 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/common/wm/panels/panel_window_resizer.cc
diff --git a/ash/common/wm/panels/panel_window_resizer.cc b/ash/common/wm/panels/panel_window_resizer.cc
index e4047eb820d7317f22054b03e115e2489872cb6f..4ab5367f78f2fa45128f670455aa38935a7cf427 100644
--- a/ash/common/wm/panels/panel_window_resizer.cc
+++ b/ash/common/wm/panels/panel_window_resizer.cc
@@ -164,8 +164,9 @@ void PanelWindowResizer::StartedDragging() {
WmWindow* old_parent = target->GetParent();
target->SetParentUsingContext(target_root,
target_root->GetBoundsInScreen());
- wm::ReparentTransientChildrenOfChild(target, old_parent,
- target->GetParent());
+ wm::ReparentTransientChildrenOfChild(target->aura_window(),
+ old_parent->aura_window(),
+ target->GetParent()->aura_window());
}
}
@@ -183,8 +184,9 @@ void PanelWindowResizer::FinishDragging() {
WmWindow* old_parent = target->GetParent();
target->SetParentUsingContext(target_root,
gfx::Rect(last_location_, gfx::Size()));
- wm::ReparentTransientChildrenOfChild(target, old_parent,
- target->GetParent());
+ wm::ReparentTransientChildrenOfChild(target->aura_window(),
+ old_parent->aura_window(),
+ target->GetParent()->aura_window());
}
// If we started the drag in one root window and moved into another root

Powered by Google App Engine
This is Rietveld 408576698