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

Unified Diff: ash/display/screen_position_controller.cc

Issue 2194353002: mash: Migrate ScopedTargetRootWindow to //ash/common (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: non-virtual Created 4 years, 4 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/common/wm_shell.cc ('k') | ash/drag_drop/drag_drop_tracker_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/display/screen_position_controller.cc
diff --git a/ash/display/screen_position_controller.cc b/ash/display/screen_position_controller.cc
index afd27a24d88f9c17dcada0db3c7822f400f93200..3c9d78a797dd3565c5c72c1d84ea28839cbcd250 100644
--- a/ash/display/screen_position_controller.cc
+++ b/ash/display/screen_position_controller.cc
@@ -4,8 +4,11 @@
#include "ash/display/screen_position_controller.h"
+#include "ash/aura/wm_window_aura.h"
#include "ash/common/shell_window_ids.h"
#include "ash/common/wm/window_state.h"
+#include "ash/common/wm_shell.h"
+#include "ash/common/wm_window.h"
#include "ash/display/window_tree_host_manager.h"
#include "ash/root_window_controller.h"
#include "ash/shell.h"
@@ -212,8 +215,8 @@ void ScreenPositionController::SetBounds(aura::Window* window,
if (tracker.Contains(focused)) {
aura::client::GetFocusClient(window)->FocusWindow(focused);
// TODO(beng): replace with GetRootWindow().
- ash::Shell::GetInstance()->set_target_root_window(
- focused->GetRootWindow());
+ WmShell::Get()->set_root_window_for_new_windows(
+ WmWindowAura::Get(focused->GetRootWindow()));
} else if (tracker.Contains(active)) {
activation_client->ActivateWindow(active);
}
« no previous file with comments | « ash/common/wm_shell.cc ('k') | ash/drag_drop/drag_drop_tracker_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698