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

Issue 48973005: Move TouchEvent timeout code to the TouchEventQueue (Closed)

Created:
7 years, 1 month ago by jdduke (slow)
Modified:
7 years ago
Reviewers:
jam, Xianzhu, sadrul
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, Yufeng Shen (Slow to review), klobag.chromium
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Move TouchEvent timeout code to the TouchEventQueue Android currently uses custom TouchEvent timeout logic on unresponsive desktop sites. The existence of this timeout has been a trouble spot, so move it to a common, visible location where it can be examined and used by other platforms. BUG=305273 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=239670

Patch Set 1 #

Patch Set 2 : Cleanup #

Patch Set 3 : Cleanup #

Patch Set 4 : Updates #

Patch Set 5 : Refactor #

Patch Set 6 : Switchessss #

Patch Set 7 : Rebase #

Patch Set 8 : Cleanup, support fixed page scale #

Patch Set 9 : Rebase #

Patch Set 10 : Simplify #

Patch Set 11 : Cleanup #

Total comments: 5

Patch Set 12 : Trace and clang fixes #

Patch Set 13 : Handle no consumer #

Total comments: 10

Patch Set 14 : Code review #

Patch Set 15 : Rebase #

Patch Set 16 : Thanks clang #

Patch Set 17 : Fix win build #

Patch Set 18 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+894 lines, -415 lines) Patch
M content/browser/android/content_startup_flags.cc View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -0 lines 0 comments Download
M content/browser/renderer_host/input/input_router.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +9 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 9 10 11 12 13 14 15 16 17 3 chunks +5 lines, -2 lines 0 comments Download
M content/browser/renderer_host/input/input_router_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 7 chunks +32 lines, -8 lines 0 comments Download
M content/browser/renderer_host/input/input_router_impl_unittest.cc View 1 2 3 4 5 6 7 8 9 10 4 chunks +33 lines, -4 lines 0 comments Download
A content/browser/renderer_host/input/timeout_monitor.h View 1 2 3 4 1 chunk +50 lines, -0 lines 0 comments Download
A content/browser/renderer_host/input/timeout_monitor.cc View 1 1 chunk +78 lines, -0 lines 0 comments Download
M content/browser/renderer_host/input/touch_event_queue.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 5 chunks +35 lines, -11 lines 0 comments Download
M content/browser/renderer_host/input/touch_event_queue.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 12 chunks +255 lines, -51 lines 0 comments Download
M content/browser/renderer_host/input/touch_event_queue_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 31 chunks +356 lines, -101 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_impl.h View 1 2 3 4 5 6 7 8 9 3 chunks +5 lines, -3 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_impl.cc View 1 2 3 4 5 6 7 8 9 10 5 chunks +24 lines, -53 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +1 line, -0 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 16 17 1 chunk +2 lines, -0 lines 0 comments Download
M 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 6 chunks +0 lines, -116 lines 0 comments Download
M content/public/android/javatests/src/org/chromium/content/browser/ContentViewGestureHandlerTest.java View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 4 chunks +2 lines, -66 lines 0 comments Download
M content/public/common/content_switches.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +1 line, -0 lines 0 comments Download
M content/public/common/content_switches.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +4 lines, -0 lines 0 comments Download

Messages

Total messages: 27 (0 generated)
jdduke (slow)
First of all, timeout-based code is always going to be painful, so I hate to ...
7 years, 1 month ago (2013-10-30 21:45:32 UTC) #1
Xianzhu
I'm not familiar with TouchEventQueue. What's the specific problem this CL to resolve? Are all ...
7 years, 1 month ago (2013-10-30 22:07:13 UTC) #2
jdduke (slow)
On 2013/10/30 22:07:13, Xianzhu wrote: > I'm not familiar with TouchEventQueue. What's the specific problem ...
7 years, 1 month ago (2013-10-31 00:46:40 UTC) #3
aelias_OOO_until_Jul13
On 2013/10/30 22:07:13, Xianzhu wrote: > I'm not familiar with TouchEventQueue. What's the specific problem ...
7 years, 1 month ago (2013-10-31 00:48:48 UTC) #4
Xianzhu
On 2013/10/31 00:48:48, aelias wrote: > Do we have a concrete plan for removal? What ...
7 years, 1 month ago (2013-10-31 16:46:44 UTC) #5
Rick Byers
On 2013/10/31 00:48:48, aelias wrote: > On 2013/10/30 22:07:13, Xianzhu wrote: > > I'm not ...
7 years, 1 month ago (2013-10-31 16:47:22 UTC) #6
jdduke (slow)
On 2013/10/31 16:47:22, Rick Byers wrote: > On 2013/10/31 00:48:48, aelias wrote: > > On ...
7 years, 1 month ago (2013-10-31 16:55:43 UTC) #7
jdduke (slow)
sadrul@, could you take a look at the changes to TouchEventQueue, RenderWidgetHostImpl and ImmediateInputRouter? I ...
7 years ago (2013-11-26 18:55:33 UTC) #8
jdduke (slow)
wangxianzhu@: I've modified the patch to more closely parallel the original code in ContentViewGestureHandler. It ...
7 years ago (2013-12-05 17:10:26 UTC) #9
Xianzhu
https://codereview.chromium.org/48973005/diff/750001/content/browser/renderer_host/input/touch_event_queue.cc File content/browser/renderer_host/input/touch_event_queue.cc (right): https://codereview.chromium.org/48973005/diff/750001/content/browser/renderer_host/input/touch_event_queue.cc#newcode61 content/browser/renderer_host/input/touch_event_queue.cc:61: case PENDING_ACK_ORIGINAL_EVENT: In original Java method, because we can ...
7 years ago (2013-12-05 17:48:40 UTC) #10
jdduke (slow)
https://codereview.chromium.org/48973005/diff/750001/content/browser/renderer_host/input/touch_event_queue.cc File content/browser/renderer_host/input/touch_event_queue.cc (right): https://codereview.chromium.org/48973005/diff/750001/content/browser/renderer_host/input/touch_event_queue.cc#newcode61 content/browser/renderer_host/input/touch_event_queue.cc:61: case PENDING_ACK_ORIGINAL_EVENT: On 2013/12/05 17:48:40, Xianzhu wrote: > In ...
7 years ago (2013-12-05 18:26:04 UTC) #11
Xianzhu
The timeout logic lgtm. https://codereview.chromium.org/48973005/diff/750001/content/browser/renderer_host/input/touch_event_queue.cc File content/browser/renderer_host/input/touch_event_queue.cc (right): https://codereview.chromium.org/48973005/diff/750001/content/browser/renderer_host/input/touch_event_queue.cc#newcode61 content/browser/renderer_host/input/touch_event_queue.cc:61: case PENDING_ACK_ORIGINAL_EVENT: On 2013/12/05 18:26:04, ...
7 years ago (2013-12-05 18:30:18 UTC) #12
Xianzhu
On 2013/12/05 18:30:18, Xianzhu wrote: > The timeout logic lgtm. > > https://codereview.chromium.org/48973005/diff/750001/content/browser/renderer_host/input/touch_event_queue.cc > File ...
7 years ago (2013-12-05 18:36:16 UTC) #13
sadrul
LGTM, with some nits Do you think there could be a browser-test for this? https://codereview.chromium.org/48973005/diff/790001/content/browser/renderer_host/input/touch_event_queue.cc ...
7 years ago (2013-12-06 07:35:17 UTC) #14
jdduke (slow)
On 2013/12/06 07:35:17, sadrul wrote: > Do you think there could be a browser-test for ...
7 years ago (2013-12-06 17:17:20 UTC) #15
jdduke (slow)
jam@: Review for content/public/common? Thanks.
7 years ago (2013-12-06 17:31:06 UTC) #16
jam
On 2013/12/06 17:31:06, jdduke wrote: > jam@: Review for content/public/common? Thanks. lgtm
7 years ago (2013-12-06 20:33:33 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/48973005/850001
7 years ago (2013-12-06 21:30:52 UTC) #18
commit-bot: I haz the power
Retried try job too often on win_x64_rel for step(s) base_unittests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_x64_rel&number=59756
7 years ago (2013-12-07 03:19:13 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/48973005/870001
7 years ago (2013-12-09 15:44:31 UTC) #20
commit-bot: I haz the power
Retried try job too often on win_rel for step(s) browser_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_rel&number=233341
7 years ago (2013-12-09 22:36:33 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/48973005/870001
7 years ago (2013-12-09 23:05:18 UTC) #22
commit-bot: I haz the power
Retried try job too often on win_rel for step(s) browser_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_rel&number=233523
7 years ago (2013-12-10 02:18:35 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jdduke@chromium.org/48973005/870001
7 years ago (2013-12-10 02:36:37 UTC) #24
commit-bot: I haz the power
Failed to apply patch for content/browser/renderer_host/input/input_router_impl.cc: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
7 years ago (2013-12-10 02:36:46 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/48973005/890001
7 years ago (2013-12-10 03:10:26 UTC) #26
commit-bot: I haz the power
7 years ago (2013-12-10 05:29:09 UTC) #27
Message was sent while issue was closed.
Change committed as 239670

Powered by Google App Engine
This is Rietveld 408576698