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

Unified Diff: ash/mus/window_manager.cc

Issue 2905893002: chromeos: convert more ash/wm code to aura::Window (Closed)
Patch Set: moar cleanup Created 3 years, 7 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/mus/window_manager.cc
diff --git a/ash/mus/window_manager.cc b/ash/mus/window_manager.cc
index dbda2e19a80e7a8daf29e4baa0182fea7cf9da1d..b9ea19ffd9acbc2c53ecfacc424a3850b8998d45 100644
--- a/ash/mus/window_manager.cc
+++ b/ash/mus/window_manager.cc
@@ -526,8 +526,7 @@ void WindowManager::OnWmPerformMoveLoop(
ui::mojom::MoveLoopSource source,
const gfx::Point& cursor_location,
const base::Callback<void(bool)>& on_done) {
- WmWindow* child_window = WmWindow::Get(window);
- MoveEventHandler* handler = MoveEventHandler::GetForWindow(child_window);
+ MoveEventHandler* handler = MoveEventHandler::GetForWindow(window);
if (!handler) {
on_done.Run(false);
return;
@@ -542,8 +541,7 @@ void WindowManager::OnWmPerformMoveLoop(
}
void WindowManager::OnWmCancelMoveLoop(aura::Window* window) {
- WmWindow* child_window = WmWindow::Get(window);
- MoveEventHandler* handler = MoveEventHandler::GetForWindow(child_window);
+ MoveEventHandler* handler = MoveEventHandler::GetForWindow(window);
if (handler)
handler->RevertDrag();
}

Powered by Google App Engine
This is Rietveld 408576698