Cancel long-press operation if the gesture is scrolling

This CL adds the code to cancel the long-press operation which shows
inline setting when the user stats the scrollingo

Previously that was done in Android (ag/4340201) but it didn't work
for vertical scroll since the scroll is handled on Chrome side. With
this CL, scroll detection is done on Chrome side and the code handles
correctly with vertical scrolls in addition to horizontal ones.

Bug: b/111100376
Bug: 858938
Test: Manual (inline setting does't open during vertical scroll)
Change-Id: I84407b331dc320e6acd3a776938104ad018d46a3
Reviewed-on: https://chromium-review.googlesource.com/1124263
Commit-Queue: Yoshiki Iguchi <yoshiki@chromium.org>
Reviewed-by: Eliot Courtney <edcourtney@chromium.org>
Reviewed-by: Luis Hector Chavez <lhchavez@chromium.org>
Reviewed-by: Greg Kerr <kerrnel@chromium.org>
Cr-Commit-Position: refs/heads/master@{#574512}
10 files changed