| 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 a34cded433686c9b435173ba8636d3b271680281..87fae337539f4ab227162cfb4de49d21385f2882 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);
|
| }
|
|
|
|
|