Index: ash/sticky_keys/sticky_keys_controller.cc |
diff --git a/ash/sticky_keys/sticky_keys_controller.cc b/ash/sticky_keys/sticky_keys_controller.cc |
index 5d9b93f6aa92fe050c4d535d22f49639753f1aab..8640e49a004bb4a2fdffb84a9e4e749a63aff676 100644 |
--- a/ash/sticky_keys/sticky_keys_controller.cc |
+++ b/ash/sticky_keys/sticky_keys_controller.cc |
@@ -58,7 +58,7 @@ StickyKeysHandlerDelegateImpl::~StickyKeysHandlerDelegateImpl() { |
void StickyKeysHandlerDelegateImpl::DispatchKeyEvent(ui::KeyEvent* event, |
aura::Window* target) { |
DCHECK(target); |
- target->GetDispatcher()->AsRootWindowHostDelegate()->OnHostKeyEvent(event); |
+ target->GetDispatcher()->AsWindowTreeHostDelegate()->OnHostKeyEvent(event); |
} |
void StickyKeysHandlerDelegateImpl::DispatchMouseEvent(ui::MouseEvent* event, |
@@ -67,11 +67,11 @@ void StickyKeysHandlerDelegateImpl::DispatchMouseEvent(ui::MouseEvent* event, |
// We need to send a new, untransformed mouse event to the host. |
if (event->IsMouseWheelEvent()) { |
ui::MouseWheelEvent new_event(*static_cast<ui::MouseWheelEvent*>(event)); |
- target->GetDispatcher()->AsRootWindowHostDelegate() |
+ target->GetDispatcher()->AsWindowTreeHostDelegate() |
->OnHostMouseEvent(&new_event); |
} else { |
ui::MouseEvent new_event(*event, target, target->GetRootWindow()); |
- target->GetDispatcher()->AsRootWindowHostDelegate() |
+ target->GetDispatcher()->AsWindowTreeHostDelegate() |
->OnHostMouseEvent(&new_event); |
} |
} |
@@ -80,7 +80,7 @@ void StickyKeysHandlerDelegateImpl::DispatchScrollEvent( |
ui::ScrollEvent* event, |
aura::Window* target) { |
DCHECK(target); |
- target->GetDispatcher()->AsRootWindowHostDelegate() |
+ target->GetDispatcher()->AsWindowTreeHostDelegate() |
->OnHostScrollEvent(event); |
} |