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

Issue 296403011: Support double-tap to click in touch accessibility controller. (Closed)

Created:
6 years, 6 months ago by dmazzoni
Modified:
6 years, 6 months ago
CC:
chromium-reviews, sadrul, stevenjb+watch_chromium.org, ben+aura_chromium.org, oshima+watch_chromium.org, kalyank
Visibility:
Public.

Description

Support double-tap to click in touch accessibility controller. This refactors the touch accessibility controller to work like a state machine, and implements support for double-tap to send a click to the last location where the user did touch exploration previously. This also means reimplementing existing touch interactions so that nothing is passed through until the double-tap timeout passes or the user moves outside the slop region. BUG=377900 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=275784

Patch Set 1 #

Total comments: 68

Patch Set 2 : Fix existing tests and add double-tap test #

Total comments: 49

Patch Set 3 : Address feedback #

Patch Set 4 : Rebase #

Total comments: 4

Patch Set 5 : Address more feedback #

Total comments: 23

Patch Set 6 : Assert that it's in the no_fingers_down state at the end of tests #

Patch Set 7 : Address feedback #

Total comments: 2

Patch Set 8 : Last nit #

Patch Set 9 : Rebase #

Total comments: 1

Patch Set 10 : Switch to TickClock / SimpleTestTickClock #

Patch Set 11 : Update browser test for touch exploration too #

Unified diffs Side-by-side diffs Delta from patch set Stats (+835 lines, -280 lines) Patch
M chrome/browser/chromeos/accessibility/touch_exploration_controller_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +8 lines, -0 lines 0 comments Download
M ui/aura/test/event_generator.h View 1 2 3 4 5 6 7 8 9 3 chunks +9 lines, -1 line 0 comments Download
M ui/aura/test/event_generator.cc View 1 2 3 4 5 6 7 8 9 18 chunks +36 lines, -18 lines 0 comments Download
M ui/chromeos/touch_exploration_controller.h View 1 2 3 4 5 6 3 chunks +153 lines, -18 lines 0 comments Download
M ui/chromeos/touch_exploration_controller.cc View 1 2 3 4 5 6 7 3 chunks +278 lines, -88 lines 0 comments Download
M ui/chromeos/touch_exploration_controller_unittest.cc View 1 2 3 4 5 6 7 8 9 14 chunks +350 lines, -155 lines 0 comments Download
M ui/ui_unittests.gyp View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 32 (0 generated)
dmazzoni
I'm not done updating the unit test yet, but this is ready for an initial ...
6 years, 6 months ago (2014-05-27 18:30:36 UTC) #1
mfomitchev
https://codereview.chromium.org/296403011/diff/1/ui/chromeos/touch_exploration_controller.cc File ui/chromeos/touch_exploration_controller.cc (right): https://codereview.chromium.org/296403011/diff/1/ui/chromeos/touch_exploration_controller.cc#newcode67 ui/chromeos/touch_exploration_controller.cc:67: // The rest of the processing depends on what ...
6 years, 6 months ago (2014-05-28 17:47:45 UTC) #2
dmazzoni
https://codereview.chromium.org/296403011/diff/1/ui/chromeos/touch_exploration_controller.cc File ui/chromeos/touch_exploration_controller.cc (right): https://codereview.chromium.org/296403011/diff/1/ui/chromeos/touch_exploration_controller.cc#newcode67 ui/chromeos/touch_exploration_controller.cc:67: // The rest of the processing depends on what ...
6 years, 6 months ago (2014-05-31 06:53:23 UTC) #3
dmazzoni
Tests updated now too, including a new test for double-tap.
6 years, 6 months ago (2014-06-02 07:52:35 UTC) #4
aboxhall
Haven't looked at test yet. https://codereview.chromium.org/296403011/diff/20001/ui/chromeos/touch_exploration_controller.cc File ui/chromeos/touch_exploration_controller.cc (right): https://codereview.chromium.org/296403011/diff/20001/ui/chromeos/touch_exploration_controller.cc#newcode117 ui/chromeos/touch_exploration_controller.cc:117: } else if (type ...
6 years, 6 months ago (2014-06-02 16:33:13 UTC) #5
mfomitchev
https://codereview.chromium.org/296403011/diff/1/ui/chromeos/touch_exploration_controller.cc File ui/chromeos/touch_exploration_controller.cc (right): https://codereview.chromium.org/296403011/diff/1/ui/chromeos/touch_exploration_controller.cc#newcode97 ui/chromeos/touch_exploration_controller.cc:97: initial_press_.reset(new TouchEvent(event)); On 2014/05/31 06:53:24, dmazzoni wrote: > On ...
6 years, 6 months ago (2014-06-02 23:12:17 UTC) #6
dmazzoni
https://codereview.chromium.org/296403011/diff/20001/ui/chromeos/touch_exploration_controller.cc File ui/chromeos/touch_exploration_controller.cc (right): https://codereview.chromium.org/296403011/diff/20001/ui/chromeos/touch_exploration_controller.cc#newcode117 ui/chromeos/touch_exploration_controller.cc:117: } else if (type == ui::ET_TOUCH_RELEASED || type == ...
6 years, 6 months ago (2014-06-03 07:46:51 UTC) #7
mfomitchev
Just a couple of fairly minor things: - I posted a bunch of comments for ...
6 years, 6 months ago (2014-06-04 20:39:20 UTC) #8
mfomitchev
https://codereview.chromium.org/296403011/diff/60001/ui/chromeos/touch_exploration_controller.cc File ui/chromeos/touch_exploration_controller.cc (right): https://codereview.chromium.org/296403011/diff/60001/ui/chromeos/touch_exploration_controller.cc#newcode80 ui/chromeos/touch_exploration_controller.cc:80: // If the tap timer should have fired by ...
6 years, 6 months ago (2014-06-04 20:39:30 UTC) #9
dmazzoni
Thanks! I think I've addressed all of the feedback now. https://codereview.chromium.org/296403011/diff/1/ui/chromeos/touch_exploration_controller.h File ui/chromeos/touch_exploration_controller.h (right): https://codereview.chromium.org/296403011/diff/1/ui/chromeos/touch_exploration_controller.h#newcode31 ...
6 years, 6 months ago (2014-06-04 22:46:27 UTC) #10
dmazzoni
+jamescook for ui/chromeos/OWNERS +sadrul for ui/aura/OWNERS
6 years, 6 months ago (2014-06-04 22:48:23 UTC) #11
James Cook
I will look at this today, apologies for delay.
6 years, 6 months ago (2014-06-05 16:33:47 UTC) #12
mfomitchev
You may have missed the comment about doing state validation in the the unit tests: ...
6 years, 6 months ago (2014-06-05 16:39:02 UTC) #13
James Cook
Looking good. A few nits and questions. https://codereview.chromium.org/296403011/diff/80001/ui/chromeos/touch_exploration_controller.cc File ui/chromeos/touch_exploration_controller.cc (right): https://codereview.chromium.org/296403011/diff/80001/ui/chromeos/touch_exploration_controller.cc#newcode32 ui/chromeos/touch_exploration_controller.cc:32: CHECK(tap_timer_.IsRunning()); Could ...
6 years, 6 months ago (2014-06-05 18:04:42 UTC) #14
dmazzoni
On 2014/06/05 16:39:02, mfomitchev wrote: > You may have missed the comment about doing state ...
6 years, 6 months ago (2014-06-05 22:20:53 UTC) #15
dmazzoni
https://codereview.chromium.org/296403011/diff/80001/ui/chromeos/touch_exploration_controller.cc File ui/chromeos/touch_exploration_controller.cc (right): https://codereview.chromium.org/296403011/diff/80001/ui/chromeos/touch_exploration_controller.cc#newcode32 ui/chromeos/touch_exploration_controller.cc:32: CHECK(tap_timer_.IsRunning()); On 2014/06/05 18:04:41, James Cook wrote: > Could ...
6 years, 6 months ago (2014-06-05 23:32:25 UTC) #16
James Cook
LGTM. Nice patch. https://codereview.chromium.org/296403011/diff/80001/ui/chromeos/touch_exploration_controller.cc File ui/chromeos/touch_exploration_controller.cc (right): https://codereview.chromium.org/296403011/diff/80001/ui/chromeos/touch_exploration_controller.cc#newcode32 ui/chromeos/touch_exploration_controller.cc:32: CHECK(tap_timer_.IsRunning()); On 2014/06/05 23:32:24, dmazzoni wrote: ...
6 years, 6 months ago (2014-06-06 00:09:45 UTC) #17
dmazzoni
https://codereview.chromium.org/296403011/diff/80001/ui/chromeos/touch_exploration_controller.cc File ui/chromeos/touch_exploration_controller.cc (right): https://codereview.chromium.org/296403011/diff/80001/ui/chromeos/touch_exploration_controller.cc#newcode32 ui/chromeos/touch_exploration_controller.cc:32: CHECK(tap_timer_.IsRunning()); On 2014/06/06 00:09:45, James Cook wrote: > On ...
6 years, 6 months ago (2014-06-06 15:27:23 UTC) #18
dmazzoni
@sky, could I have OWNERS review for ui/aura/test since sadrul is out?
6 years, 6 months ago (2014-06-06 15:28:55 UTC) #19
sky
https://codereview.chromium.org/296403011/diff/150001/ui/aura/test/event_generator.h File ui/aura/test/event_generator.h (right): https://codereview.chromium.org/296403011/diff/150001/ui/aura/test/event_generator.h#newcode319 ui/aura/test/event_generator.h:319: void UseSimulatedTime(); Instead of UseSimulateTime/Advance... how about a SetClock(scoped_ptr<Clock>)? ...
6 years, 6 months ago (2014-06-06 16:35:25 UTC) #20
sky
And I didn't think Sadrul ever took vacation;)
6 years, 6 months ago (2014-06-06 16:35:46 UTC) #21
dmazzoni
Good idea! I used TickClock / SimpleTestTickClock since events want an always-increasing clock. On Fri, ...
6 years, 6 months ago (2014-06-06 17:54:12 UTC) #22
sky
LGTM
6 years, 6 months ago (2014-06-06 19:50:53 UTC) #23
dmazzoni
The CQ bit was checked by dmazzoni@chromium.org
6 years, 6 months ago (2014-06-06 20:47:08 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dmazzoni@chromium.org/296403011/170001
6 years, 6 months ago (2014-06-06 20:48:23 UTC) #25
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: linux_chromium_chromeos_rel on tryserver.chromium ...
6 years, 6 months ago (2014-06-06 22:04:32 UTC) #26
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 6 months ago (2014-06-06 23:22:42 UTC) #27
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_rel on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/linux_chromium_chromeos_rel/builds/35343)
6 years, 6 months ago (2014-06-06 23:22:43 UTC) #28
dmazzoni
The CQ bit was checked by dmazzoni@chromium.org
6 years, 6 months ago (2014-06-09 06:34:55 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dmazzoni@chromium.org/296403011/190001
6 years, 6 months ago (2014-06-09 06:35:43 UTC) #30
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: android_clang_dbg on tryserver.chromium ...
6 years, 6 months ago (2014-06-09 08:28:58 UTC) #31
commit-bot: I haz the power
6 years, 6 months ago (2014-06-09 11:10:01 UTC) #32
Message was sent while issue was closed.
Change committed as 275784

Powered by Google App Engine
This is Rietveld 408576698