| Index: chrome/browser/extensions/api/input/input.cc
|
| diff --git a/chrome/browser/extensions/api/input/input.cc b/chrome/browser/extensions/api/input/input.cc
|
| index d550b8c8c4917ae9cfb60e75c10bcb19f5f58ce6..d946655f9f69098777dcda873dcaf1045526aeb3 100644
|
| --- a/chrome/browser/extensions/api/input/input.cc
|
| +++ b/chrome/browser/extensions/api/input/input.cc
|
| @@ -49,8 +49,10 @@ bool VirtualKeyboardPrivateMoveCursorFunction::RunImpl() {
|
| EXTENSION_FUNCTION_VALIDATE(args_->GetInteger(0, &swipe_direction));
|
| EXTENSION_FUNCTION_VALIDATE(args_->GetInteger(1, &modifier_flags));
|
|
|
| - return keyboard::MoveCursor(swipe_direction, modifier_flags,
|
| - ash::Shell::GetPrimaryRootWindow());
|
| + return keyboard::MoveCursor(
|
| + swipe_direction,
|
| + modifier_flags,
|
| + ash::Shell::GetPrimaryRootWindow()->GetDispatcher());
|
| #endif
|
| error_ = kNotYetImplementedError;
|
| return false;
|
| @@ -74,11 +76,12 @@ bool VirtualKeyboardPrivateSendKeyEventFunction::RunImpl() {
|
| EXTENSION_FUNCTION_VALIDATE(params->GetInteger("keyCode", &key_code));
|
| EXTENSION_FUNCTION_VALIDATE(params->GetBoolean("shiftKey", &shift_modifier));
|
|
|
| - return keyboard::SendKeyEvent(type,
|
| - char_value,
|
| - key_code,
|
| - shift_modifier,
|
| - ash::Shell::GetPrimaryRootWindow());
|
| + return keyboard::SendKeyEvent(
|
| + type,
|
| + char_value,
|
| + key_code,
|
| + shift_modifier,
|
| + ash::Shell::GetPrimaryRootWindow()->GetDispatcher());
|
| #endif
|
| error_ = kNotYetImplementedError;
|
| return false;
|
|
|