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

Issue 245833002: Implement async touchmove dispatch during scroll (Closed)

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

Description

Implement async touchmove dispatch during scroll This implements a touch dispatch model in which touchmove sending is throttled while a scroll sequence is active and being consumed. Such touchmove's are marked with |cancelable = false|, indicating to any potential consumers that the event cannot be prevented from triggering a platform gesture. Throttling limits the touchmove sending rate during scrolling to 1 event per 200ms. BUG=346693 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=266470

Patch Set 1 #

Patch Set 2 : Cleanup #

Total comments: 26

Patch Set 3 : Fixed tests, will add more #

Patch Set 4 : More testing #

Total comments: 24

Patch Set 5 : Code review #

Patch Set 6 : Sanity check for async touch + ack timeout #

Patch Set 7 : Rebase #

Patch Set 8 : Fix tests #

Patch Set 9 : Fix win #

Unified diffs Side-by-side diffs Delta from patch set Stats (+562 lines, -284 lines) Patch
M chrome/app/generated_resources.grd View 1 chunk +3 lines, -3 lines 0 comments Download
M chrome/browser/about_flags.cc View 1 2 3 4 5 6 7 1 chunk +2 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 4 chunks +9 lines, -15 lines 0 comments Download
M content/browser/renderer_host/input/input_router_impl_unittest.cc View 1 2 3 4 14 chunks +47 lines, -51 lines 0 comments Download
M content/browser/renderer_host/input/touch_event_queue.h View 1 2 3 4 5 chunks +41 lines, -19 lines 0 comments Download
M content/browser/renderer_host/input/touch_event_queue.cc View 1 2 3 4 5 6 7 16 chunks +203 lines, -83 lines 0 comments Download
M content/browser/renderer_host/input/touch_event_queue_unittest.cc View 1 2 3 4 5 6 7 chunks +234 lines, -21 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_unittest.cc View 1 2 3 4 5 6 7 28 chunks +0 lines, -70 lines 0 comments Download
M content/common/input/web_input_event_traits.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M content/common/input/web_input_event_traits.cc View 1 2 1 chunk +17 lines, -14 lines 0 comments Download
M content/public/common/content_switches.h View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M content/public/common/content_switches.cc View 1 2 3 4 5 6 7 1 chunk +2 lines, -2 lines 0 comments Download
M content/renderer/input/input_event_filter.cc View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M content/renderer/render_widget.cc View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 59 (0 generated)
jdduke (slow)
This needs some more work (still need to figure out touchstart transitions, as well as ...
6 years, 8 months ago (2014-04-21 21:20:27 UTC) #1
aelias_OOO_until_Jul13
https://codereview.chromium.org/245833002/diff/20001/content/browser/renderer_host/input/touch_event_queue.cc File content/browser/renderer_host/input/touch_event_queue.cc (right): https://codereview.chromium.org/245833002/diff/20001/content/browser/renderer_host/input/touch_event_queue.cc#newcode266 content/browser/renderer_host/input/touch_event_queue.cc:266: DCHECK(!ignore_ack_); This is a bit ugly. Instead of returning ...
6 years, 8 months ago (2014-04-22 01:56:39 UTC) #2
Rick Byers
Thanks Jared. Some initial thoughts. https://codereview.chromium.org/245833002/diff/20001/content/browser/renderer_host/input/touch_event_queue.cc File content/browser/renderer_host/input/touch_event_queue.cc (right): https://codereview.chromium.org/245833002/diff/20001/content/browser/renderer_host/input/touch_event_queue.cc#newcode397 content/browser/renderer_host/input/touch_event_queue.cc:397: FilterBeforeForwarding(touch_queue_.front()->coalesced_event().event); Thanks for the ...
6 years, 8 months ago (2014-04-22 14:52:59 UTC) #3
jdduke (slow)
https://codereview.chromium.org/245833002/diff/20001/content/browser/renderer_host/input/touch_event_queue.cc File content/browser/renderer_host/input/touch_event_queue.cc (right): https://codereview.chromium.org/245833002/diff/20001/content/browser/renderer_host/input/touch_event_queue.cc#newcode266 content/browser/renderer_host/input/touch_event_queue.cc:266: DCHECK(!ignore_ack_); On 2014/04/22 01:56:39, aelias wrote: > This is ...
6 years, 8 months ago (2014-04-23 19:57:41 UTC) #4
Rick Byers
On 2014/04/23 19:57:41, jdduke wrote: > https://codereview.chromium.org/245833002/diff/20001/content/browser/renderer_host/input/touch_event_queue.cc > File content/browser/renderer_host/input/touch_event_queue.cc (right): > > https://codereview.chromium.org/245833002/diff/20001/content/browser/renderer_host/input/touch_event_queue.cc#newcode266 > ...
6 years, 8 months ago (2014-04-23 20:05:13 UTC) #5
jdduke (slow)
I'd like to add a few more tests, but this should be good for further ...
6 years, 8 months ago (2014-04-23 21:28:44 UTC) #6
aelias_OOO_until_Jul13
https://codereview.chromium.org/245833002/diff/100001/content/browser/renderer_host/input/touch_event_queue.cc File content/browser/renderer_host/input/touch_event_queue.cc (right): https://codereview.chromium.org/245833002/diff/100001/content/browser/renderer_host/input/touch_event_queue.cc#newcode312 content/browser/renderer_host/input/touch_event_queue.cc:312: WebTouchEventWithLatencyList events_; Could you make this a scoped_ptr<> and ...
6 years, 8 months ago (2014-04-23 21:42:22 UTC) #7
Rick Byers
This is looking great to me! I only have a couple minor comments now. https://codereview.chromium.org/245833002/diff/100001/content/browser/renderer_host/input/input_router_impl_unittest.cc ...
6 years, 8 months ago (2014-04-23 21:56:17 UTC) #8
Rick Byers
https://codereview.chromium.org/245833002/diff/100001/content/browser/renderer_host/input/touch_event_queue.cc File content/browser/renderer_host/input/touch_event_queue.cc (right): https://codereview.chromium.org/245833002/diff/100001/content/browser/renderer_host/input/touch_event_queue.cc#newcode457 content/browser/renderer_host/input/touch_event_queue.cc:457: // new touchmove will simply replace the pending touchmove. ...
6 years, 8 months ago (2014-04-23 21:58:12 UTC) #9
jdduke (slow)
Thanks for review! Rick, were there any sites in particular (other than the several from ...
6 years, 8 months ago (2014-04-23 22:56:48 UTC) #10
Rick Byers
This looks great to me. Did you say you're still adding some tests (i.e. I ...
6 years, 8 months ago (2014-04-23 23:22:52 UTC) #11
jdduke (slow)
On 2014/04/23 23:22:52, Rick Byers wrote: > This looks great to me. Did you say ...
6 years, 8 months ago (2014-04-23 23:34:22 UTC) #12
Rick Byers
On 2014/04/23 23:34:22, jdduke wrote: > On 2014/04/23 23:22:52, Rick Byers wrote: > > This ...
6 years, 8 months ago (2014-04-23 23:53:10 UTC) #13
jdduke (slow)
On 2014/04/23 23:53:10, Rick Byers wrote: > On 2014/04/23 23:34:22, jdduke wrote: > > On ...
6 years, 8 months ago (2014-04-24 00:11:53 UTC) #14
Rick Byers
On 2014/04/24 00:11:53, jdduke wrote: > On 2014/04/23 23:53:10, Rick Byers wrote: > > On ...
6 years, 8 months ago (2014-04-24 21:14:03 UTC) #15
jdduke (slow)
OK, rebased, should be good to go. We should probably be thinking about the case ...
6 years, 8 months ago (2014-04-24 21:53:03 UTC) #16
Rick Byers
On 2014/04/24 21:53:03, jdduke wrote: > OK, rebased, should be good to go. LGTM > ...
6 years, 8 months ago (2014-04-25 00:12:54 UTC) #17
aelias_OOO_until_Jul13
lgtm
6 years, 8 months ago (2014-04-25 00:26:37 UTC) #18
jdduke (slow)
The CQ bit was checked by jdduke@chromium.org
6 years, 8 months ago (2014-04-25 00:31:20 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/245833002/160001
6 years, 8 months ago (2014-04-25 00:33:15 UTC) #20
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 8 months ago (2014-04-25 00:52:35 UTC) #21
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.chromium on chromium_presubmit
6 years, 8 months ago (2014-04-25 00:52:36 UTC) #22
jdduke (slow)
On 2014/04/25 00:52:36, I haz the power (commit-bot) wrote: > Try jobs failed on following ...
6 years, 8 months ago (2014-04-25 00:53:25 UTC) #23
jochen (gone - plz use gerrit)
lgtm
6 years, 8 months ago (2014-04-25 08:29:40 UTC) #24
Rick Byers
The CQ bit was checked by rbyers@chromium.org
6 years, 8 months ago (2014-04-25 13:13:12 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/245833002/160001
6 years, 8 months ago (2014-04-25 21:47:24 UTC) #26
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 8 months ago (2014-04-25 22:33:53 UTC) #27
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.chromium on linux_chromium_chromeos_rel
6 years, 8 months ago (2014-04-25 22:33:54 UTC) #28
jdduke (slow)
The CQ bit was checked by jdduke@chromium.org
6 years, 8 months ago (2014-04-25 22:39:29 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/245833002/160001
6 years, 8 months ago (2014-04-25 22:42:23 UTC) #30
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 8 months ago (2014-04-25 23:13:58 UTC) #31
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.chromium on chromium_presubmit
6 years, 8 months ago (2014-04-25 23:13:59 UTC) #32
jdduke (slow)
The CQ bit was checked by jdduke@chromium.org
6 years, 8 months ago (2014-04-26 02:56:53 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/245833002/180001
6 years, 8 months ago (2014-04-26 02:58:18 UTC) #34
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 8 months ago (2014-04-26 04:02:19 UTC) #35
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.chromium on linux_chromium_chromeos_rel
6 years, 8 months ago (2014-04-26 04:02:20 UTC) #36
jdduke (slow)
The CQ bit was checked by jdduke@chromium.org
6 years, 8 months ago (2014-04-26 04:47:24 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/245833002/180001
6 years, 8 months ago (2014-04-26 04:49:19 UTC) #38
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 8 months ago (2014-04-26 04:53:23 UTC) #39
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.chromium on win_chromium_compile_dbg
6 years, 8 months ago (2014-04-26 04:53:24 UTC) #40
jdduke (slow)
The CQ bit was checked by jdduke@chromium.org
6 years, 8 months ago (2014-04-26 04:54:25 UTC) #41
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jdduke@chromium.org/245833002/180001
6 years, 8 months ago (2014-04-26 04:55:55 UTC) #42
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 8 months ago (2014-04-26 05:07:30 UTC) #43
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.chromium on win_chromium_rel
6 years, 8 months ago (2014-04-26 05:07:31 UTC) #44
jdduke (slow)
The CQ bit was checked by jdduke@chromium.org
6 years, 8 months ago (2014-04-26 05:19:44 UTC) #45
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jdduke@chromium.org/245833002/200001
6 years, 8 months ago (2014-04-26 05:21:35 UTC) #46
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 8 months ago (2014-04-26 06:07:16 UTC) #47
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.chromium on win_chromium_rel
6 years, 8 months ago (2014-04-26 06:07:17 UTC) #48
jdduke (slow)
The CQ bit was checked by jdduke@chromium.org
6 years, 8 months ago (2014-04-26 13:14:54 UTC) #49
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jdduke@chromium.org/245833002/200001
6 years, 8 months ago (2014-04-26 13:15:16 UTC) #50
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 8 months ago (2014-04-26 13:56:13 UTC) #51
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.chromium on win_chromium_rel
6 years, 8 months ago (2014-04-26 13:56:13 UTC) #52
jdduke (slow)
The CQ bit was checked by jdduke@chromium.org
6 years, 8 months ago (2014-04-26 14:11:06 UTC) #53
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jdduke@chromium.org/245833002/200001
6 years, 8 months ago (2014-04-26 14:11:22 UTC) #54
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 8 months ago (2014-04-26 14:32:36 UTC) #55
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.chromium on win_chromium_rel
6 years, 8 months ago (2014-04-26 14:32:37 UTC) #56
jdduke (slow)
The CQ bit was checked by jdduke@chromium.org
6 years, 8 months ago (2014-04-26 15:21:54 UTC) #57
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jdduke@chromium.org/245833002/200001
6 years, 8 months ago (2014-04-26 15:23:20 UTC) #58
commit-bot: I haz the power
6 years, 8 months ago (2014-04-28 07:24:12 UTC) #59
Message was sent while issue was closed.
Change committed as 266470

Powered by Google App Engine
This is Rietveld 408576698