Chromium Code Reviews
Description[TTS] Fix tap on a previous tap-selection.
When a tap-select is later tapped upon, it should always show
the selection pins and the CS Bar. However this isn't working
when the later tap happens very quickly after the first tap.
The problem is that the second tap happens before we get notification
that the selection pins have been shown. TTS starts the process
of handling the tap unless it's fully handled the previous one,
which is flawed logic. This flawed logic may have been responsible
for some taps being ignored.
This CL introduces a new state that's used to wait for the tap
gesture to be converted to a long-press gesture. Unless we're
in the IDLE state when a tap is recognized we'll enter this new
wait state and usually timeout and advance our normal tap
processing. In the case of the user doing a second tap the
recognition of the long-press abandons the previous tap processing.
Also clean up our @see directives in CSInternalStateHandler.java.
BUG=736237, 717942
Review-Url: https://codereview.chromium.org/2963013002
Cr-Commit-Position: refs/heads/master@{#483510}
Committed: https://chromium.googlesource.com/chromium/src/+/04a6e962e89fbab7754fc4c796b25b6ddc134985
Patch Set 1 #Patch Set 2 : Complete rework to add a new internal wait state. #Patch Set 3 : Updated the CSInternalStateTest. #
Messages
Total messages: 25 (15 generated)
|
||||||||||||||||||||||||||||||||||||||||||||||