Index: content/browser/renderer_host/render_widget_host_impl.cc |
diff --git a/content/browser/renderer_host/render_widget_host_impl.cc b/content/browser/renderer_host/render_widget_host_impl.cc |
index c89bba6c56f4cf3c9c60626f85bef724b0c5b06e..a6a97eb8eecf451da83f760f8538569cdfe5f46b 100644 |
--- a/content/browser/renderer_host/render_widget_host_impl.cc |
+++ b/content/browser/renderer_host/render_widget_host_impl.cc |
@@ -1445,6 +1445,12 @@ void RenderWidgetHostImpl::RendererIsResponsive() { |
} |
} |
+void RenderWidgetHostImpl::OnUserInteraction( |
+ const blink::WebInputEvent::Type type) { |
+ if (delegate_) |
+ delegate_->OnUserInteraction(type); |
nasko
2015/10/28 17:36:12
Why have a separate method for a two line body? Ca
dominickn
2015/10/29 00:03:19
Done.
|
+} |
+ |
void RenderWidgetHostImpl::ClearDisplayedGraphics() { |
NotifyNewContentRenderingTimeoutForTesting(); |
if (view_) |
@@ -1858,6 +1864,12 @@ InputEventAckState RenderWidgetHostImpl::FilterInputEvent( |
OnUserGesture(); |
} |
+ if (event.type == WebInputEvent::MouseDown || |
+ event.type == WebInputEvent::GestureTapDown || |
+ event.type == WebInputEvent::RawKeyDown) { |
+ OnUserInteraction(event.type); |
+ } |
+ |
return view_ ? view_->FilterInputEvent(event) |
: INPUT_EVENT_ACK_STATE_NOT_CONSUMED; |
} |