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

Issue 429633002: Added multi-finger gestures to touch_exploration_controller (Closed)

Created:
6 years, 4 months ago by evy
Modified:
6 years, 4 months ago
CC:
chromium-reviews, stevenjb+watch_chromium.org, oshima+watch_chromium.org, lisayin
Base URL:
https://chromium.googlesource.com/chromium/src.git@passthrough
Project:
chromium
Visibility:
Public.

Description

Added multi-finger gestures to touch_exploration_controller Two fingers: up is go to top, down is read from here, left is browser back, right is browser forward. Three fingers: up and down map to page up/down. Three fingers: up and down scroll by a fixed amount, left and right scroll between tabs. Four fingers: up is home page, down is refresh, left and right toggle brightness. BUG=387304 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=288857 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=289334

Patch Set 1 #

Patch Set 2 : fixed weird indents #

Total comments: 6

Patch Set 3 : updated swipe gesture code, added test #

Total comments: 20

Patch Set 4 : removed some tap timer checks, updated comments, nit fixes #

Patch Set 5 : added closure mappings to release key events for gestures #

Total comments: 6

Patch Set 6 : code review #

Patch Set 7 : from the original branch #

Total comments: 35

Patch Set 8 : reshuffled code - NOTREACHED - OnGestureEvent #

Patch Set 9 : gesture provider doesn't recieve all events and is reset in ResetToNoFingersDown #

Total comments: 8

Patch Set 10 : nit changes #

Total comments: 20

Patch Set 11 : SetState function #

Total comments: 10

Patch Set 12 : check closures exist before running #

Total comments: 8

Patch Set 13 : rebased patch for Lisa #

Patch Set 14 : bind key events in a function #

Patch Set 15 : permutations test disabled since it takes so long #

Patch Set 16 : rebased #

Unified diffs Side-by-side diffs Delta from patch set Stats (+427 lines, -310 lines) Patch
M ui/chromeos/touch_exploration_controller.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 11 chunks +39 lines, -23 lines 0 comments Download
M ui/chromeos/touch_exploration_controller.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 35 chunks +277 lines, -211 lines 0 comments Download
M ui/chromeos/touch_exploration_controller_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 13 chunks +111 lines, -76 lines 0 comments Download

Messages

Total messages: 43 (0 generated)
evy
6 years, 4 months ago (2014-07-29 17:30:07 UTC) #1
aboxhall
https://codereview.chromium.org/429633002/diff/20001/ui/chromeos/touch_exploration_controller.cc File ui/chromeos/touch_exploration_controller.cc (right): https://codereview.chromium.org/429633002/diff/20001/ui/chromeos/touch_exploration_controller.cc#newcode386 ui/chromeos/touch_exploration_controller.cc:386: if (!(type == ui::ET_TOUCH_RELEASED || type == ui::ET_TOUCH_CANCELLED || ...
6 years, 4 months ago (2014-07-30 00:25:16 UTC) #2
evy
Multi finger gestures! I think I'm ready for review now - there are a few ...
6 years, 4 months ago (2014-08-04 23:06:30 UTC) #3
aboxhall
Looking at tests now... https://codereview.chromium.org/429633002/diff/40001/ui/chromeos/touch_exploration_controller.cc File ui/chromeos/touch_exploration_controller.cc (right): https://codereview.chromium.org/429633002/diff/40001/ui/chromeos/touch_exploration_controller.cc#newcode84 ui/chromeos/touch_exploration_controller.cc:84: // Always process gesture events ...
6 years, 4 months ago (2014-08-04 23:38:54 UTC) #4
aboxhall
Tests mostly look good; I'm a little confused as to why the slide gesture/volume change ...
6 years, 4 months ago (2014-08-04 23:58:09 UTC) #5
evy
Thanks for the fast reply Alice! When I added multi finger gestures, I changed the ...
6 years, 4 months ago (2014-08-05 00:14:41 UTC) #6
evy
Events from gestures are now dispatched through a int (number of fingers) to closure (keys ...
6 years, 4 months ago (2014-08-05 22:49:01 UTC) #7
aboxhall
This looks great, but what happened to the test? https://codereview.chromium.org/429633002/diff/80001/ui/chromeos/touch_exploration_controller.cc File ui/chromeos/touch_exploration_controller.cc (right): https://codereview.chromium.org/429633002/diff/80001/ui/chromeos/touch_exploration_controller.cc#newcode713 ui/chromeos/touch_exploration_controller.cc:713: ...
6 years, 4 months ago (2014-08-05 23:43:42 UTC) #8
evy
Tests are gone because it's actually a diff from the version without closures. You said ...
6 years, 4 months ago (2014-08-05 23:51:19 UTC) #9
aboxhall
On 2014/08/05 23:51:19, evy wrote: > Tests are gone because it's actually a diff from ...
6 years, 4 months ago (2014-08-05 23:58:13 UTC) #10
evy
On 2014/08/05 23:58:13, aboxhall wrote: > On 2014/08/05 23:51:19, evy wrote: > > Tests are ...
6 years, 4 months ago (2014-08-06 00:02:16 UTC) #11
mfomitchev
https://codereview.chromium.org/429633002/diff/120001/ui/chromeos/touch_exploration_controller.cc File ui/chromeos/touch_exploration_controller.cc (right): https://codereview.chromium.org/429633002/diff/120001/ui/chromeos/touch_exploration_controller.cc#newcode85 ui/chromeos/touch_exploration_controller.cc:85: // Always process gesture events in the gesture provider. ...
6 years, 4 months ago (2014-08-06 16:11:50 UTC) #12
lisayin
https://codereview.chromium.org/429633002/diff/120001/ui/chromeos/touch_exploration_controller.h File ui/chromeos/touch_exploration_controller.h (right): https://codereview.chromium.org/429633002/diff/120001/ui/chromeos/touch_exploration_controller.h#newcode61 ui/chromeos/touch_exploration_controller.h:61: // user holds down the corner of the screen ...
6 years, 4 months ago (2014-08-06 16:15:10 UTC) #13
evy
This is an intermediate step, just for clarity of each part of the change, and ...
6 years, 4 months ago (2014-08-06 18:46:12 UTC) #14
evy
Events are now only processed through the gesture provider when needed. https://codereview.chromium.org/429633002/diff/120001/ui/chromeos/touch_exploration_controller.cc File ui/chromeos/touch_exploration_controller.cc (right): ...
6 years, 4 months ago (2014-08-06 21:31:57 UTC) #15
lisayin
https://codereview.chromium.org/429633002/diff/160001/ui/chromeos/touch_exploration_controller.cc File ui/chromeos/touch_exploration_controller.cc (right): https://codereview.chromium.org/429633002/diff/160001/ui/chromeos/touch_exploration_controller.cc#newcode577 ui/chromeos/touch_exploration_controller.cc:577: return; This should be a break so that the ...
6 years, 4 months ago (2014-08-06 22:43:29 UTC) #16
evy
https://codereview.chromium.org/429633002/diff/160001/ui/chromeos/touch_exploration_controller.cc File ui/chromeos/touch_exploration_controller.cc (right): https://codereview.chromium.org/429633002/diff/160001/ui/chromeos/touch_exploration_controller.cc#newcode577 ui/chromeos/touch_exploration_controller.cc:577: return; On 2014/08/06 22:43:29, lisayin wrote: > This should ...
6 years, 4 months ago (2014-08-06 22:59:14 UTC) #17
mfomitchev
https://codereview.chromium.org/429633002/diff/120001/ui/chromeos/touch_exploration_controller.cc File ui/chromeos/touch_exploration_controller.cc (right): https://codereview.chromium.org/429633002/diff/120001/ui/chromeos/touch_exploration_controller.cc#newcode85 ui/chromeos/touch_exploration_controller.cc:85: // Always process gesture events in the gesture provider. ...
6 years, 4 months ago (2014-08-07 18:34:59 UTC) #18
evy
Thanks for the great ideas Mikhail How does it look now? https://codereview.chromium.org/429633002/diff/120001/ui/chromeos/touch_exploration_controller.cc File ui/chromeos/touch_exploration_controller.cc (right): ...
6 years, 4 months ago (2014-08-07 20:40:27 UTC) #19
aboxhall
https://codereview.chromium.org/429633002/diff/120001/ui/chromeos/touch_exploration_controller.cc File ui/chromeos/touch_exploration_controller.cc (right): https://codereview.chromium.org/429633002/diff/120001/ui/chromeos/touch_exploration_controller.cc#newcode85 ui/chromeos/touch_exploration_controller.cc:85: // Always process gesture events in the gesture provider. ...
6 years, 4 months ago (2014-08-07 20:53:21 UTC) #20
lisayin
https://codereview.chromium.org/429633002/diff/120001/ui/chromeos/touch_exploration_controller.cc File ui/chromeos/touch_exploration_controller.cc (right): https://codereview.chromium.org/429633002/diff/120001/ui/chromeos/touch_exploration_controller.cc#newcode85 ui/chromeos/touch_exploration_controller.cc:85: // Always process gesture events in the gesture provider. ...
6 years, 4 months ago (2014-08-07 21:11:35 UTC) #21
evy
https://codereview.chromium.org/429633002/diff/120001/ui/chromeos/touch_exploration_controller.cc File ui/chromeos/touch_exploration_controller.cc (right): https://codereview.chromium.org/429633002/diff/120001/ui/chromeos/touch_exploration_controller.cc#newcode236 ui/chromeos/touch_exploration_controller.cc:236: NOTREACHED() << "Unexpected event type received: " << event.name(); ...
6 years, 4 months ago (2014-08-07 21:20:33 UTC) #22
mfomitchev
https://codereview.chromium.org/429633002/diff/120001/ui/chromeos/touch_exploration_controller.cc File ui/chromeos/touch_exploration_controller.cc (right): https://codereview.chromium.org/429633002/diff/120001/ui/chromeos/touch_exploration_controller.cc#newcode85 ui/chromeos/touch_exploration_controller.cc:85: // Always process gesture events in the gesture provider. ...
6 years, 4 months ago (2014-08-08 20:23:14 UTC) #23
evy
https://codereview.chromium.org/429633002/diff/120001/ui/chromeos/touch_exploration_controller.cc File ui/chromeos/touch_exploration_controller.cc (right): https://codereview.chromium.org/429633002/diff/120001/ui/chromeos/touch_exploration_controller.cc#newcode713 ui/chromeos/touch_exploration_controller.cc:713: if (event_details.swipe_left()) On 2014/08/06 16:11:49, mfomitchev wrote: > I'd ...
6 years, 4 months ago (2014-08-08 22:39:15 UTC) #24
dmazzoni
lgtm https://codereview.chromium.org/429633002/diff/220001/ui/chromeos/touch_exploration_controller.cc File ui/chromeos/touch_exploration_controller.cc (right): https://codereview.chromium.org/429633002/diff/220001/ui/chromeos/touch_exploration_controller.cc#newcode802 ui/chromeos/touch_exploration_controller.cc:802: // These are the states the user can ...
6 years, 4 months ago (2014-08-11 08:24:56 UTC) #25
mfomitchev
lgtm with a nit
6 years, 4 months ago (2014-08-11 14:56:25 UTC) #26
mfomitchev
https://codereview.chromium.org/429633002/diff/200001/ui/chromeos/touch_exploration_controller.cc File ui/chromeos/touch_exploration_controller.cc (right): https://codereview.chromium.org/429633002/diff/200001/ui/chromeos/touch_exploration_controller.cc#newcode621 ui/chromeos/touch_exploration_controller.cc:621: VLOG_STATE(); Yup, take a look at FROM_HERE in base/location.h
6 years, 4 months ago (2014-08-11 14:56:32 UTC) #27
mfomitchev
https://codereview.chromium.org/429633002/diff/220001/ui/chromeos/touch_exploration_controller.cc File ui/chromeos/touch_exploration_controller.cc (right): https://codereview.chromium.org/429633002/diff/220001/ui/chromeos/touch_exploration_controller.cc#newcode796 ui/chromeos/touch_exploration_controller.cc:796: if(new_state == NO_FINGERS_DOWN){ You make switch() top-level, put NO_FINGERS_DOWN ...
6 years, 4 months ago (2014-08-11 15:05:08 UTC) #28
evy
https://codereview.chromium.org/429633002/diff/200001/ui/chromeos/touch_exploration_controller.cc File ui/chromeos/touch_exploration_controller.cc (right): https://codereview.chromium.org/429633002/diff/200001/ui/chromeos/touch_exploration_controller.cc#newcode621 ui/chromeos/touch_exploration_controller.cc:621: VLOG_STATE(); On 2014/08/11 14:56:32, mfomitchev wrote: > Yup, take ...
6 years, 4 months ago (2014-08-11 17:08:14 UTC) #29
evy
The CQ bit was checked by evy@chromium.org
6 years, 4 months ago (2014-08-11 20:15:16 UTC) #30
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/evy@chromium.org/429633002/280001
6 years, 4 months ago (2014-08-11 20:19:35 UTC) #31
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: android_dbg_triggered_tests on tryserver.chromium.linux ...
6 years, 4 months ago (2014-08-11 20:42:53 UTC) #32
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 4 months ago (2014-08-11 21:05:37 UTC) #33
commit-bot: I haz the power
Try jobs failed on following builders: android_dbg_triggered_tests on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/android_dbg_triggered_tests/builds/4466)
6 years, 4 months ago (2014-08-11 21:05:38 UTC) #34
evy
The CQ bit was checked by evy@chromium.org
6 years, 4 months ago (2014-08-12 00:53:59 UTC) #35
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/evy@chromium.org/429633002/280001
6 years, 4 months ago (2014-08-12 01:04:27 UTC) #36
commit-bot: I haz the power
Change committed as 288857
6 years, 4 months ago (2014-08-12 01:12:54 UTC) #37
tapted
A revert of this CL has been created in https://codereview.chromium.org/466653002/ by tapted@chromium.org. The reason for ...
6 years, 4 months ago (2014-08-12 04:22:58 UTC) #38
evy
The CQ bit was checked by evy@chromium.org
6 years, 4 months ago (2014-08-13 16:20:38 UTC) #39
evy
The CQ bit was unchecked by evy@chromium.org
6 years, 4 months ago (2014-08-13 16:21:03 UTC) #40
evy
The CQ bit was checked by evy@chromium.org
6 years, 4 months ago (2014-08-13 16:24:16 UTC) #41
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/evy@chromium.org/429633002/400001
6 years, 4 months ago (2014-08-13 16:25:30 UTC) #42
commit-bot: I haz the power
6 years, 4 months ago (2014-08-13 18:44:57 UTC) #43
Message was sent while issue was closed.
Committed patchset #16 (400001) as 289334

Powered by Google App Engine
This is Rietveld 408576698