Index: trunk/src/ash/wm/sticky_keys.cc |
=================================================================== |
--- trunk/src/ash/wm/sticky_keys.cc (revision 236090) |
+++ trunk/src/ash/wm/sticky_keys.cc (working copy) |
@@ -54,7 +54,7 @@ |
void StickyKeysHandlerDelegateImpl::DispatchKeyEvent(ui::KeyEvent* event, |
aura::Window* target) { |
DCHECK(target); |
- target->GetDispatcher()->AsWindowTreeHostDelegate()->OnHostKeyEvent(event); |
+ target->GetDispatcher()->AsRootWindowHostDelegate()->OnHostKeyEvent(event); |
} |
void StickyKeysHandlerDelegateImpl::DispatchMouseEvent(ui::MouseEvent* event, |
@@ -62,7 +62,7 @@ |
DCHECK(target); |
// We need to send a new, untransformed mouse event to the host. |
ui::MouseEvent release_event(*event, target, target->GetRootWindow()); |
- target->GetDispatcher()->AsWindowTreeHostDelegate() |
+ target->GetDispatcher()->AsRootWindowHostDelegate() |
->OnHostMouseEvent(&release_event); |
} |