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

Issue 62443007: Replace old with new synthetic gesture framework. (Closed)

Created:
7 years, 1 month ago by Dominik Grewe
Modified:
7 years, 1 month ago
CC:
chromium-reviews, jbauman+watch_chromium.org, yusukes+watch_chromium.org, yukishiino+watch_chromium.org, extensions-reviews_chromium.org, jam, penghuang+watch_chromium.org, chromium-apps-reviews_chromium.org, sievers+watch_chromium.org, joi+watch-content_chromium.org, nona+watch_chromium.org, chrome-speed-team+watch_google.com, darin-cc_chromium.org, telemetry+watch_chromium.org, kalyank, piman+watch_chromium.org, danakj+watch_chromium.org, James Su, miu+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Replace old with new synthetic gesture framework. - Remove current implementation of synthetic gestures. - Rename temporarily named classes and files of new synthetic gesture framework (e.g. SyntheticGestureNew -> SyntheticGesture). - Link up new implementation in browser and renderer. - Hook up synthetic gesture controller to input flushing in RWHI. - Update JavaScript front-end and Telemetry. BUG=297980 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=236254 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=236545

Patch Set 1 #

Total comments: 10

Patch Set 2 : Update. #

Total comments: 2

Patch Set 3 : Forward declare SyntheticGestureController. #

Total comments: 4

Patch Set 4 : Reset gesture controller in RWHI::SetView(). #

Patch Set 5 : Set coordinates in mouse wheel event for smooth scroll. #

Total comments: 4

Patch Set 6 : piman's comments. #

Total comments: 7

Patch Set 7 : Remove unused 'kMinimumPointerDistance' variable. #

Patch Set 8 : opt_mouse_move_event_x/y -> opt_start_x/y #

Unified diffs Side-by-side diffs Delta from patch set Stats (+307 lines, -2496 lines) Patch
M content/browser/android/content_view_core_impl.h View 1 chunk +0 lines, -11 lines 0 comments Download
M content/browser/android/content_view_core_impl.cc View 1 chunk +0 lines, -24 lines 0 comments Download
D content/browser/renderer_host/basic_mouse_wheel_smooth_scroll_gesture.h View 1 chunk +0 lines, -37 lines 0 comments Download
D content/browser/renderer_host/basic_mouse_wheel_smooth_scroll_gesture.cc View 1 chunk +0 lines, -61 lines 0 comments Download
D content/browser/renderer_host/generic_touch_gesture_android.h View 1 chunk +0 lines, -48 lines 0 comments Download
D content/browser/renderer_host/generic_touch_gesture_android.cc View 1 chunk +0 lines, -62 lines 0 comments Download
M content/browser/renderer_host/input/immediate_input_router.cc View 1 chunk +1 line, -3 lines 0 comments Download
A + content/browser/renderer_host/input/synthetic_gesture.h View 3 chunks +6 lines, -5 lines 0 comments Download
A + content/browser/renderer_host/input/synthetic_gesture.cc View 1 chunk +11 lines, -11 lines 0 comments Download
A + content/browser/renderer_host/input/synthetic_gesture_controller.h View 2 chunks +10 lines, -10 lines 0 comments Download
A + content/browser/renderer_host/input/synthetic_gesture_controller.cc View 5 chunks +12 lines, -13 lines 0 comments Download
D content/browser/renderer_host/input/synthetic_gesture_controller_new.h View 1 chunk +0 lines, -49 lines 0 comments Download
D content/browser/renderer_host/input/synthetic_gesture_controller_new.cc View 1 chunk +0 lines, -81 lines 0 comments Download
D content/browser/renderer_host/input/synthetic_gesture_controller_new_unittest.cc View 1 chunk +0 lines, -431 lines 0 comments Download
A + content/browser/renderer_host/input/synthetic_gesture_controller_unittest.cc View 1 2 3 4 5 20 chunks +46 lines, -45 lines 0 comments Download
D content/browser/renderer_host/input/synthetic_gesture_new.h View 1 chunk +0 lines, -56 lines 0 comments Download
D content/browser/renderer_host/input/synthetic_gesture_new.cc View 1 chunk +0 lines, -41 lines 0 comments Download
M content/browser/renderer_host/input/synthetic_gesture_target.h View 2 chunks +2 lines, -2 lines 0 comments Download
M content/browser/renderer_host/input/synthetic_gesture_target_base.h View 1 chunk +1 line, -1 line 0 comments Download
M content/browser/renderer_host/input/synthetic_gesture_target_base.cc View 1 2 3 4 5 3 chunks +4 lines, -1 line 0 comments Download
A + content/browser/renderer_host/input/synthetic_pinch_gesture.h View 4 chunks +8 lines, -8 lines 0 comments Download
A + content/browser/renderer_host/input/synthetic_pinch_gesture.cc View 5 chunks +13 lines, -15 lines 0 comments Download
D content/browser/renderer_host/input/synthetic_pinch_gesture_new.h View 1 chunk +0 lines, -48 lines 0 comments Download
D content/browser/renderer_host/input/synthetic_pinch_gesture_new.cc View 1 chunk +0 lines, -111 lines 0 comments Download
A + content/browser/renderer_host/input/synthetic_smooth_scroll_gesture.h View 3 chunks +9 lines, -10 lines 0 comments Download
A + content/browser/renderer_host/input/synthetic_smooth_scroll_gesture.cc View 1 2 3 4 5 chunks +25 lines, -27 lines 0 comments Download
D content/browser/renderer_host/input/synthetic_smooth_scroll_gesture_new.h View 1 chunk +0 lines, -51 lines 0 comments Download
D content/browser/renderer_host/input/synthetic_smooth_scroll_gesture_new.cc View 1 chunk +0 lines, -110 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_impl.h View 1 2 4 chunks +3 lines, -8 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_impl.cc View 1 2 3 8 chunks +22 lines, -18 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_android.h View 1 chunk +0 lines, -6 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_android.cc View 1 2 3 4 5 6 3 chunks +0 lines, -26 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_aura.h View 1 chunk +0 lines, -5 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_aura.cc View 2 chunks +0 lines, -13 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_base.h View 1 chunk +0 lines, -6 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_base.cc View 2 chunks +0 lines, -17 lines 0 comments Download
D content/browser/renderer_host/synthetic_gesture_calculator.h View 1 chunk +0 lines, -28 lines 0 comments Download
D content/browser/renderer_host/synthetic_gesture_calculator.cc View 1 chunk +0 lines, -37 lines 0 comments Download
D content/browser/renderer_host/synthetic_gesture_controller.h View 1 chunk +0 lines, -57 lines 0 comments Download
D content/browser/renderer_host/synthetic_gesture_controller.cc View 1 chunk +0 lines, -84 lines 0 comments Download
D content/browser/renderer_host/synthetic_gesture_controller_unittest.cc View 1 chunk +0 lines, -183 lines 0 comments Download
D content/browser/renderer_host/touch_smooth_scroll_gesture_aura.h View 1 chunk +0 lines, -45 lines 0 comments Download
D content/browser/renderer_host/touch_smooth_scroll_gesture_aura.cc View 1 chunk +0 lines, -75 lines 0 comments Download
M content/common/input_messages.h View 3 chunks +6 lines, -0 lines 0 comments Download
M content/common/view_messages.h View 2 chunks +0 lines, -23 lines 0 comments Download
M content/content_browser.gypi View 6 chunks +8 lines, -19 lines 0 comments Download
M content/content_jni.gypi View 1 chunk +0 lines, -1 line 0 comments Download
M content/content_tests.gypi View 2 chunks +1 line, -2 lines 0 comments Download
M content/port/browser/render_widget_host_view_port.h View 1 chunk +0 lines, -11 lines 0 comments Download
D content/port/browser/synthetic_gesture.h View 1 chunk +0 lines, -36 lines 0 comments Download
M content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java View 1 chunk +0 lines, -16 lines 0 comments Download
D content/public/android/java/src/org/chromium/content/browser/GenericTouchGesture.java View 1 chunk +0 lines, -296 lines 0 comments Download
M content/renderer/gpu/gpu_benchmarking_extension.cc View 1 2 3 4 5 6 7 8 chunks +73 lines, -46 lines 0 comments Download
M content/renderer/render_widget.h View 3 chunks +11 lines, -22 lines 0 comments Download
M content/renderer/render_widget.cc View 6 chunks +20 lines, -39 lines 0 comments Download
M tools/telemetry/telemetry/page/actions/scroll.js View 2 chunks +3 lines, -1 line 0 comments Download
M tools/telemetry/telemetry/page/actions/scroll.py View 2 chunks +12 lines, -4 lines 0 comments Download

Messages

Total messages: 23 (0 generated)
Dominik Grewe
PTAL. The patch is quite big, but the majority of changes are to do with ...
7 years, 1 month ago (2013-11-18 16:07:13 UTC) #1
jdduke (slow)
Looking good. I think my main question is if the gesture controller would fit better ...
7 years, 1 month ago (2013-11-18 16:32:55 UTC) #2
Dominik Grewe
I think I'd rather keep the gesture controller in RWHI for now. As you said, ...
7 years, 1 month ago (2013-11-18 17:48:05 UTC) #3
jdduke (slow)
On 2013/11/18 17:48:05, Dominik Grewe wrote: > I think I'd rather keep the gesture controller ...
7 years, 1 month ago (2013-11-18 17:55:23 UTC) #4
jdduke (slow)
content/browser/renderer_host/input lgtm. https://codereview.chromium.org/62443007/diff/80001/content/browser/renderer_host/render_widget_host_impl.cc File content/browser/renderer_host/render_widget_host_impl.cc (right): https://codereview.chromium.org/62443007/diff/80001/content/browser/renderer_host/render_widget_host_impl.cc#newcode1719 content/browser/renderer_host/render_widget_host_impl.cc:1719: if (!view_) Do you think it's worth ...
7 years, 1 month ago (2013-11-18 17:58:44 UTC) #5
Dominik Grewe
https://codereview.chromium.org/62443007/diff/1/content/browser/renderer_host/render_widget_host_impl.h File content/browser/renderer_host/render_widget_host_impl.h (right): https://codereview.chromium.org/62443007/diff/1/content/browser/renderer_host/render_widget_host_impl.h#newcode28 content/browser/renderer_host/render_widget_host_impl.h:28: #include "content/browser/renderer_host/input/synthetic_gesture_controller.h" On 2013/11/18 17:48:05, Dominik Grewe wrote: > ...
7 years, 1 month ago (2013-11-18 18:09:40 UTC) #6
Dominik Grewe
Adding more owners. Please look at the following files. Thanks! bulach: content/public/android/* & content/browser/android/* & ...
7 years, 1 month ago (2013-11-18 18:27:34 UTC) #7
sadrul
lgtm https://codereview.chromium.org/62443007/diff/160001/content/browser/renderer_host/render_widget_host_impl.cc File content/browser/renderer_host/render_widget_host_impl.cc (right): https://codereview.chromium.org/62443007/diff/160001/content/browser/renderer_host/render_widget_host_impl.cc#newcode316 content/browser/renderer_host/render_widget_host_impl.cc:316: view_ = RenderWidgetHostViewPort::FromRWHV(view); Should you reset synthetic_gesture_controller_ here ...
7 years, 1 month ago (2013-11-19 10:02:22 UTC) #8
Dominik Grewe
Thanks, Sadrul! https://codereview.chromium.org/62443007/diff/160001/content/browser/renderer_host/render_widget_host_impl.cc File content/browser/renderer_host/render_widget_host_impl.cc (right): https://codereview.chromium.org/62443007/diff/160001/content/browser/renderer_host/render_widget_host_impl.cc#newcode316 content/browser/renderer_host/render_widget_host_impl.cc:316: view_ = RenderWidgetHostViewPort::FromRWHV(view); On 2013/11/19 10:02:23, sadrul ...
7 years, 1 month ago (2013-11-19 11:32:41 UTC) #9
kenrb
lgtm with a caveat. If my observation about type casting is correct then you could ...
7 years, 1 month ago (2013-11-19 15:43:07 UTC) #10
Dominik Grewe
Thanks for the feedback, Ken! I'm happy to address this issue in this CL if ...
7 years, 1 month ago (2013-11-19 17:10:27 UTC) #11
jdduke (slow)
On 2013/11/19 17:10:27, Dominik Grewe wrote: > Thanks for the feedback, Ken! I'm happy to ...
7 years, 1 month ago (2013-11-19 18:48:11 UTC) #12
kenrb
On 2013/11/19 18:48:11, jdduke wrote: > The browser should only be using SyntheticGestureParam derivates created ...
7 years, 1 month ago (2013-11-19 20:10:05 UTC) #13
piman
LGTM + couple of nits. https://codereview.chromium.org/62443007/diff/330001/content/browser/renderer_host/input/synthetic_gesture_controller_unittest.cc File content/browser/renderer_host/input/synthetic_gesture_controller_unittest.cc (right): https://codereview.chromium.org/62443007/diff/330001/content/browser/renderer_host/input/synthetic_gesture_controller_unittest.cc#newcode30 content/browser/renderer_host/input/synthetic_gesture_controller_unittest.cc:30: MockSyntheticGesture(bool *finished, int num_steps) ...
7 years, 1 month ago (2013-11-19 20:45:17 UTC) #14
Dominik Grewe
Thanks for the feedback, piman and kenrb. And thanks for the clarification jdduke! https://codereview.chromium.org/62443007/diff/330001/content/browser/renderer_host/input/synthetic_gesture_controller_unittest.cc File ...
7 years, 1 month ago (2013-11-20 10:16:31 UTC) #15
bulach
good stuff!!! overall lgtm, but some important comments below about running telemetry against older versions... ...
7 years, 1 month ago (2013-11-20 12:06:16 UTC) #16
Dominik Grewe
Thanks Marcus! New patch uploaded. https://codereview.chromium.org/62443007/diff/400001/content/renderer/gpu/gpu_benchmarking_extension.cc File content/renderer/gpu/gpu_benchmarking_extension.cc (right): https://codereview.chromium.org/62443007/diff/400001/content/renderer/gpu/gpu_benchmarking_extension.cc#newcode277 content/renderer/gpu/gpu_benchmarking_extension.cc:277: " function(pixels_to_scroll, opt_callback, opt_mouse_event_x," ...
7 years, 1 month ago (2013-11-20 13:20:35 UTC) #17
bulach
lgtm, thanks for checking the new telemetry will work on old browsers!
7 years, 1 month ago (2013-11-20 13:22:55 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dominikg@chromium.org/62443007/530001
7 years, 1 month ago (2013-11-20 13:23:54 UTC) #19
commit-bot: I haz the power
Change committed as 236254
7 years, 1 month ago (2013-11-20 16:20:22 UTC) #20
Dominik Grewe
This patch got reverted yesterday because of some bot failures. It turned out, however, that ...
7 years, 1 month ago (2013-11-21 17:45:29 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dominikg@chromium.org/62443007/530001
7 years, 1 month ago (2013-11-21 17:45:57 UTC) #22
commit-bot: I haz the power
7 years, 1 month ago (2013-11-21 17:47:39 UTC) #23
Message was sent while issue was closed.
Change committed as 236545

Powered by Google App Engine
This is Rietveld 408576698