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

Unified Diff: ash/wm/common/workspace/workspace_window_resizer.cc

Issue 1943603002: Makes ash/wm/common a library (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: merge again Created 4 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/wm/common/workspace/workspace_window_resizer.h ('k') | ash/wm/drag_window_resizer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/wm/common/workspace/workspace_window_resizer.cc
diff --git a/ash/wm/common/workspace/workspace_window_resizer.cc b/ash/wm/common/workspace/workspace_window_resizer.cc
index 1797b64dddeac99c5ae23cf28d33b26d958c8366..91bcec985c487b0b96327726a2b5234b8ea385d7 100644
--- a/ash/wm/common/workspace/workspace_window_resizer.cc
+++ b/ash/wm/common/workspace/workspace_window_resizer.cc
@@ -17,6 +17,7 @@
#include "ash/wm/common/window_state.h"
#include "ash/wm/common/wm_event.h"
#include "ash/wm/common/wm_globals.h"
+#include "ash/wm/common/wm_lookup.h"
#include "ash/wm/common/wm_root_window_controller.h"
#include "ash/wm/common/wm_screen_util.h"
#include "ash/wm/common/wm_shell_window_ids.h"
@@ -362,8 +363,9 @@ void WorkspaceWindowResizer::Drag(const gfx::Point& location_in_parent,
// Track the last screen that the pointer was on to keep the snap phantom
// window there.
if (display.bounds().Contains(location_in_screen)) {
- root =
- wm::WmRootWindowController::GetWithDisplayId(display.id())->GetWindow();
+ root = wm::WmLookup::Get()
+ ->GetRootWindowControllerWithDisplayId(display.id())
+ ->GetWindow();
}
if (!attached_windows_.empty())
LayoutAttachedWindows(&bounds);
« no previous file with comments | « ash/wm/common/workspace/workspace_window_resizer.h ('k') | ash/wm/drag_window_resizer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698