Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(822)

Unified Diff: content/browser/renderer_host/render_widget_host_impl.h

Issue 1388293002: Notify WebContentsObservers of user interactions. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Adding histogram. Addressing reviewer feedback Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: content/browser/renderer_host/render_widget_host_impl.h
diff --git a/content/browser/renderer_host/render_widget_host_impl.h b/content/browser/renderer_host/render_widget_host_impl.h
index bd6bc767fc252f6b9acf9d617dd9154aa94a1471..226d06f573363fc542cd2f0b18b40441ffabb65f 100644
--- a/content/browser/renderer_host/render_widget_host_impl.h
+++ b/content/browser/renderer_host/render_widget_host_impl.h
@@ -578,6 +578,11 @@ class CONTENT_EXPORT RenderWidgetHostImpl : public RenderWidgetHost,
// NotifyRendererResponsive.
void RendererIsResponsive();
+ // Notification that the user has made some kind of direct input with the
+ // page. Direct input includes 1) any mouse down event; 2) any raw key down
+ // event; and 3) any gesture tap event (which includes taps and scrolls).
nasko 2015/10/28 17:36:12 If this is again doing extra work during scrolling
dominickn 2015/10/29 00:03:19 GestureTapDown fires once at the beginning of a sc
nasko 2015/10/29 00:07:26 Awesome! Thanks for the context.
+ virtual void OnUserInteraction(const blink::WebInputEvent::Type type);
+
// Routines used to send the RenderWidget its screen color profile.
void DispatchColorProfile();
void SendColorProfile();

Powered by Google App Engine
This is Rietveld 408576698