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

Issue 128613003: [Tracking Patch] Unified gesture detection (Closed)

Created:
6 years, 11 months ago by jdduke (slow)
Modified:
6 years, 9 months ago
Reviewers:
tdresser
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, jam, Rick Byers, sadrul
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

[Tracking Patch] Unified gesture detection This is the master patch for unified gesture handling, including the following: * Port of all Android platform gesture detection code to C++ * Removal of current ContentViewGestureHandler and associated code paths * Wiring for Android usage in content/ Wiring for Aura and (potentially) other platforms will proceed separately. BUG=332418

Patch Set 1 #

Total comments: 3

Patch Set 2 : Move to ui/, add (temporary) dependency on WebInputEvent #

Patch Set 3 : Hooks for all required constants on Android #

Patch Set 4 : Updates #

Patch Set 5 : Updates #

Patch Set 6 : Updates #

Patch Set 7 : Wiring #

Patch Set 8 : Massive refactoring #

Patch Set 9 : REbase #

Patch Set 10 : Working (mostly) unit tests #

Patch Set 11 : Working fling tracking #

Patch Set 12 : Folder rename and cleanup #

Patch Set 13 : Cleanup #

Total comments: 19

Patch Set 14 : Address tdresser@ comments and run clang-format on everything #

Total comments: 56

Patch Set 15 : Code review #

Patch Set 16 : Latest working patch #

Patch Set 17 : Rebase #

Patch Set 18 : Another lonely rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+876 lines, -3424 lines) Patch
M build/all.gyp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 2 chunks +2 lines, -0 lines 0 comments Download
M build/android/pylib/gtest/gtest_config.py View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/android/content_view_core_impl.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 9 chunks +22 lines, -33 lines 0 comments Download
M content/browser/android/content_view_core_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 14 chunks +61 lines, -181 lines 0 comments Download
M content/browser/android/gesture_event_type_list.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +2 lines, -3 lines 0 comments Download
A content/browser/renderer_host/input/content_gesture_provider.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +67 lines, -0 lines 0 comments Download
A content/browser/renderer_host/input/content_gesture_provider.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +186 lines, -0 lines 0 comments Download
M content/browser/renderer_host/input/gesture_event_packet.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 2 chunks +5 lines, -0 lines 0 comments Download
M content/browser/renderer_host/input/gesture_event_packet.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 3 chunks +25 lines, -0 lines 0 comments Download
M content/browser/renderer_host/input/motion_event_android.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +48 lines, -46 lines 0 comments Download
M content/browser/renderer_host/input/motion_event_android.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 4 chunks +129 lines, -56 lines 0 comments Download
A content/browser/renderer_host/input/motion_event_web.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +53 lines, -0 lines 0 comments Download
A content/browser/renderer_host/input/motion_event_web.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +148 lines, -0 lines 0 comments Download
M content/browser/renderer_host/input/touch_disposition_gesture_filter.h View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +2 lines, -0 lines 0 comments Download
M content/browser/renderer_host/input/touch_disposition_gesture_filter.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 5 chunks +19 lines, -1 line 0 comments Download
M content/browser/renderer_host/input/touch_disposition_gesture_filter_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +17 lines, -0 lines 0 comments Download
M content/browser/renderer_host/input/web_input_event_builders_android.h View 1 2 3 4 5 6 7 2 chunks +4 lines, -1 line 0 comments Download
M content/browser/renderer_host/input/web_input_event_builders_android.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 3 chunks +14 lines, -14 lines 0 comments Download
M content/content_browser.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 3 chunks +5 lines, -0 lines 0 comments Download
M content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 23 chunks +56 lines, -224 lines 0 comments Download
D content/public/android/java/src/org/chromium/content/browser/ContentViewGestureHandler.java View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +0 lines, -993 lines 0 comments Download
D content/public/android/java/src/org/chromium/content/browser/SnapScrollController.java View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +0 lines, -138 lines 0 comments Download
D content/public/android/javatests/src/org/chromium/content/browser/ContentViewGestureHandlerTest.java View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +0 lines, -1731 lines 0 comments Download
M ui/events/events.gyp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +7 lines, -0 lines 0 comments Download
M ui/events/gesture_detection/motion_event.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +3 lines, -3 lines 0 comments Download

Messages

Total messages: 15 (0 generated)
jdduke (slow)
This isn't really for review, I just wanted to post the results of porting. This ...
6 years, 11 months ago (2014-01-08 18:52:42 UTC) #1
tdresser
This is moving into ui, correct? My primary concern is that we're removing flexibility from ...
6 years, 11 months ago (2014-01-08 19:18:21 UTC) #2
jdduke (slow)
On 2014/01/08 19:18:21, tdresser wrote: > This is moving into ui, correct? > Yes, I ...
6 years, 11 months ago (2014-01-08 19:19:24 UTC) #3
jdduke (slow)
On 2014/01/08 19:18:21, tdresser wrote: > This is moving into ui, correct? > > My ...
6 years, 11 months ago (2014-01-08 19:30:22 UTC) #4
tdresser
On 2014/01/08 19:30:22, jdduke wrote: > On 2014/01/08 19:18:21, tdresser wrote: > > This is ...
6 years, 11 months ago (2014-01-08 19:34:52 UTC) #5
aelias_OOO_until_Jul13
Our "fork" already looks quite different from the original Android class just by virtue of ...
6 years, 11 months ago (2014-01-08 19:35:03 UTC) #6
jdduke (slow)
tdresser@: I'd like to start review of ui/events/gesture_detection (per sadrul@'s preference I opted not to ...
6 years, 10 months ago (2014-02-19 16:31:34 UTC) #7
jdduke (slow)
This patch is a beast, so I'm adding some additional reviewers. As noted above, I'd ...
6 years, 10 months ago (2014-02-19 16:53:22 UTC) #8
tdresser
https://codereview.chromium.org/128613003/diff/710001/ui/events/gesture_detection/gesture_config_helper.h File ui/events/gesture_detection/gesture_config_helper.h (right): https://codereview.chromium.org/128613003/diff/710001/ui/events/gesture_detection/gesture_config_helper.h#newcode1 ui/events/gesture_detection/gesture_config_helper.h:1: // Copyright 2013 The Chromium Authors. All rights reserved. ...
6 years, 10 months ago (2014-02-19 17:44:12 UTC) #9
jdduke (slow)
https://codereview.chromium.org/128613003/diff/710001/ui/events/gesture_detection/gesture_config_helper.h File ui/events/gesture_detection/gesture_config_helper.h (right): https://codereview.chromium.org/128613003/diff/710001/ui/events/gesture_detection/gesture_config_helper.h#newcode1 ui/events/gesture_detection/gesture_config_helper.h:1: // Copyright 2013 The Chromium Authors. All rights reserved. ...
6 years, 10 months ago (2014-02-19 18:51:58 UTC) #10
tdresser
ui/events/gesture_detection/gesture_config_helper* LGTM. https://codereview.chromium.org/128613003/diff/790001/ui/events/gesture_detection/gesture_config_helper_android.cc File ui/events/gesture_detection/gesture_config_helper_android.cc (right): https://codereview.chromium.org/128613003/diff/790001/ui/events/gesture_detection/gesture_config_helper_android.cc#newcode21 ui/events/gesture_detection/gesture_config_helper_android.cc:21: config.tap_timeout = That is some spectacularly inconsistent ...
6 years, 10 months ago (2014-02-19 19:42:27 UTC) #11
Xianzhu
https://codereview.chromium.org/128613003/diff/790001/ui/events/gesture_detection/scale_gesture_detector.cc File ui/events/gesture_detection/scale_gesture_detector.cc (right): https://codereview.chromium.org/128613003/diff/790001/ui/events/gesture_detection/scale_gesture_detector.cc#newcode19 ui/events/gesture_detection/scale_gesture_detector.cc:19: const TimeDelta TOUCH_STABILIZE_TIME = TimeDelta::FromMilliseconds(128); Global variables of class ...
6 years, 10 months ago (2014-02-19 22:01:55 UTC) #12
Sami
Keep those scary patches coming Jared :) I had look at ui/events/gesture_detection/gesture_detector.{h,cc} and while no ...
6 years, 10 months ago (2014-02-20 14:59:04 UTC) #13
jdduke (slow)
Thanks Sami and Xianzhu! I went ahead and cleaned up some more non-period-terminated comments and ...
6 years, 10 months ago (2014-02-20 18:01:08 UTC) #14
jdduke (slow)
6 years, 10 months ago (2014-02-20 18:14:12 UTC) #15
ui/events/gesture_detection changes have been split into
https://codereview.chromium.org/171773012/, so if there are additional comments
(for that portion of the code) please post them there.  Thanks.

Powered by Google App Engine
This is Rietveld 408576698