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

Issue 171773012: Port of Android platform gesture detection code to C++ (Closed)

Created:
6 years, 10 months ago by jdduke (slow)
Modified:
6 years, 10 months ago
Reviewers:
Xianzhu, tdresser, Sami
CC:
chromium-reviews, Sami, Xianzhu, sadrul
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Port of Android platform gesture detection code to C++ This is a direct C++ port of all Java classes utilized by the current ContentViewGestureHandler, including forks of Android C++ classes used in gesture detection. This includes the following: * ZoomManager - Forked from Chromium. * SnapScrollingController - Forked from Chromium. * GestureDetector - Forked from Chromium class originally from Android. * ScaleGestureDetector - Forked from Android. * VelocityTracker - Forked from Android. * VelocityTrackerState - Forked from Android. * BitSet32 - Forked from Android. A MotionEvent class is introduced to abstract touch event API differences between Chromium and Android, allowing other platforms to hook into the detection pipeline without loss of generality. Note that this patch is additive only, and does not affect gesture detection for current platforms. Wiring for Android and Aura will land in separate patches. (see https://codereview.chromium.org/128613003/) BUG=332418 NOTRY=true Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=253489

Patch Set 1 #

Total comments: 9

Patch Set 2 : Code review #

Total comments: 22

Patch Set 3 : Code review #

Patch Set 4 : Fix win and linux builds #

Patch Set 5 : More linux fixes #

Patch Set 6 : Aura fixes #

Patch Set 7 : Rebase #

Patch Set 8 : More fixes #

Patch Set 9 : More fixes #

Patch Set 10 : More tests and fix for VLA #

Patch Set 11 : msvc fixes #

Patch Set 12 : More msvc fixes #

Patch Set 13 : Fix win #

Patch Set 14 : More win fixes......... #

Patch Set 15 : Fix win yet again......................... #

Patch Set 16 : One more fix #

Patch Set 17 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+5360 lines, -0 lines) Patch
M ui/events/events.gyp View 1 2 3 4 5 6 7 8 9 10 11 12 13 4 chunks +80 lines, -0 lines 0 comments Download
A ui/events/gesture_detection/OWNERS View 1 chunk +2 lines, -0 lines 0 comments Download
A ui/events/gesture_detection/bitset_32.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +128 lines, -0 lines 0 comments Download
A ui/events/gesture_detection/bitset_32_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +100 lines, -0 lines 0 comments Download
A ui/events/gesture_detection/gesture_config_helper.h View 1 chunk +30 lines, -0 lines 0 comments Download
A ui/events/gesture_detection/gesture_config_helper.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +25 lines, -0 lines 0 comments Download
A ui/events/gesture_detection/gesture_config_helper_android.cc View 1 chunk +71 lines, -0 lines 0 comments Download
A ui/events/gesture_detection/gesture_config_helper_aura.cc View 1 2 3 4 5 6 7 1 chunk +65 lines, -0 lines 0 comments Download
A ui/events/gesture_detection/gesture_detection_export.h View 1 chunk +29 lines, -0 lines 0 comments Download
A ui/events/gesture_detection/gesture_detector.h View 1 chunk +146 lines, -0 lines 0 comments Download
A ui/events/gesture_detection/gesture_detector.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +401 lines, -0 lines 0 comments Download
A ui/events/gesture_detection/gesture_event_params.h View 1 chunk +104 lines, -0 lines 0 comments Download
A ui/events/gesture_detection/gesture_event_params.cc View 1 chunk +18 lines, -0 lines 0 comments Download
A ui/events/gesture_detection/gesture_provider.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +129 lines, -0 lines 0 comments Download
A ui/events/gesture_detection/gesture_provider.cc View 1 2 3 4 1 chunk +811 lines, -0 lines 0 comments Download
A ui/events/gesture_detection/gesture_provider_unittest.cc View 1 1 chunk +1013 lines, -0 lines 0 comments Download
A ui/events/gesture_detection/mock_motion_event.h View 1 chunk +53 lines, -0 lines 0 comments Download
A ui/events/gesture_detection/mock_motion_event.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +101 lines, -0 lines 0 comments Download
A ui/events/gesture_detection/motion_event.h View 1 1 chunk +64 lines, -0 lines 0 comments Download
A ui/events/gesture_detection/scale_gesture_detector.h View 1 chunk +140 lines, -0 lines 0 comments Download
A ui/events/gesture_detection/scale_gesture_detector.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +367 lines, -0 lines 0 comments Download
A ui/events/gesture_detection/snap_scroll_controller.h View 1 chunk +66 lines, -0 lines 0 comments Download
A ui/events/gesture_detection/snap_scroll_controller.cc View 1 2 3 1 chunk +115 lines, -0 lines 0 comments Download
A ui/events/gesture_detection/velocity_tracker.h View 1 1 chunk +148 lines, -0 lines 0 comments Download
A ui/events/gesture_detection/velocity_tracker.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +806 lines, -0 lines 0 comments Download
A ui/events/gesture_detection/velocity_tracker_state.h View 1 chunk +50 lines, -0 lines 0 comments Download
A ui/events/gesture_detection/velocity_tracker_state.cc View 1 1 chunk +105 lines, -0 lines 0 comments Download
A ui/events/gesture_detection/velocity_tracker_unittest.cc View 1 2 3 4 5 6 7 8 9 1 chunk +193 lines, -0 lines 0 comments Download

Messages

Total messages: 30 (0 generated)
jdduke (slow)
I think this is ready to go. Now that M34 has branched, we can move ...
6 years, 10 months ago (2014-02-20 18:15:38 UTC) #1
tdresser
I've skimmed through everything, and made a few comments. I'm not sure how it makes ...
6 years, 10 months ago (2014-02-20 19:11:19 UTC) #2
jdduke (slow)
On 2014/02/20 19:11:19, tdresser wrote: > I'd appreciate another set of eyes at least on ...
6 years, 10 months ago (2014-02-20 22:52:07 UTC) #3
jdduke (slow)
https://codereview.chromium.org/171773012/diff/1/ui/events/events.gyp File ui/events/events.gyp (right): https://codereview.chromium.org/171773012/diff/1/ui/events/events.gyp#newcode64 ui/events/events.gyp:64: }] On 2014/02/20 19:11:24, tdresser wrote: > Trailing commas ...
6 years, 10 months ago (2014-02-21 02:31:55 UTC) #4
tdresser
Sounds good. Everything except ui/events/gesture_detection/gesture_provider* LGTM. https://codereview.chromium.org/171773012/diff/1/ui/events/gesture_detection/velocity_tracker.h File ui/events/gesture_detection/velocity_tracker.h (right): https://codereview.chromium.org/171773012/diff/1/ui/events/gesture_detection/velocity_tracker.h#newcode31 ui/events/gesture_detection/velocity_tracker.h:31: enum Strategy { ...
6 years, 10 months ago (2014-02-21 14:29:28 UTC) #5
jdduke (slow)
skyostil@: I hate to add another review to your plate, but you may be the ...
6 years, 10 months ago (2014-02-21 15:58:18 UTC) #6
Xianzhu
scale_gesture_detector lgtm.
6 years, 10 months ago (2014-02-21 17:45:43 UTC) #7
Sami
gesture_provider.{h,cc} lgtm. Just some minor nits. https://codereview.chromium.org/171773012/diff/90001/ui/events/gesture_detection/gesture_provider.cc File ui/events/gesture_detection/gesture_provider.cc (right): https://codereview.chromium.org/171773012/diff/90001/ui/events/gesture_detection/gesture_provider.cc#newcode70 ui/events/gesture_detection/gesture_provider.cc:70: // TODO: Need ...
6 years, 10 months ago (2014-02-21 18:59:08 UTC) #8
jdduke (slow)
Thank you all! https://codereview.chromium.org/171773012/diff/90001/ui/events/gesture_detection/gesture_provider.cc File ui/events/gesture_detection/gesture_provider.cc (right): https://codereview.chromium.org/171773012/diff/90001/ui/events/gesture_detection/gesture_provider.cc#newcode70 ui/events/gesture_detection/gesture_provider.cc:70: // TODO: Need to deal with ...
6 years, 10 months ago (2014-02-21 20:59:11 UTC) #9
jdduke (slow)
The CQ bit was checked by jdduke@chromium.org
6 years, 10 months ago (2014-02-25 17:51:01 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jdduke@chromium.org/171773012/720001
6 years, 10 months ago (2014-02-25 17:53:14 UTC) #11
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 10 months ago (2014-02-25 19:35:21 UTC) #12
commit-bot: I haz the power
Retried try job too often on win_rel for step(s) base_unittests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_rel&number=269885
6 years, 10 months ago (2014-02-25 19:35:21 UTC) #13
jdduke (slow)
The CQ bit was checked by jdduke@chromium.org
6 years, 10 months ago (2014-02-25 20:07:17 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jdduke@chromium.org/171773012/720001
6 years, 10 months ago (2014-02-25 20:07:42 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jdduke@chromium.org/171773012/720001
6 years, 10 months ago (2014-02-25 21:56:08 UTC) #16
jdduke (slow)
The CQ bit was checked by jdduke@chromium.org
6 years, 10 months ago (2014-02-25 21:57:53 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jdduke@chromium.org/171773012/740001
6 years, 10 months ago (2014-02-25 22:22:04 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jdduke@chromium.org/171773012/740001
6 years, 10 months ago (2014-02-25 23:27:42 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jdduke@chromium.org/171773012/740001
6 years, 10 months ago (2014-02-26 00:13:45 UTC) #20
jdduke (slow)
The CQ bit was unchecked by jdduke@chromium.org
6 years, 10 months ago (2014-02-26 01:24:16 UTC) #21
jdduke (slow)
The CQ bit was checked by jdduke@chromium.org
6 years, 10 months ago (2014-02-26 01:24:38 UTC) #22
Paweł Hajdan Jr.
The CQ bit was unchecked by phajdan.jr@chromium.org
6 years, 10 months ago (2014-02-26 04:41:34 UTC) #23
jdduke (slow)
The CQ bit was checked by jdduke@chromium.org
6 years, 10 months ago (2014-02-26 04:52:10 UTC) #24
jdduke (slow)
The CQ bit was unchecked by jdduke@chromium.org
6 years, 10 months ago (2014-02-26 13:02:14 UTC) #25
jdduke (slow)
The CQ bit was checked by jdduke@chromium.org
6 years, 10 months ago (2014-02-26 13:02:32 UTC) #26
jdduke (slow)
The CQ bit was unchecked by jdduke@chromium.org
6 years, 10 months ago (2014-02-26 15:10:47 UTC) #27
jdduke (slow)
The CQ bit was checked by jdduke@chromium.org
6 years, 10 months ago (2014-02-26 16:24:00 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jdduke@chromium.org/171773012/750001
6 years, 10 months ago (2014-02-26 16:24:07 UTC) #29
commit-bot: I haz the power
6 years, 10 months ago (2014-02-26 17:20:18 UTC) #30
Message was sent while issue was closed.
Change committed as 253489

Powered by Google App Engine
This is Rietveld 408576698