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

Issue 235003005: Consolidate all touch/gesture related constants in content (Closed)

Created:
6 years, 8 months ago by jdduke (slow)
Modified:
6 years, 7 months ago
Reviewers:
sadrul, jam, tdresser
CC:
chromium-reviews, darin-cc_chromium.org, tdresser
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Reland "Consolidate all touch/gesture related constants in content" InputRouter, TouchEventQueue and GestureEventQueue all use a variety of configuration parameters that are littered through the code in a very ad-hoc and hard-to-follow fashion. Consolidate all such parameters into well-defined configuration structs, with helper functions to generate the appropriate parameters per platform. This simplifies testing and eases the mental burden of tracking down the origin of the various magic constants. Note that this change disables scroll gesture debounce by default, enabling it only for ChromeOS. The original patch landed in r268051 but was reverted in r268052 due to content_perftest compilation issues that have since been fixed. BUG=343917, 353702 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=268078

Patch Set 1 #

Patch Set 2 : Updates #

Total comments: 4

Patch Set 3 : Cleanup #

Total comments: 12

Patch Set 4 : Code review #

Patch Set 5 : Remove unused headers #

Total comments: 2

Patch Set 6 : Rebase #

Patch Set 7 : Fix build #

Patch Set 8 : Fix clang build #

Patch Set 9 : Compilation fixes #

Unified diffs Side-by-side diffs Delta from patch set Stats (+559 lines, -597 lines) Patch
M content/browser/android/content_startup_flags.cc View 1 1 chunk +0 lines, -3 lines 0 comments Download
M content/browser/renderer_host/input/gesture_event_queue.h View 1 2 3 6 chunks +27 lines, -21 lines 0 comments Download
M content/browser/renderer_host/input/gesture_event_queue.cc View 1 2 3 4 5 6 7 8 7 chunks +25 lines, -33 lines 0 comments Download
M content/browser/renderer_host/input/gesture_event_queue_unittest.cc View 1 2 3 4 5 6 7 8 15 chunks +11 lines, -40 lines 0 comments Download
A content/browser/renderer_host/input/input_router_config_helper.h View 1 2 3 4 5 6 7 8 1 chunk +18 lines, -0 lines 0 comments Download
A content/browser/renderer_host/input/input_router_config_helper.cc View 1 2 3 4 5 6 7 1 chunk +144 lines, -0 lines 0 comments Download
M content/browser/renderer_host/input/input_router_impl.h View 1 2 3 4 5 6 7 8 3 chunks +11 lines, -7 lines 0 comments Download
M content/browser/renderer_host/input/input_router_impl.cc View 1 2 3 4 5 6 7 8 6 chunks +8 lines, -73 lines 0 comments Download
M content/browser/renderer_host/input/input_router_impl_perftest.cc View 1 2 3 4 5 6 7 8 6 chunks +15 lines, -17 lines 0 comments Download
M content/browser/renderer_host/input/input_router_impl_unittest.cc View 1 2 3 4 5 6 7 8 8 chunks +23 lines, -21 lines 0 comments Download
M content/browser/renderer_host/input/tap_suppression_controller.h View 1 2 3 4 5 6 7 8 2 chunks +20 lines, -2 lines 0 comments Download
M content/browser/renderer_host/input/tap_suppression_controller.cc View 1 2 3 4 5 6 7 8 5 chunks +22 lines, -8 lines 0 comments Download
M content/browser/renderer_host/input/tap_suppression_controller_client.h View 1 1 chunk +0 lines, -8 lines 0 comments Download
M content/browser/renderer_host/input/tap_suppression_controller_unittest.cc View 1 2 3 4 5 6 7 8 15 chunks +50 lines, -53 lines 0 comments Download
M content/browser/renderer_host/input/touch_event_queue.h View 1 2 3 4 chunks +28 lines, -11 lines 0 comments Download
M content/browser/renderer_host/input/touch_event_queue.cc View 1 2 13 chunks +70 lines, -60 lines 0 comments Download
M content/browser/renderer_host/input/touch_event_queue_unittest.cc View 1 2 3 4 5 6 7 8 4 chunks +21 lines, -17 lines 0 comments Download
M content/browser/renderer_host/input/touchpad_tap_suppression_controller.h View 1 2 3 4 4 chunks +5 lines, -6 lines 0 comments Download
M content/browser/renderer_host/input/touchpad_tap_suppression_controller.cc View 1 2 3 4 5 6 7 8 1 chunk +19 lines, -21 lines 0 comments Download
D content/browser/renderer_host/input/touchpad_tap_suppression_controller_aura.cc View 1 2 3 4 5 6 7 8 1 chunk +0 lines, -58 lines 0 comments Download
M content/browser/renderer_host/input/touchscreen_tap_suppression_controller.h View 1 3 chunks +6 lines, -6 lines 0 comments Download
M content/browser/renderer_host/input/touchscreen_tap_suppression_controller.cc View 1 3 chunks +7 lines, -34 lines 0 comments Download
D content/browser/renderer_host/input/touchscreen_tap_suppression_controller_stub.cc View 1 2 3 4 5 6 7 8 1 chunk +0 lines, -43 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_impl.cc View 1 2 3 4 5 3 chunks +5 lines, -2 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_unittest.cc View 1 2 3 4 5 6 7 8 15 chunks +22 lines, -28 lines 0 comments Download
M content/content_browser.gypi View 1 2 3 4 5 6 7 8 3 chunks +2 lines, -16 lines 0 comments Download
M content/public/common/content_switches.h View 1 2 3 4 5 6 7 8 2 chunks +0 lines, -2 lines 0 comments Download
M content/public/common/content_switches.cc View 1 2 3 4 5 6 7 8 2 chunks +0 lines, -7 lines 0 comments Download

Messages

Total messages: 40 (0 generated)
jdduke (slow)
tdresser@: This isn't ready for review (by any means, very much WIP), but I'm cc'ing ...
6 years, 8 months ago (2014-04-11 21:05:52 UTC) #1
jdduke (slow)
tdreses@: PTAL. If you think this reasonable I'll push for further OWNER review, thanks. https://codereview.chromium.org/235003005/diff/20001/content/browser/renderer_host/input/input_router_config_helper.cc ...
6 years, 7 months ago (2014-04-30 19:42:34 UTC) #2
tdresser
LGTM! This is good stuff. https://codereview.chromium.org/235003005/diff/20001/content/browser/renderer_host/input/input_router_config_helper.cc File content/browser/renderer_host/input/input_router_config_helper.cc (right): https://codereview.chromium.org/235003005/diff/20001/content/browser/renderer_host/input/input_router_config_helper.cc#newcode26 content/browser/renderer_host/input/input_router_config_helper.cc:26: const int kDebouncingIntervalTimeMs = ...
6 years, 7 months ago (2014-05-01 13:51:55 UTC) #3
jdduke (slow)
PTAL for OWNER review, thanks. sadrul@:content/browser/renderer_host/render_widget_host* jam@: content/public/common/content_switches.* https://codereview.chromium.org/235003005/diff/40001/content/browser/renderer_host/input/gesture_event_queue.h File content/browser/renderer_host/input/gesture_event_queue.h (right): https://codereview.chromium.org/235003005/diff/40001/content/browser/renderer_host/input/gesture_event_queue.h#newcode76 content/browser/renderer_host/input/gesture_event_queue.h:76: base::TimeDelta ...
6 years, 7 months ago (2014-05-01 16:44:24 UTC) #4
sadrul
LGTM https://codereview.chromium.org/235003005/diff/90001/content/browser/renderer_host/render_widget_host_unittest.cc File content/browser/renderer_host/render_widget_host_unittest.cc (right): https://codereview.chromium.org/235003005/diff/90001/content/browser/renderer_host/render_widget_host_unittest.cc#newcode615 content/browser/renderer_host/render_widget_host_unittest.cc:615: host_->DisableGestureDebounce(); Just to double-check: the tests that expect ...
6 years, 7 months ago (2014-05-02 01:49:16 UTC) #5
jdduke (slow)
https://codereview.chromium.org/235003005/diff/90001/content/browser/renderer_host/render_widget_host_unittest.cc File content/browser/renderer_host/render_widget_host_unittest.cc (right): https://codereview.chromium.org/235003005/diff/90001/content/browser/renderer_host/render_widget_host_unittest.cc#newcode615 content/browser/renderer_host/render_widget_host_unittest.cc:615: host_->DisableGestureDebounce(); On 2014/05/02 01:49:16, sadrul wrote: > Just to ...
6 years, 7 months ago (2014-05-02 01:50:37 UTC) #6
sadrul
Actually +jam@ (from #msg4: "jam@: content/public/common/content_switches.*")
6 years, 7 months ago (2014-05-02 01:50:43 UTC) #7
jam
On 2014/05/02 01:50:43, sadrul wrote: > Actually +jam@ (from #msg4: "jam@: content/public/common/content_switches.*") lgtm
6 years, 7 months ago (2014-05-02 18:33:06 UTC) #8
jdduke (slow)
The CQ bit was checked by jdduke@chromium.org
6 years, 7 months ago (2014-05-02 19:30:30 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jdduke@chromium.org/235003005/130001
6 years, 7 months ago (2014-05-02 19:30:39 UTC) #10
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 7 months ago (2014-05-02 19:38:20 UTC) #11
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_clang_dbg on tryserver.chromium
6 years, 7 months ago (2014-05-02 19:38:21 UTC) #12
jdduke (slow)
The CQ bit was checked by jdduke@chromium.org
6 years, 7 months ago (2014-05-02 20:22:57 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jdduke@chromium.org/235003005/150001
6 years, 7 months ago (2014-05-02 20:23:49 UTC) #14
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 7 months ago (2014-05-02 20:36:12 UTC) #15
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel on tryserver.chromium
6 years, 7 months ago (2014-05-02 20:36:12 UTC) #16
jdduke (slow)
The CQ bit was checked by jdduke@chromium.org
6 years, 7 months ago (2014-05-02 20:40:40 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/235003005/150001
6 years, 7 months ago (2014-05-02 20:40:59 UTC) #18
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 7 months ago (2014-05-02 20:52:10 UTC) #19
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_rel on tryserver.chromium
6 years, 7 months ago (2014-05-02 20:52:10 UTC) #20
jdduke (slow)
The CQ bit was checked by jdduke@chromium.org
6 years, 7 months ago (2014-05-02 21:14:29 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jdduke@chromium.org/235003005/150001
6 years, 7 months ago (2014-05-02 21:17:21 UTC) #22
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 7 months ago (2014-05-02 21:32:54 UTC) #23
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_rel on tryserver.chromium
6 years, 7 months ago (2014-05-02 21:32:55 UTC) #24
jdduke (slow)
The CQ bit was checked by jdduke@chromium.org
6 years, 7 months ago (2014-05-02 21:35:43 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jdduke@chromium.org/235003005/150001
6 years, 7 months ago (2014-05-02 21:36:06 UTC) #26
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 7 months ago (2014-05-02 21:38:28 UTC) #27
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_rel on tryserver.chromium
6 years, 7 months ago (2014-05-02 21:38:29 UTC) #28
jdduke (slow)
The CQ bit was checked by jdduke@chromium.org
6 years, 7 months ago (2014-05-02 21:50:46 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jdduke@chromium.org/235003005/150001
6 years, 7 months ago (2014-05-02 21:51:14 UTC) #30
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 7 months ago (2014-05-02 22:08:11 UTC) #31
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_rel on tryserver.chromium
6 years, 7 months ago (2014-05-02 22:08:12 UTC) #32
jdduke (slow)
The CQ bit was checked by jdduke@chromium.org
6 years, 7 months ago (2014-05-03 04:17:28 UTC) #33
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jdduke@chromium.org/235003005/150001
6 years, 7 months ago (2014-05-03 04:17:40 UTC) #34
commit-bot: I haz the power
Change committed as 268051
6 years, 7 months ago (2014-05-03 05:44:19 UTC) #35
jdduke (slow)
A revert of this CL has been created in https://codereview.chromium.org/260923003/ by jdduke@chromium.org. The reason for ...
6 years, 7 months ago (2014-05-03 05:56:01 UTC) #36
jdduke (slow)
The CQ bit was checked by jdduke@chromium.org
6 years, 7 months ago (2014-05-03 18:40:47 UTC) #37
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jdduke@chromium.org/235003005/170001
6 years, 7 months ago (2014-05-03 18:40:59 UTC) #38
commit-bot: I haz the power
Change committed as 268078
6 years, 7 months ago (2014-05-03 21:39:45 UTC) #39
jdduke (slow)
6 years, 7 months ago (2014-05-04 00:11:24 UTC) #40
Message was sent while issue was closed.
On 2014/05/03 21:39:45, I haz the power (commit-bot) wrote:
> Change committed as 268078

FYI, if anybody's thinking to revert this for the
RepeatedQuickOverscrollGestures failure in content_browsertests, it looks like
that test was already flaky with failures starting here:
http://build.chromium.org/p/chromium.win/builders/Win7%20Tests%20%28dbg%29%28...

Powered by Google App Engine
This is Rietveld 408576698