Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(337)

Issue 2963013002: [TTS] Fix for tap on a previous tap-selection. (Closed)

Created:
3 years, 5 months ago by Donn Denman
Modified:
3 years, 5 months ago
Reviewers:
Theresa
CC:
chromium-reviews, twellington+watch_chromium.org, donnd+watch_chromium.org, agrieve+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

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)
Donn Denman
Theresa, PTAL when convenient. Thanks!
3 years, 5 months ago (2017-06-28 21:39:39 UTC) #4
Theresa
On 2017/06/28 21:39:39, Donn Denman wrote: > Theresa, PTAL when convenient. Thanks! I think these ...
3 years, 5 months ago (2017-06-28 23:41:29 UTC) #8
Donn Denman
On 2017/06/28 23:41:29, Theresa wrote: > On 2017/06/28 21:39:39, Donn Denman wrote: > > Theresa, ...
3 years, 5 months ago (2017-06-29 01:33:45 UTC) #9
Donn Denman
Theresa, Thanks for the questions and gentle push-back! I'll work on getting that tap on ...
3 years, 5 months ago (2017-06-29 01:36:11 UTC) #11
Donn Denman
Theresa, PTAL when convenient. This version works much better. Thanks!
3 years, 5 months ago (2017-06-29 17:12:55 UTC) #14
Theresa
lgtm
3 years, 5 months ago (2017-06-29 17:15:52 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2963013002/20001
3 years, 5 months ago (2017-06-29 17:19:24 UTC) #17
commit-bot: I haz the power
Try jobs failed on following builders: android_arm64_dbg_recipe on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_arm64_dbg_recipe/builds/299696)
3 years, 5 months ago (2017-06-29 17:54:25 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2963013002/40001
3 years, 5 months ago (2017-06-29 21:08:56 UTC) #22
commit-bot: I haz the power
3 years, 5 months ago (2017-06-29 22:08:39 UTC) #25
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/chromium/src/+/04a6e962e89fbab7754fc4c796b2...

Powered by Google App Engine
This is Rietveld 408576698