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

Issue 2336803003: Make SyntheticPointerAction to flush the pointer action sequence (Closed)

Created:
4 years, 3 months ago by lanwei
Modified:
4 years ago
CC:
chromium-reviews, extensions-reviews_chromium.org, mlamouri+watch-content_chromium.org, jam, dtapuska+chromiumwatch_chromium.org, darin-cc_chromium.org, piman+watch_chromium.org, chromium-apps-reviews_chromium.org, dtapuska
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Make SyntheticPointerAction to flush the pointer action sequence After we receive the action sequence of multiple pointers from users, we will parse them and group them into a two-dimensional array. The inner array will be the actions that happen at the same time, so SyntheticPointerAction will dispatch them in the same frame, until it process the whole sequence. Previous patch: https://codereview.chromium.org/1884883005/ https://codereview.chromium.org/2178153002/ BUG=525187 Committed: https://crrev.com/3df2fbbf66d2f680128f655508a4817076d08ae2 Cr-Commit-Position: refs/heads/master@{#440237}

Patch Set 1 : controller #

Total comments: 4

Patch Set 2 : controller #

Total comments: 12

Patch Set 3 : controller #

Total comments: 14

Patch Set 4 : pointer controller #

Total comments: 16

Patch Set 5 : controller #

Total comments: 16

Patch Set 6 : controller #

Total comments: 1

Patch Set 7 : return invaid when index is out bound #

Total comments: 24

Patch Set 8 : synthetic action #

Total comments: 7

Patch Set 9 : controller #

Total comments: 13

Patch Set 10 : controller #

Unified diffs Side-by-side diffs Delta from patch set Stats (+778 lines, -433 lines) Patch
M content/browser/renderer_host/input/synthetic_gesture.cc View 1 2 3 4 1 chunk +3 lines, -0 lines 0 comments Download
M content/browser/renderer_host/input/synthetic_gesture_controller_unittest.cc View 1 2 3 4 5 6 7 8 9 4 chunks +305 lines, -12 lines 0 comments Download
M content/browser/renderer_host/input/synthetic_mouse_driver.h View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M content/browser/renderer_host/input/synthetic_mouse_driver.cc View 1 2 3 4 5 6 7 8 9 2 chunks +3 lines, -3 lines 0 comments Download
M content/browser/renderer_host/input/synthetic_pointer_action.h View 1 2 3 4 5 6 7 8 9 2 chunks +15 lines, -21 lines 0 comments Download
M content/browser/renderer_host/input/synthetic_pointer_action.cc View 1 2 3 4 5 6 7 8 9 1 chunk +50 lines, -31 lines 0 comments Download
M content/browser/renderer_host/input/synthetic_pointer_action_unittest.cc View 1 2 3 4 5 6 7 11 chunks +174 lines, -217 lines 0 comments Download
M content/browser/renderer_host/input/synthetic_pointer_driver.h View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M content/browser/renderer_host/input/synthetic_touch_driver.h View 1 2 3 4 5 6 7 8 9 2 chunks +5 lines, -1 line 0 comments Download
M content/browser/renderer_host/input/synthetic_touch_driver.cc View 1 2 3 4 5 6 7 8 9 2 chunks +25 lines, -16 lines 0 comments Download
M content/browser/renderer_host/input/synthetic_touchscreen_pinch_gesture.cc View 1 2 3 4 1 chunk +2 lines, -2 lines 0 comments Download
M content/common/BUILD.gn View 1 2 3 4 5 6 7 1 chunk +2 lines, -0 lines 0 comments Download
M content/common/input/input_param_traits.cc View 1 2 5 4 chunks +10 lines, -10 lines 0 comments Download
M content/common/input/input_param_traits_unittest.cc View 1 2 3 4 5 6 7 5 chunks +63 lines, -35 lines 0 comments Download
M content/common/input/synthetic_gesture_params.h View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
A content/common/input/synthetic_pointer_action_list_params.h View 1 2 3 4 5 6 7 8 1 chunk +39 lines, -0 lines 0 comments Download
A content/common/input/synthetic_pointer_action_list_params.cc View 1 2 3 4 5 1 chunk +48 lines, -0 lines 0 comments Download
M content/common/input/synthetic_pointer_action_params.h View 1 2 3 4 5 6 7 3 chunks +13 lines, -24 lines 0 comments Download
M content/common/input/synthetic_pointer_action_params.cc View 1 2 3 4 5 6 7 1 chunk +4 lines, -42 lines 0 comments Download
M content/common/input_messages.h View 1 2 3 4 5 6 7 2 chunks +6 lines, -1 line 0 comments Download
M tools/ipc_fuzzer/fuzzer/fuzzer.cc View 1 2 3 4 5 6 7 1 chunk +7 lines, -14 lines 0 comments Download

Messages

Total messages: 179 (138 generated)
lanwei
Could you please give me some feedbacks of the design and structures in this rough ...
4 years, 3 months ago (2016-09-15 20:07:53 UTC) #4
lanwei
The code in GpuBenchmarking::TouchActionSequence is not correct, we receive a 2-D array, but I pretend ...
4 years, 3 months ago (2016-09-15 20:26:50 UTC) #7
samuong
I'm still looking into this but at a high level I think it's getting complicated ...
4 years, 3 months ago (2016-09-23 12:53:40 UTC) #8
lanwei
On 2016/09/23 12:53:40, samuong wrote: > I'm still looking into this but at a high ...
4 years, 3 months ago (2016-09-23 15:40:40 UTC) #9
lanwei
Tim, can you please take a first look at this one? I am passing a ...
4 years, 2 months ago (2016-09-29 14:38:54 UTC) #17
tdresser
Sorry, I haven't gotten through much of this yet. A few early thoughts. https://codereview.chromium.org/2336803003/diff/60001/content/browser/renderer_host/input/synthetic_gesture_controller.cc File ...
4 years, 2 months ago (2016-09-30 13:24:31 UTC) #18
tdresser
Ping - what's the state of this?
4 years, 2 months ago (2016-10-14 18:56:03 UTC) #19
lanwei
https://codereview.chromium.org/2336803003/diff/60001/content/browser/renderer_host/input/synthetic_gesture_controller.cc File content/browser/renderer_host/input/synthetic_gesture_controller.cc (right): https://codereview.chromium.org/2336803003/diff/60001/content/browser/renderer_host/input/synthetic_gesture_controller.cc#newcode48 content/browser/renderer_host/input/synthetic_gesture_controller.cc:48: synthetic_gesture = SyntheticGesture::Create(gesture_params); On 2016/09/30 13:24:30, tdresser wrote: > ...
4 years, 2 months ago (2016-10-21 21:53:07 UTC) #32
Martin Barbella
https://codereview.chromium.org/2336803003/diff/120001/content/browser/renderer_host/input/synthetic_pointer_action_controller.cc File content/browser/renderer_host/input/synthetic_pointer_action_controller.cc (right): https://codereview.chromium.org/2336803003/diff/120001/content/browser/renderer_host/input/synthetic_pointer_action_controller.cc#newcode28 content/browser/renderer_host/input/synthetic_pointer_action_controller.cc:28: DCHECK_GE(gesture_params.param_list.size(), 0u); I might be missing something, but it ...
4 years, 2 months ago (2016-10-21 22:47:08 UTC) #35
lanwei
On 2016/10/21 22:47:08, Martin Barbella wrote: > https://codereview.chromium.org/2336803003/diff/120001/content/browser/renderer_host/input/synthetic_pointer_action_controller.cc > File content/browser/renderer_host/input/synthetic_pointer_action_controller.cc > (right): > > ...
4 years, 2 months ago (2016-10-23 21:48:38 UTC) #49
Martin Barbella
On 2016/10/23 21:48:38, lanwei wrote: > On 2016/10/21 22:47:08, Martin Barbella wrote: > > > ...
4 years, 1 month ago (2016-10-24 17:10:52 UTC) #56
lanwei
On 2016/10/24 17:10:52, Martin Barbella wrote: > On 2016/10/23 21:48:38, lanwei wrote: > > On ...
4 years, 1 month ago (2016-10-24 18:00:29 UTC) #57
Martin Barbella
On 2016/10/24 18:00:29, lanwei wrote: > On 2016/10/24 17:10:52, Martin Barbella wrote: > > On ...
4 years, 1 month ago (2016-10-24 18:07:04 UTC) #58
tdresser
https://codereview.chromium.org/2336803003/diff/200001/content/browser/renderer_host/input/synthetic_pointer_action_controller.cc File content/browser/renderer_host/input/synthetic_pointer_action_controller.cc (right): https://codereview.chromium.org/2336803003/diff/200001/content/browser/renderer_host/input/synthetic_pointer_action_controller.cc#newcode30 content/browser/renderer_host/input/synthetic_pointer_action_controller.cc:30: if (gesture_source_type == SyntheticGestureParams::DEFAULT_INPUT) { If the synthetic pointer ...
4 years, 1 month ago (2016-10-26 18:28:40 UTC) #59
lanwei
https://codereview.chromium.org/2336803003/diff/200001/content/browser/renderer_host/input/synthetic_pointer_action_controller.cc File content/browser/renderer_host/input/synthetic_pointer_action_controller.cc (right): https://codereview.chromium.org/2336803003/diff/200001/content/browser/renderer_host/input/synthetic_pointer_action_controller.cc#newcode30 content/browser/renderer_host/input/synthetic_pointer_action_controller.cc:30: if (gesture_source_type == SyntheticGestureParams::DEFAULT_INPUT) { On 2016/10/26 18:28:40, tdresser ...
4 years, 1 month ago (2016-10-30 23:23:13 UTC) #69
tdresser
https://codereview.chromium.org/2336803003/diff/200001/content/browser/renderer_host/input/synthetic_pointer_action_controller.cc File content/browser/renderer_host/input/synthetic_pointer_action_controller.cc (right): https://codereview.chromium.org/2336803003/diff/200001/content/browser/renderer_host/input/synthetic_pointer_action_controller.cc#newcode30 content/browser/renderer_host/input/synthetic_pointer_action_controller.cc:30: if (gesture_source_type == SyntheticGestureParams::DEFAULT_INPUT) { On 2016/10/30 23:23:13, lanwei ...
4 years, 1 month ago (2016-10-31 14:22:58 UTC) #70
Navid Zolghadr
https://codereview.chromium.org/2336803003/diff/240001/content/common/input/synthetic_pointer_action_list_params.cc File content/common/input/synthetic_pointer_action_list_params.cc (right): https://codereview.chromium.org/2336803003/diff/240001/content/common/input/synthetic_pointer_action_list_params.cc#newcode17 content/common/input/synthetic_pointer_action_list_params.cc:17: const SyntheticPointerActionListParams& other) Don't we need to call the ...
4 years, 1 month ago (2016-11-01 19:08:42 UTC) #71
lanwei
https://codereview.chromium.org/2336803003/diff/240001/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/2336803003/diff/240001/content/browser/renderer_host/input/synthetic_gesture_controller_unittest.cc#newcode1525 content/browser/renderer_host/input/synthetic_gesture_controller_unittest.cc:1525: action_list_params, synthetic_pointer.get(), &index_map)); On 2016/10/31 14:22:57, tdresser wrote: > ...
4 years ago (2016-12-04 18:08:02 UTC) #86
Navid Zolghadr
Please update the CL description/title as well. https://codereview.chromium.org/2336803003/diff/300001/content/browser/renderer_host/input/synthetic_pointer_action.cc File content/browser/renderer_host/input/synthetic_pointer_action.cc (right): https://codereview.chromium.org/2336803003/diff/300001/content/browser/renderer_host/input/synthetic_pointer_action.cc#newcode25 content/browser/renderer_host/input/synthetic_pointer_action.cc:25: if (state_ ...
4 years ago (2016-12-06 17:05:38 UTC) #87
lanwei
Navid, can you please take another look, thanks? https://codereview.chromium.org/2336803003/diff/300001/content/browser/renderer_host/input/synthetic_pointer_action.cc File content/browser/renderer_host/input/synthetic_pointer_action.cc (right): https://codereview.chromium.org/2336803003/diff/300001/content/browser/renderer_host/input/synthetic_pointer_action.cc#newcode25 content/browser/renderer_host/input/synthetic_pointer_action.cc:25: if ...
4 years ago (2016-12-07 19:04:27 UTC) #90
lanwei
4 years ago (2016-12-09 15:50:09 UTC) #96
Navid Zolghadr
https://codereview.chromium.org/2336803003/diff/300001/content/browser/renderer_host/input/synthetic_pointer_action.cc File content/browser/renderer_host/input/synthetic_pointer_action.cc (right): https://codereview.chromium.org/2336803003/diff/300001/content/browser/renderer_host/input/synthetic_pointer_action.cc#newcode25 content/browser/renderer_host/input/synthetic_pointer_action.cc:25: if (state_ == SETUP) { On 2016/12/07 19:04:27, lanwei ...
4 years ago (2016-12-09 16:04:47 UTC) #97
lanwei
On 2016/12/09 16:04:47, Navid Zolghadr wrote: > https://codereview.chromium.org/2336803003/diff/300001/content/browser/renderer_host/input/synthetic_pointer_action.cc > File content/browser/renderer_host/input/synthetic_pointer_action.cc (right): > > https://codereview.chromium.org/2336803003/diff/300001/content/browser/renderer_host/input/synthetic_pointer_action.cc#newcode25 ...
4 years ago (2016-12-09 19:05:26 UTC) #98
Navid Zolghadr
lgtm
4 years ago (2016-12-09 19:15:42 UTC) #99
tdresser
https://codereview.chromium.org/2336803003/diff/340001/content/browser/renderer_host/input/synthetic_mouse_driver.cc File content/browser/renderer_host/input/synthetic_mouse_driver.cc (right): https://codereview.chromium.org/2336803003/diff/340001/content/browser/renderer_host/input/synthetic_mouse_driver.cc#newcode22 content/browser/renderer_host/input/synthetic_mouse_driver.cc:22: mouse_event_ = SyntheticWebMouseEventBuilder::Build( Why did we switch from returning ...
4 years ago (2016-12-12 15:32:49 UTC) #100
tdresser
https://codereview.chromium.org/2336803003/diff/340001/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/2336803003/diff/340001/content/browser/renderer_host/input/synthetic_gesture_controller_unittest.cc#newcode486 content/browser/renderer_host/input/synthetic_gesture_controller_unittest.cc:486: int count_; Be more specific in the variable name ...
4 years ago (2016-12-13 14:37:44 UTC) #101
lanwei
Tim, I rebase the code, can you please take another look at the new patch, ...
4 years ago (2016-12-18 17:35:55 UTC) #141
tdresser
LGTM! https://codereview.chromium.org/2336803003/diff/340001/content/browser/renderer_host/input/synthetic_pointer_action.cc File content/browser/renderer_host/input/synthetic_pointer_action.cc (right): https://codereview.chromium.org/2336803003/diff/340001/content/browser/renderer_host/input/synthetic_pointer_action.cc#newcode64 content/browser/renderer_host/input/synthetic_pointer_action.cc:64: param.set_gesture_source_type(gesture_source_type_); On 2016/12/18 17:35:55, lanwei wrote: > On ...
4 years ago (2016-12-19 15:11:53 UTC) #142
lanwei
avi@ could you please take a look at content/common/BUILD.gn, thank you?
4 years ago (2016-12-19 15:39:10 UTC) #145
Avi (use Gerrit)
BUILD.gn LGTM Looks like you need an IPC review.
4 years ago (2016-12-19 19:43:46 UTC) #146
samuong
I'm still looking at this, but just a few small comments so far... https://codereview.chromium.org/2336803003/diff/60001/content/common/input/synthetic_pointer_action_list_params.h File ...
4 years ago (2016-12-20 05:13:27 UTC) #147
tdresser
https://codereview.chromium.org/2336803003/diff/520001/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/2336803003/diff/520001/content/browser/renderer_host/input/synthetic_gesture_controller_unittest.cc#newcode535 content/browser/renderer_host/input/synthetic_gesture_controller_unittest.cc:535: DCHECK(WebInputEvent::isTouchEventType(event.type)); On 2016/12/20 05:13:26, samuong wrote: > why DCHECK ...
4 years ago (2016-12-20 14:16:24 UTC) #148
lanwei
https://codereview.chromium.org/2336803003/diff/520001/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/2336803003/diff/520001/content/browser/renderer_host/input/synthetic_gesture_controller_unittest.cc#newcode535 content/browser/renderer_host/input/synthetic_gesture_controller_unittest.cc:535: DCHECK(WebInputEvent::isTouchEventType(event.type)); On 2016/12/20 14:16:24, tdresser - OOO until Jan ...
4 years ago (2016-12-20 18:51:47 UTC) #152
samuong
https://codereview.chromium.org/2336803003/diff/540001/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/2336803003/diff/540001/content/browser/renderer_host/input/synthetic_gesture_controller_unittest.cc#newcode75 content/browser/renderer_host/input/synthetic_gesture_controller_unittest.cc:75: return WebTouchPoint::StateUndefined; should this last check be handled by ...
4 years ago (2016-12-21 00:02:27 UTC) #155
lanwei
Sam, can you please take another look, thanks? https://codereview.chromium.org/2336803003/diff/540001/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/2336803003/diff/540001/content/browser/renderer_host/input/synthetic_gesture_controller_unittest.cc#newcode75 content/browser/renderer_host/input/synthetic_gesture_controller_unittest.cc:75: return ...
4 years ago (2016-12-21 20:01:14 UTC) #164
samuong
lgtm https://codereview.chromium.org/2336803003/diff/540001/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/2336803003/diff/540001/content/browser/renderer_host/input/synthetic_gesture_controller_unittest.cc#newcode75 content/browser/renderer_host/input/synthetic_gesture_controller_unittest.cc:75: return WebTouchPoint::StateUndefined; On 2016/12/21 20:01:13, lanwei wrote: > ...
4 years ago (2016-12-21 20:39:22 UTC) #165
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2336803003/600001
4 years ago (2016-12-21 20:41:41 UTC) #169
commit-bot: I haz the power
Try jobs failed on following builders: linux_android_rel_ng on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/linux_android_rel_ng/builds/203558)
4 years ago (2016-12-21 21:25:37 UTC) #171
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2336803003/600001
4 years ago (2016-12-21 21:28:14 UTC) #174
commit-bot: I haz the power
Committed patchset #10 (id:600001)
4 years ago (2016-12-21 22:10:45 UTC) #177
commit-bot: I haz the power
4 years ago (2016-12-21 22:14:07 UTC) #179
Message was sent while issue was closed.
Patchset 10 (id:??) landed as
https://crrev.com/3df2fbbf66d2f680128f655508a4817076d08ae2
Cr-Commit-Position: refs/heads/master@{#440237}

Powered by Google App Engine
This is Rietveld 408576698