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

Unified Diff: content/public/browser/web_contents_observer.h

Issue 1748553002: Replace MouseWheel events with GestureScrollBegin in WebContentsObserver::DidGetUserInteraction (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@remove-didgetusergesture
Patch Set: Addressing reviewer comments Created 4 years, 10 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
« no previous file with comments | « content/browser/renderer_host/render_widget_host_impl.cc ('k') | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/browser/web_contents_observer.h
diff --git a/content/public/browser/web_contents_observer.h b/content/public/browser/web_contents_observer.h
index 29c2c1edb72ee34b82daa08c188647caf5451d82..ed0f856bcd478f4acf34e7fb8ea5c8f2935d11c0 100644
--- a/content/public/browser/web_contents_observer.h
+++ b/content/public/browser/web_contents_observer.h
@@ -321,15 +321,10 @@ class CONTENT_EXPORT WebContentsObserver : public IPC::Listener,
// The type argument specifies the kind of interaction. Direct user input
// signalled through this callback includes:
// 1) any mouse down event (blink::WebInputEvent::MouseDown);
- // 2) the start of a mouse wheel scroll (blink::WebInputEvent::MouseWheel);
+ // 2) the start of a scroll (blink::WebInputEvent::GestureScrollBegin);
// 3) any raw key down event (blink::WebInputEvent::RawKeyDown);
// 4) any gesture tap event (blink::WebInputEvent::GestureTapDown); and
// 5) a browser navigation or reload (blink::WebInputEvent::Undefined).
- // The start of a mouse wheel scroll is heuristically detected: a mouse
- // wheel event fired at least 0.1 seconds after any other wheel event is
- // regarded as the beginning of a scroll. This matches the interval used by
- // the Blink EventHandler to detect the end of scrolls.
- // TODO(dominickn): replace MouseWheel with GestureScrollBegin.
virtual void DidGetUserInteraction(const blink::WebInputEvent::Type type) {}
// This method is invoked when a RenderViewHost of this WebContents was
« no previous file with comments | « content/browser/renderer_host/render_widget_host_impl.cc ('k') | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698