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

Unified Diff: ash/magnifier/partial_magnification_controller.cc

Issue 64933002: Eliminate Shell::RootWindowList in favor of aura::Window::Windows. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 7 years, 1 month 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/magnifier/partial_magnification_controller.cc
diff --git a/ash/magnifier/partial_magnification_controller.cc b/ash/magnifier/partial_magnification_controller.cc
index 3e762b7b2d01392d7f4b536c4664cef04e0c7bff..a24ba51d4e95e50b7489dda343f12007af598da8 100644
--- a/ash/magnifier/partial_magnification_controller.cc
+++ b/ash/magnifier/partial_magnification_controller.cc
@@ -99,7 +99,7 @@ void PartialMagnificationController::OnWindowDestroying(
aura::Window* window) {
CloseMagnifierWindow();
- aura::RootWindow* new_root_window = GetCurrentRootWindow();
+ aura::Window* new_root_window = GetCurrentRootWindow();
if (new_root_window != window)
SwitchTargetRootWindow(new_root_window);
}
@@ -131,13 +131,13 @@ void PartialMagnificationController::CreateMagnifierWindow() {
if (zoom_widget_)
return;
- aura::RootWindow* root_window = GetCurrentRootWindow();
+ aura::Window* root_window = GetCurrentRootWindow();
if (!root_window)
return;
root_window->AddObserver(this);
- gfx::Point mouse(root_window->GetLastMouseLocationInRoot());
+ gfx::Point mouse(root_window->GetDispatcher()->GetLastMouseLocationInRoot());
zoom_widget_ = new views::Widget;
views::Widget::InitParams params(
@@ -196,13 +196,13 @@ void PartialMagnificationController::SwitchTargetRootWindow(
SetScale(GetScale());
}
-aura::RootWindow* PartialMagnificationController::GetCurrentRootWindow() {
- Shell::RootWindowList root_windows = Shell::GetAllRootWindows();
- for (Shell::RootWindowList::const_iterator iter = root_windows.begin();
+aura::Window* PartialMagnificationController::GetCurrentRootWindow() {
+ aura::Window::Windows root_windows = Shell::GetAllRootWindows();
+ for (aura::Window::Windows::const_iterator iter = root_windows.begin();
iter != root_windows.end(); ++iter) {
- aura::RootWindow* root_window = *iter;
+ aura::Window* root_window = *iter;
if (root_window->ContainsPointInRoot(
- root_window->GetLastMouseLocationInRoot()))
+ root_window->GetDispatcher()->GetLastMouseLocationInRoot()))
return root_window;
}
return NULL;

Powered by Google App Engine
This is Rietveld 408576698