Index: ash/magnifier/magnification_controller.cc |
diff --git a/ash/magnifier/magnification_controller.cc b/ash/magnifier/magnification_controller.cc |
index c6a6a523dad2514fa3187b1d738a5709fe2e3bc4..0df6e1287f0de79f2205ebf9c8c810883dc0cc61 100644 |
--- a/ash/magnifier/magnification_controller.cc |
+++ b/ash/magnifier/magnification_controller.cc |
@@ -127,7 +127,7 @@ class MagnificationControllerImpl : virtual public MagnificationController, |
// - Unzoom the current root_window. |
// - Zoom the given new root_window |new_root_window|. |
// - Switch the target window from current window to |new_root_window|. |
- void SwitchTargetRootWindow(aura::RootWindow* new_root_window, |
+ void SwitchTargetRootWindow(aura::Window* new_root_window, |
bool redraw_original_root_window); |
// Returns if the magnification scale is 1.0 or not (larger then 1.0). |
@@ -147,7 +147,7 @@ class MagnificationControllerImpl : virtual public MagnificationController, |
virtual void OnTouchEvent(ui::TouchEvent* event) OVERRIDE; |
// Target root window. This must not be NULL. |
- aura::RootWindow* root_window_; |
+ aura::Window* root_window_; |
// True if the magnified window is currently animating a change. Otherwise, |
// false. |
@@ -273,7 +273,7 @@ bool MagnificationControllerImpl::RedrawDIP(const gfx::PointF& position_in_dip, |
Shell::GetScreen()->GetDisplayNearestWindow(root_window_); |
scoped_ptr<aura::RootWindowTransformer> transformer( |
internal::CreateRootWindowTransformerForDisplay(root_window_, display)); |
- root_window_->SetRootWindowTransformer(transformer.Pass()); |
+ root_window_->GetDispatcher()->SetRootWindowTransformer(transformer.Pass()); |
if (animate) |
is_on_animation_ = true; |
@@ -380,7 +380,7 @@ void MagnificationControllerImpl::OnMouseMove(const gfx::Point& location) { |
if (ret) { |
// If the magnified region is moved, hides the mouse cursor and moves it. |
if (x_diff != 0 || y_diff != 0) |
- MoveCursorTo(root_window_, mouse); |
+ MoveCursorTo(root_window_->GetDispatcher(), mouse); |
} |
} |
} |
@@ -437,7 +437,7 @@ void MagnificationControllerImpl::OnImplicitAnimationsCompleted() { |
return; |
if (move_cursor_after_animation_) { |
- MoveCursorTo(root_window_, position_after_animation_); |
+ MoveCursorTo(root_window_->GetDispatcher(), position_after_animation_); |
move_cursor_after_animation_ = false; |
aura::client::CursorClient* cursor_client = |
@@ -456,7 +456,7 @@ void MagnificationControllerImpl::OnWindowDestroying( |
// destroyed before the root windows get destroyed. |
DCHECK(root_window); |
- aura::RootWindow* target_root_window = Shell::GetTargetRootWindow(); |
+ aura::Window* target_root_window = Shell::GetTargetRootWindow(); |
CHECK(target_root_window); |
// The destroyed root window must not be target. |
@@ -475,7 +475,7 @@ void MagnificationControllerImpl::OnWindowBoundsChanged( |
} |
void MagnificationControllerImpl::SwitchTargetRootWindow( |
- aura::RootWindow* new_root_window, |
+ aura::Window* new_root_window, |
bool redraw_original_root_window) { |
DCHECK(new_root_window); |
@@ -577,7 +577,7 @@ bool MagnificationControllerImpl::IsEnabled() const { |
void MagnificationControllerImpl::OnMouseEvent(ui::MouseEvent* event) { |
aura::Window* target = static_cast<aura::Window*>(event->target()); |
- aura::RootWindow* current_root = target->GetRootWindow(); |
+ aura::Window* current_root = target->GetRootWindow(); |
gfx::Rect root_bounds = current_root->bounds(); |
if (root_bounds.Contains(event->root_location())) { |
@@ -615,7 +615,7 @@ void MagnificationControllerImpl::OnScrollEvent(ui::ScrollEvent* event) { |
void MagnificationControllerImpl::OnTouchEvent(ui::TouchEvent* event) { |
aura::Window* target = static_cast<aura::Window*>(event->target()); |
- aura::RootWindow* current_root = target->GetRootWindow(); |
+ aura::Window* current_root = target->GetRootWindow(); |
if (current_root == root_window_) { |
gfx::Rect root_bounds = current_root->bounds(); |
if (root_bounds.Contains(event->root_location())) |