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

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

Issue 2186983002: Re-route Touchscreen GesturePinch events to root view. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix typo. Created 4 years, 4 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_input_event_router.h
diff --git a/content/browser/renderer_host/render_widget_host_input_event_router.h b/content/browser/renderer_host/render_widget_host_input_event_router.h
index 70f8b05b8e241715ea116565b79a6518c98a7c64..83736c4973dbd2b435f5d09a9041ae9db12e900e 100644
--- a/content/browser/renderer_host/render_widget_host_input_event_router.h
+++ b/content/browser/renderer_host/render_widget_host_input_event_router.h
@@ -137,6 +137,11 @@ class CONTENT_EXPORT RenderWidgetHostInputEventRouter
TargetData bubbling_gesture_scroll_target_;
TargetData first_bubbling_scroll_target_;
int active_touches_;
+ // Keep track of when we are between GesturePinchBegin and GesturePinchEnd
+ // inclusive, as we need to route these events (and anything in between) to
+ // the main frame.
+ bool in_touchscreen_gesture_pinch_;
+ bool gesture_pinch_did_send_scroll_begin_;
std::unordered_map<cc::SurfaceId, HittestData, cc::SurfaceIdHash>
hittest_data_;

Powered by Google App Engine
This is Rietveld 408576698