Restore simple fling status bookkeeping
commita4bcf3d1bd4294fb08d70974a156523720d926d0
authorjdduke <jdduke@chromium.org>
Fri, 1 May 2015 22:10:30 +0000 (1 15:10 -0700)
committerCommit bot <commit-bot@chromium.org>
Fri, 1 May 2015 22:11:52 +0000 (1 22:11 +0000)
treec41fd2ecd7c10904df5526ae33dd1b7221da798f
parent991ec975f29b57a54d852968d255cb4125f5c4e9
Restore simple fling status bookkeeping

Recently, an active fling counter was introduced to track whether a
fling was active in the renderer. This was useful both for filtering
fling cancel events as well as signalling the end of a fling gesture
for telemetry purposes.

However, there appear to be gaps in the fling accounting that don't
appear in telemetry but do appear in the wild, causing issues with
fling-related tap suppression logic. Restore the previous fling
bookkeeping for the GestureEventQueue until the in-flight fling
count is correct for all gesture types.

BUG=483037

Review URL: https://codereview.chromium.org/1113143002

Cr-Commit-Position: refs/heads/master@{#327993}
content/browser/android/content_view_core_impl.cc
content/browser/android/content_view_core_impl.h
content/browser/renderer_host/input/gesture_event_queue.cc
content/browser/renderer_host/input/gesture_event_queue.h
content/browser/renderer_host/input/gesture_event_queue_unittest.cc
content/browser/renderer_host/input/input_router_config_helper.cc
content/browser/renderer_host/input/input_router_impl.cc
content/browser/renderer_host/input/input_router_impl_unittest.cc
content/browser/renderer_host/render_widget_host_view_android.cc
content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java