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

Issue 9452024: Gestures are now possible using touch events with any ids (Closed)

Created:
8 years, 10 months ago by tdresser
Modified:
8 years, 9 months ago
CC:
chromium-reviews, dhollowa+watch_chromium.org, sadrul, ben+watch_chromium.org
Base URL:
http://git.chromium.org/chromium/src.git@master
Visibility:
Public.

Description

Gestures are now possible using touch events with any ids Each gesture point stores a "point_id," which is used for state transitions in the GestureRecognizer. The point_ids are maintained such that the set of point_ids is always contiguous, from 0 to the number of current touches. A lower point_id indicates that a touch occurred first. BUG=113144 TEST=GestureRecognizerTest.* Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=123989 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=124071 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=124668

Patch Set 1 #

Total comments: 10

Patch Set 2 : Comments, merge in_use_ and point_id_ #

Patch Set 3 : Commented GetPointByPointId #

Total comments: 11

Patch Set 4 : Sadrul's fixes #

Total comments: 7

Patch Set 5 : Removed unnecessary DCHECK #

Patch Set 6 : Rebase #

Patch Set 7 : Fix aura_shell_unittests #

Patch Set 8 : Ignore events which haven't been preceded by a press. Fix pinch. #

Total comments: 3

Patch Set 9 : Allow consecutive touch presses with the same touch-id. #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+258 lines, -123 lines) Patch
M ash/wm/root_window_event_filter_unittest.cc View 1 2 3 4 5 6 7 3 chunks +6 lines, -4 lines 0 comments Download
M ui/aura/gestures/gesture_point.h View 1 2 3 4 5 2 chunks +11 lines, -3 lines 1 comment Download
M ui/aura/gestures/gesture_point.cc View 1 2 chunks +3 lines, -1 line 0 comments Download
M ui/aura/gestures/gesture_recognizer_unittest.cc View 1 2 3 4 5 6 7 58 chunks +164 lines, -64 lines 0 comments Download
M ui/aura/gestures/gesture_sequence.h View 1 2 3 4 5 1 chunk +5 lines, -1 line 0 comments Download
M ui/aura/gestures/gesture_sequence.cc View 1 2 3 4 5 6 7 8 14 chunks +67 lines, -49 lines 0 comments Download
M ui/aura/window_unittest.cc View 1 2 3 4 5 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 29 (0 generated)
tdresser
8 years, 10 months ago (2012-02-23 18:04:00 UTC) #1
rjkroege
https://chromiumcodereview.appspot.com/9452024/diff/1/ui/aura/gestures/gesture_point.h File ui/aura/gestures/gesture_point.h (right): https://chromiumcodereview.appspot.com/9452024/diff/1/ui/aura/gestures/gesture_point.h#newcode56 ui/aura/gestures/gesture_point.h:56: void set_point_id(int point_id) { point_id_ = point_id; } can ...
8 years, 10 months ago (2012-02-23 19:39:45 UTC) #2
tdresser
https://chromiumcodereview.appspot.com/9452024/diff/1/ui/aura/gestures/gesture_point.h File ui/aura/gestures/gesture_point.h (right): https://chromiumcodereview.appspot.com/9452024/diff/1/ui/aura/gestures/gesture_point.h#newcode56 ui/aura/gestures/gesture_point.h:56: void set_point_id(int point_id) { point_id_ = point_id; } On ...
8 years, 10 months ago (2012-02-23 20:13:07 UTC) #3
sadrul
Very nice. Some comments: http://codereview.chromium.org/9452024/diff/6001/ui/aura/gestures/gesture_point.h File ui/aura/gestures/gesture_point.h (right): http://codereview.chromium.org/9452024/diff/6001/ui/aura/gestures/gesture_point.h#newcode98 ui/aura/gestures/gesture_point.h:98: bool in_use_; Remove http://codereview.chromium.org/9452024/diff/6001/ui/aura/gestures/gesture_sequence.cc File ...
8 years, 10 months ago (2012-02-23 21:44:14 UTC) #4
tdresser
http://codereview.chromium.org/9452024/diff/6001/ui/aura/gestures/gesture_point.h File ui/aura/gestures/gesture_point.h (right): http://codereview.chromium.org/9452024/diff/6001/ui/aura/gestures/gesture_point.h#newcode98 ui/aura/gestures/gesture_point.h:98: bool in_use_; On 2012/02/23 21:44:14, sadrul wrote: > Remove ...
8 years, 10 months ago (2012-02-23 22:16:55 UTC) #5
sadrul
Very nice! LGTM with the following changes: http://codereview.chromium.org/9452024/diff/4005/ui/aura/gestures/gesture_sequence.cc File ui/aura/gestures/gesture_sequence.cc (right): http://codereview.chromium.org/9452024/diff/4005/ui/aura/gestures/gesture_sequence.cc#newcode256 ui/aura/gestures/gesture_sequence.cc:256: for (int ...
8 years, 10 months ago (2012-02-24 17:52:24 UTC) #6
tdresser
http://codereview.chromium.org/9452024/diff/4005/ui/aura/gestures/gesture_sequence.cc File ui/aura/gestures/gesture_sequence.cc (right): http://codereview.chromium.org/9452024/diff/4005/ui/aura/gestures/gesture_sequence.cc#newcode256 ui/aura/gestures/gesture_sequence.cc:256: for (int i = 0; i < kMaxGesturePoints; ++i) ...
8 years, 10 months ago (2012-02-24 18:19:50 UTC) #7
sadrul
http://codereview.chromium.org/9452024/diff/4005/ui/aura/gestures/gesture_sequence.cc File ui/aura/gestures/gesture_sequence.cc (right): http://codereview.chromium.org/9452024/diff/4005/ui/aura/gestures/gesture_sequence.cc#newcode256 ui/aura/gestures/gesture_sequence.cc:256: for (int i = 0; i < kMaxGesturePoints; ++i) ...
8 years, 10 months ago (2012-02-24 18:21:01 UTC) #8
rjkroege
lgtm http://codereview.chromium.org/9452024/diff/4005/ui/aura/gestures/gesture_sequence.cc File ui/aura/gestures/gesture_sequence.cc (right): http://codereview.chromium.org/9452024/diff/4005/ui/aura/gestures/gesture_sequence.cc#newcode250 ui/aura/gestures/gesture_sequence.cc:250: // The set of point_ids must be contiguous ...
8 years, 10 months ago (2012-02-24 19:11:29 UTC) #9
sadrul
http://codereview.chromium.org/9452024/diff/4005/ui/aura/gestures/gesture_sequence.cc File ui/aura/gestures/gesture_sequence.cc (right): http://codereview.chromium.org/9452024/diff/4005/ui/aura/gestures/gesture_sequence.cc#newcode250 ui/aura/gestures/gesture_sequence.cc:250: // The set of point_ids must be contiguous and ...
8 years, 9 months ago (2012-02-25 19:06:30 UTC) #10
Ben Goodger (Google)
LGTM for window_unittest.cc
8 years, 9 months ago (2012-02-27 20:25:23 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tdresser@chromium.org/9452024/6009
8 years, 9 months ago (2012-02-27 23:28:52 UTC) #12
commit-bot: I haz the power
Can't apply patch for file ui/aura/gestures/gesture_point.h. While running patch -p1 --forward --force; patching file ui/aura/gestures/gesture_point.h ...
8 years, 9 months ago (2012-02-27 23:28:54 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tdresser@chromium.org/9452024/19001
8 years, 9 months ago (2012-02-28 14:43:11 UTC) #14
commit-bot: I haz the power
Change committed as 123989
8 years, 9 months ago (2012-02-28 17:09:58 UTC) #15
tdresser
I needed to do a minor tweak to ash/wm/root_window_event_filter_unittest.cc. Ben, could you take a look?
8 years, 9 months ago (2012-02-28 17:58:27 UTC) #16
Ben Goodger (Google)
lgtm
8 years, 9 months ago (2012-02-28 20:12:49 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tdresser@chromium.org/9452024/21001
8 years, 9 months ago (2012-02-28 21:19:43 UTC) #18
commit-bot: I haz the power
Try job failure for 9452024-21001 (retry) on mac_rel for step "compile" (clobber build). It's a ...
8 years, 9 months ago (2012-02-28 22:06:08 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tdresser@chromium.org/9452024/21001
8 years, 9 months ago (2012-02-28 22:13:34 UTC) #20
commit-bot: I haz the power
Change committed as 124071
8 years, 9 months ago (2012-02-29 00:37:37 UTC) #21
tdresser
Sadrul, could you take another look at this? http://codereview.chromium.org/9452024/diff/34001/ui/aura/gestures/gesture_sequence.cc File ui/aura/gestures/gesture_sequence.cc (right): http://codereview.chromium.org/9452024/diff/34001/ui/aura/gestures/gesture_sequence.cc#newcode171 ui/aura/gestures/gesture_sequence.cc:171: DCHECK(!points_[event.touch_id()].in_use()); ...
8 years, 9 months ago (2012-03-02 14:04:02 UTC) #22
sadrul
http://codereview.chromium.org/9452024/diff/34001/ui/aura/gestures/gesture_sequence.cc File ui/aura/gestures/gesture_sequence.cc (right): http://codereview.chromium.org/9452024/diff/34001/ui/aura/gestures/gesture_sequence.cc#newcode171 ui/aura/gestures/gesture_sequence.cc:171: DCHECK(!points_[event.touch_id()].in_use()); On 2012/03/02 14:04:02, tdresser wrote: > Is this ...
8 years, 9 months ago (2012-03-02 14:20:31 UTC) #23
tdresser
http://codereview.chromium.org/9452024/diff/34001/ui/aura/gestures/gesture_sequence.cc File ui/aura/gestures/gesture_sequence.cc (right): http://codereview.chromium.org/9452024/diff/34001/ui/aura/gestures/gesture_sequence.cc#newcode171 ui/aura/gestures/gesture_sequence.cc:171: DCHECK(!points_[event.touch_id()].in_use()); On 2012/03/02 14:20:31, sadrul wrote: > On 2012/03/02 ...
8 years, 9 months ago (2012-03-02 15:11:27 UTC) #24
sadrul
lgtm
8 years, 9 months ago (2012-03-02 15:12:18 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tdresser@chromium.org/9452024/45001
8 years, 9 months ago (2012-03-02 15:13:35 UTC) #26
commit-bot: I haz the power
Change committed as 124668
8 years, 9 months ago (2012-03-02 16:52:00 UTC) #27
dhollowa
http://codereview.chromium.org/9452024/diff/45001/ui/aura/gestures/gesture_point.h File ui/aura/gestures/gesture_point.h (right): http://codereview.chromium.org/9452024/diff/45001/ui/aura/gestures/gesture_point.h#newcode63 ui/aura/gestures/gesture_point.h:63: const int point_id() const { return point_id_; } This ...
8 years, 9 months ago (2012-03-02 22:23:13 UTC) #28
tdresser
8 years, 9 months ago (2012-03-05 14:06:33 UTC) #29
On 2012/03/02 22:23:13, dhollowa wrote:
>
http://codereview.chromium.org/9452024/diff/45001/ui/aura/gestures/gesture_po...
> File ui/aura/gestures/gesture_point.h (right):
> 
>
http://codereview.chromium.org/9452024/diff/45001/ui/aura/gestures/gesture_po...
> ui/aura/gestures/gesture_point.h:63: const int point_id() const { return
> point_id_; }
> This use of const failed to compile on clang.  For extra coverage you can use
> the 'mac_aura' try bot.

dhollowa: thanks for landing the fix.

Powered by Google App Engine
This is Rietveld 408576698