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

Unified Diff: content/browser/renderer_host/render_widget_host_input_event_router.cc

Issue 2814043004: MouseWheelEventQueue should respect ScrollBegin/End state from RenderWidgetHost. (Closed)
Patch Set: Rename function. Created 3 years, 8 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') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/renderer_host/render_widget_host_input_event_router.cc
diff --git a/content/browser/renderer_host/render_widget_host_input_event_router.cc b/content/browser/renderer_host/render_widget_host_input_event_router.cc
index f5553526d6c6834dbf18559dc4fd621d31a326c5..48cced47442e71a93c9f8a0583c511944105d55f 100644
--- a/content/browser/renderer_host/render_widget_host_input_event_router.cc
+++ b/content/browser/renderer_host/render_widget_host_input_event_router.cc
@@ -727,7 +727,8 @@ void RenderWidgetHostInputEventRouter::RouteTouchscreenGestureEvent(
// send a GestureScrollBegin, as by the time we see GesturePinchBegin there
// should have been one.
if (root_view != touchscreen_gesture_target_.target &&
- !rwhi->is_in_touchscreen_gesture_scroll()) {
+ !rwhi->IsInGestureScroll(
+ blink::WebGestureDevice::kWebGestureDeviceTouchscreen)) {
gesture_pinch_did_send_scroll_begin_ = true;
SendGestureScrollBegin(root_view, *event);
}
@@ -743,7 +744,8 @@ void RenderWidgetHostInputEventRouter::RouteTouchscreenGestureEvent(
static_cast<RenderWidgetHostImpl*>(root_view->GetRenderWidgetHost());
if (root_view != touchscreen_gesture_target_.target &&
gesture_pinch_did_send_scroll_begin_ &&
- rwhi->is_in_touchscreen_gesture_scroll()) {
+ rwhi->IsInGestureScroll(
+ blink::WebGestureDevice::kWebGestureDeviceTouchscreen)) {
SendGestureScrollEnd(root_view, *event);
}
gesture_pinch_did_send_scroll_begin_ = false;
« no previous file with comments | « content/browser/renderer_host/render_widget_host_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698