| Index: content/browser/renderer_host/render_widget_host_view_aura.cc
|
| diff --git a/content/browser/renderer_host/render_widget_host_view_aura.cc b/content/browser/renderer_host/render_widget_host_view_aura.cc
|
| index 5d797254e65809005be397ac2eec2dc1a9732e0f..cf50093a298f66fffcd9e7111047af92f3817456 100644
|
| --- a/content/browser/renderer_host/render_widget_host_view_aura.cc
|
| +++ b/content/browser/renderer_host/render_widget_host_view_aura.cc
|
| @@ -1204,8 +1204,9 @@ void RenderWidgetHostViewAura::InsertChar(const ui::KeyEvent& event) {
|
| if (host_ && (event_handler_->accept_return_character() ||
|
| event.GetCharacter() != ui::VKEY_RETURN)) {
|
| // Send a blink::WebInputEvent::Char event to |host_|.
|
| - ForwardKeyboardEvent(NativeWebKeyboardEvent(event, event.GetCharacter()),
|
| - nullptr);
|
| + ForwardKeyboardEventWithLatencyInfo(
|
| + NativeWebKeyboardEvent(event, event.GetCharacter()), *event.latency(),
|
| + nullptr);
|
| }
|
| }
|
|
|
| @@ -2198,8 +2199,9 @@ void RenderWidgetHostViewAura::DetachFromInputMethod() {
|
| input_method->DetachTextInputClient(this);
|
| }
|
|
|
| -void RenderWidgetHostViewAura::ForwardKeyboardEvent(
|
| +void RenderWidgetHostViewAura::ForwardKeyboardEventWithLatencyInfo(
|
| const NativeWebKeyboardEvent& event,
|
| + const ui::LatencyInfo& latency,
|
| bool* update_event) {
|
| RenderWidgetHostImpl* target_host = host_;
|
|
|
| @@ -2226,13 +2228,14 @@ void RenderWidgetHostViewAura::ForwardKeyboardEvent(
|
| it->argument()));
|
| }
|
|
|
| - target_host->ForwardKeyboardEventWithCommands(event, &edit_commands,
|
| - update_event);
|
| + target_host->ForwardKeyboardEventWithCommands(event, latency,
|
| + &edit_commands, update_event);
|
| return;
|
| }
|
| #endif
|
|
|
| - target_host->ForwardKeyboardEventWithCommands(event, nullptr, update_event);
|
| + target_host->ForwardKeyboardEventWithCommands(event, latency, nullptr,
|
| + update_event);
|
| }
|
|
|
| void RenderWidgetHostViewAura::CreateSelectionController() {
|
|
|