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

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

Issue 1407053010: Make mouse wheel events trigger WebContentsObserver::DidGetUserInteraction. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressing nits Created 5 years, 1 month 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_delegate.h
diff --git a/content/browser/renderer_host/render_widget_host_delegate.h b/content/browser/renderer_host/render_widget_host_delegate.h
index e9c043e92ab13e9c51a78bc09995f8cdcf71cac1..e6bc3c61a2dae0c38fbbea5b2ede860747b1adde 100644
--- a/content/browser/renderer_host/render_widget_host_delegate.h
+++ b/content/browser/renderer_host/render_widget_host_delegate.h
@@ -65,9 +65,10 @@ class CONTENT_EXPORT RenderWidgetHostDelegate {
// the event itself.
virtual bool HandleWheelEvent(const blink::WebMouseWheelEvent& event);
- // Notification the user has performed a direct interaction (mouse down, raw
- // key down, or gesture tap) while focus was on the page. This is used to
- // inform the delegate that a user is interacting with a site.
+ // Notification the user has performed a direct interaction (mouse down, mouse
+ // wheel, raw key down, or gesture tap) while focus was on the page. Informs
+ // the delegate that a user is interacting with a site. Only the first mouse
+ // wheel event during a scroll will trigger this method.
virtual void OnUserInteraction(const blink::WebInputEvent::Type type) {}
// Callback to give the browser a chance to handle the specified gesture

Powered by Google App Engine
This is Rietveld 408576698