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

Unified Diff: chrome/browser/renderer_host/chrome_render_widget_host_view_mac_history_swiper.mm

Issue 2815823003: Notify OverscrollController of gesture events in plugins. (Closed)
Patch Set: Address comments. Created 3 years, 7 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: chrome/browser/renderer_host/chrome_render_widget_host_view_mac_history_swiper.mm
diff --git a/chrome/browser/renderer_host/chrome_render_widget_host_view_mac_history_swiper.mm b/chrome/browser/renderer_host/chrome_render_widget_host_view_mac_history_swiper.mm
index ca8813508c85ed2c8627a4db5a416f9eb8ad4c6c..ccb342db85e495740bb28dc4488526c80877458d 100644
--- a/chrome/browser/renderer_host/chrome_render_widget_host_view_mac_history_swiper.mm
+++ b/chrome/browser/renderer_host/chrome_render_widget_host_view_mac_history_swiper.mm
@@ -131,6 +131,14 @@ BOOL forceMagicMouse = NO;
blink::WebGestureEvent::kMomentumPhase) {
return;
}
+ // GestureScrollBegin and GestureScrollEnd events are created to wrap
+ // individual resent GestureScrollUpdates from a plugin. Hence these
+ // should not be used to indicate the beginning/end of the swipe gesture.
+ // TODO(mcnee): When we remove BrowserPlugin, delete this code.
+ // See crbug.com/533069
+ if (event.resending_plugin_id != -1) {
+ return;
+ }
waitingForFirstGestureScroll_ = YES;
break;
case blink::WebInputEvent::kGestureScrollUpdate:

Powered by Google App Engine
This is Rietveld 408576698