Account for flings consumed by the InputRouterClient
commit9052967567ce872b6a96336f448fd78b6e8be8cd
authorjdduke <jdduke@chromium.org>
Tue, 26 May 2015 22:57:47 +0000 (26 15:57 -0700)
committerCommit bot <commit-bot@chromium.org>
Tue, 26 May 2015 22:58:23 +0000 (26 22:58 +0000)
tree247389327398ec06869fd1d1c2827cf6fe9ef941
parentf1d43d02e1b5cd7b551d2c41b735e46f01c817bc
Account for flings consumed by the InputRouterClient

WebView can consume flings that target non-root scrollably layers via
the InputRouterClient. Previously, we failed to account for these flings
in the InputRouter bookkeeping, leading to scenarios where the fling-end
notification would yield a negative active fling count.

Handle this case by also tracking flings that are consumed by the
client, with the implicit contract being that a fling end notification
should always accompany a "consumed" fling.

BUG=492274

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

Cr-Commit-Position: refs/heads/master@{#331468}
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_aura.cc
content/browser/renderer_host/render_widget_host_view_aura_unittest.cc