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

Unified Diff: ash/magnifier/partial_magnification_controller.cc

Issue 184903003: Window ownership -> WindowTreeHost (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 6 years, 10 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/magnifier/magnification_controller_unittest.cc ('k') | ash/root_window_controller.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/magnifier/partial_magnification_controller.cc
diff --git a/ash/magnifier/partial_magnification_controller.cc b/ash/magnifier/partial_magnification_controller.cc
index 681e4438b8696259b8879483c34512e4fa5f10ca..4bc16b0d3b30d15442ec2c9eba1cd3e0def22b60 100644
--- a/ash/magnifier/partial_magnification_controller.cc
+++ b/ash/magnifier/partial_magnification_controller.cc
@@ -137,7 +137,8 @@ void PartialMagnificationController::CreateMagnifierWindow() {
root_window->AddObserver(this);
- gfx::Point mouse(root_window->GetDispatcher()->GetLastMouseLocationInRoot());
+ gfx::Point mouse(
+ root_window->GetHost()->dispatcher()->GetLastMouseLocationInRoot());
zoom_widget_ = new views::Widget;
views::Widget::InitParams params(
@@ -202,7 +203,7 @@ aura::Window* PartialMagnificationController::GetCurrentRootWindow() {
iter != root_windows.end(); ++iter) {
aura::Window* root_window = *iter;
if (root_window->ContainsPointInRoot(
- root_window->GetDispatcher()->GetLastMouseLocationInRoot()))
+ root_window->GetHost()->dispatcher()->GetLastMouseLocationInRoot()))
return root_window;
}
return NULL;
« no previous file with comments | « ash/magnifier/magnification_controller_unittest.cc ('k') | ash/root_window_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698