| 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 482915068d1dd601d1001e9be9f8ecdcbca0bcfd..9336b6adca478dec8383c204e3d30baac5c41c7e 100644
|
| --- a/chrome/browser/extensions/api/input/input.cc
|
| +++ b/chrome/browser/extensions/api/input/input.cc
|
| @@ -56,8 +56,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;
|
| @@ -81,11 +83,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;
|
|
|