[Android] Always precede Tap gesture events with TapDown
commited1dafa7db5fcd150a757d1237c83a81666ec47f
authorjdduke <jdduke@chromium.org>
Tue, 18 Nov 2014 15:57:03 +0000 (18 07:57 -0800)
committerCommit bot <commit-bot@chromium.org>
Tue, 18 Nov 2014 15:58:21 +0000 (18 15:58 +0000)
tree9d58e88ebc7e76eca4c3afc2045a1c5de0933f07
parent3f284a813ca12517033f0e5dae3650abc75686bc
[Android] Always precede Tap gesture events with TapDown

The gesture detector generates TapDown events before Tap events, but
there there remain cases where synthetic Tap events are not preceded
by such TapDown events. Insert the expected TapDown for these synthetic
cases, also validating this event ordering in the
GestureEventStreamValidator.

A consistent ordering here provides the render process, and any downstream
gesture listener, more context to reason about and react to the gesture
event stream.

BUG=418402

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

Cr-Commit-Position: refs/heads/master@{#304611}
content/browser/android/content_view_core_impl.cc
content/common/input/gesture_event_stream_validator.cc
content/common/input/gesture_event_stream_validator_unittest.cc