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

Issue 1707943002: Add SyntheticPointerActionParams used in Chromedriver extension (Closed)

Created:
4 years, 10 months ago by lanwei
Modified:
4 years, 8 months ago
Reviewers:
samuong, Nico, tdresser, dcheng
CC:
chromium-apps-reviews_chromium.org, chromium-reviews, creis+watch_chromium.org, darin-cc_chromium.org, extensions-reviews_chromium.org, jam, mkwst+moarreviews-renderer_chromium.org, mlamouri+watch-content_chromium.org, nasko+codewatch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add SyntheticPointerActionParams used in Chromedriver extension. This patch is to add SyntheticPointerActionParams class, so that ChromeDriverExtension can use it to pass actions to browser through IPC. I will add another patch to receive the actions from ChromeDriverExtension, group them and dispatch them per frame in RenderWidgetHostImpl. Please see the design doc here: https://docs.google.com/document/d/1adz5Xb1hYt6SCRdMdhR2EXjhvF-AqshCIhZv7jVuZF4 BUG=525187 Committed: https://crrev.com/7f8f2c5601e8506e62615e48e4a83424ea4b1c0b Cr-Commit-Position: refs/heads/master@{#384716}

Patch Set 1 : #

Total comments: 7

Patch Set 2 : #

Total comments: 6

Patch Set 3 : Use get functions in the IPC message #

Total comments: 3

Patch Set 4 : Add a friend to the IPC SyntheticPointerActionParams #

Total comments: 12

Patch Set 5 : Move PointerActionType to SyntheticPointerActionParams #

Total comments: 4

Patch Set 6 : Changes in synthetic_gesture_controller_unittest.cc #

Total comments: 10

Patch Set 7 : Add constraint to SyntheticPointerActionParams tests #

Total comments: 4

Patch Set 8 : Add explicit to constructor #

Unified diffs Side-by-side diffs Delta from patch set Stats (+272 lines, -55 lines) Patch
M content/browser/renderer_host/input/synthetic_gesture.h View 1 1 chunk +0 lines, -2 lines 0 comments Download
M content/browser/renderer_host/input/synthetic_gesture.cc View 2 chunks +4 lines, -0 lines 0 comments Download
M content/browser/renderer_host/input/synthetic_gesture_controller_unittest.cc View 1 2 3 4 5 1 chunk +21 lines, -20 lines 0 comments Download
M content/browser/renderer_host/input/synthetic_pointer_action.h View 1 2 3 4 5 2 chunks +5 lines, -10 lines 0 comments Download
M content/browser/renderer_host/input/synthetic_pointer_action.cc View 1 2 3 4 5 2 chunks +23 lines, -22 lines 0 comments Download
M content/common/input/input_param_traits.cc View 1 2 3 4 4 chunks +14 lines, -0 lines 0 comments Download
M content/common/input/input_param_traits_unittest.cc View 1 2 3 4 5 6 4 chunks +60 lines, -0 lines 0 comments Download
M content/common/input/synthetic_gesture_params.h View 1 2 3 4 1 chunk +3 lines, -1 line 0 comments Download
A content/common/input/synthetic_pointer_action_params.h View 1 2 3 4 5 6 7 1 chunk +80 lines, -0 lines 0 comments Download
A content/common/input/synthetic_pointer_action_params.cc View 1 2 3 4 5 6 1 chunk +48 lines, -0 lines 0 comments Download
M content/common/input_messages.h View 1 2 3 4 5 3 chunks +12 lines, -0 lines 0 comments Download
M content/content_common.gypi View 1 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 57 (22 generated)
samuong
This mostly looks good, but there are just the two issues that we discussed over ...
4 years, 10 months ago (2016-02-17 22:15:48 UTC) #4
tdresser
https://codereview.chromium.org/1707943002/diff/20001/content/common/input/input_param_traits_unittest.cc File content/common/input/input_param_traits_unittest.cc (right): https://codereview.chromium.org/1707943002/diff/20001/content/common/input/input_param_traits_unittest.cc#newcode271 content/common/input/input_param_traits_unittest.cc:271: gesture_params->duration_ms = 16; I don't think duration should be ...
4 years, 10 months ago (2016-02-18 14:46:35 UTC) #5
lanwei
https://codereview.chromium.org/1707943002/diff/20001/content/common/input/input_param_traits_unittest.cc File content/common/input/input_param_traits_unittest.cc (right): https://codereview.chromium.org/1707943002/diff/20001/content/common/input/input_param_traits_unittest.cc#newcode271 content/common/input/input_param_traits_unittest.cc:271: gesture_params->duration_ms = 16; On 2016/02/18 14:46:34, tdresser wrote: > ...
4 years, 10 months ago (2016-02-26 18:39:27 UTC) #7
tdresser
Can you add a bit more detail to the design doc on the implementation details ...
4 years, 9 months ago (2016-02-29 15:06:56 UTC) #8
lanwei
On 2016/02/29 15:06:56, tdresser wrote: > Can you add a bit more detail to the ...
4 years, 9 months ago (2016-03-02 18:14:44 UTC) #9
tdresser
https://codereview.chromium.org/1707943002/diff/60001/content/common/input/synthetic_gesture_params.h File content/common/input/synthetic_gesture_params.h (right): https://codereview.chromium.org/1707943002/diff/60001/content/common/input/synthetic_gesture_params.h#newcode55 content/common/input/synthetic_gesture_params.h:55: // When we send actions one by one, once ...
4 years, 9 months ago (2016-03-02 19:37:56 UTC) #10
tdresser
https://codereview.chromium.org/1707943002/diff/60001/content/common/input/synthetic_pointer_action_params.h File content/common/input/synthetic_pointer_action_params.h (right): https://codereview.chromium.org/1707943002/diff/60001/content/common/input/synthetic_pointer_action_params.h#newcode22 content/common/input/synthetic_pointer_action_params.h:22: Don't we need a delay here, and a delay ...
4 years, 9 months ago (2016-03-02 19:38:50 UTC) #11
lanwei
https://codereview.chromium.org/1707943002/diff/60001/content/common/input/synthetic_pointer_action_params.cc File content/common/input/synthetic_pointer_action_params.cc (right): https://codereview.chromium.org/1707943002/diff/60001/content/common/input/synthetic_pointer_action_params.cc#newcode12 content/common/input/synthetic_pointer_action_params.cc:12: // gesture recognizer for identifying clicks (currently 0.01s-0.80s). On ...
4 years, 9 months ago (2016-03-07 05:41:59 UTC) #12
tdresser
https://codereview.chromium.org/1707943002/diff/80001/content/common/input/synthetic_pointer_action_params.h File content/common/input/synthetic_pointer_action_params.h (right): https://codereview.chromium.org/1707943002/diff/80001/content/common/input/synthetic_pointer_action_params.h#newcode31 content/common/input/synthetic_pointer_action_params.h:31: DCHECK(pointer_action_type != DCHECK_NE https://codereview.chromium.org/1707943002/diff/80001/content/common/input/synthetic_pointer_action_params.h#newcode45 content/common/input/synthetic_pointer_action_params.h:45: DCHECK(pointer_action_type != DCHECK_NE, and ...
4 years, 9 months ago (2016-03-07 14:57:57 UTC) #13
lanwei
4 years, 9 months ago (2016-03-17 14:28:56 UTC) #18
tdresser
https://codereview.chromium.org/1707943002/diff/180001/content/browser/renderer_host/input/synthetic_pointer_action.cc File content/browser/renderer_host/input/synthetic_pointer_action.cc (right): https://codereview.chromium.org/1707943002/diff/180001/content/browser/renderer_host/input/synthetic_pointer_action.cc#newcode59 content/browser/renderer_host/input/synthetic_pointer_action.cc:59: break; Should this be NOTREACHED()? https://codereview.chromium.org/1707943002/diff/180001/content/common/input/synthetic_gesture_params.h File content/common/input/synthetic_gesture_params.h (right): ...
4 years, 9 months ago (2016-03-17 18:25:29 UTC) #19
lanwei
https://codereview.chromium.org/1707943002/diff/180001/content/browser/renderer_host/input/synthetic_pointer_action.cc File content/browser/renderer_host/input/synthetic_pointer_action.cc (right): https://codereview.chromium.org/1707943002/diff/180001/content/browser/renderer_host/input/synthetic_pointer_action.cc#newcode59 content/browser/renderer_host/input/synthetic_pointer_action.cc:59: break; On 2016/03/17 18:25:29, tdresser wrote: > Should this ...
4 years, 9 months ago (2016-03-22 00:33:43 UTC) #22
tdresser
It would be good to have a bit more context in the CL description. This ...
4 years, 9 months ago (2016-03-22 14:38:10 UTC) #24
lanwei
Tim, I updated the synthetic_gesture_controller_unittest.cc, but it will be changed again once I make change ...
4 years, 9 months ago (2016-03-23 14:01:52 UTC) #28
tdresser
LGTM with nits. https://codereview.chromium.org/1707943002/diff/280001/content/common/input/input_param_traits_unittest.cc File content/common/input/input_param_traits_unittest.cc (right): https://codereview.chromium.org/1707943002/diff/280001/content/common/input/input_param_traits_unittest.cc#newcode84 content/common/input/input_param_traits_unittest.cc:84: EXPECT_EQ(a->position(), b->position()); Won't this fail for ...
4 years, 9 months ago (2016-03-23 15:09:25 UTC) #29
tdresser
Make sure to get Sam's review as well.
4 years, 9 months ago (2016-03-23 15:09:43 UTC) #30
samuong
Just to make sure I understand this correctly, the caller is now responsible for setting ...
4 years, 8 months ago (2016-03-29 20:51:26 UTC) #31
tdresser
https://codereview.chromium.org/1707943002/diff/280001/content/common/input/input_param_traits_unittest.cc File content/common/input/input_param_traits_unittest.cc (right): https://codereview.chromium.org/1707943002/diff/280001/content/common/input/input_param_traits_unittest.cc#newcode84 content/common/input/input_param_traits_unittest.cc:84: EXPECT_EQ(a->position(), b->position()); On 2016/03/29 20:51:25, samuong wrote: > On ...
4 years, 8 months ago (2016-03-30 13:52:22 UTC) #32
lanwei
On 2016/03/29 20:51:26, samuong wrote: > Just to make sure I understand this correctly, the ...
4 years, 8 months ago (2016-03-30 19:00:02 UTC) #33
lanwei
https://codereview.chromium.org/1707943002/diff/280001/content/common/input/input_param_traits_unittest.cc File content/common/input/input_param_traits_unittest.cc (right): https://codereview.chromium.org/1707943002/diff/280001/content/common/input/input_param_traits_unittest.cc#newcode84 content/common/input/input_param_traits_unittest.cc:84: EXPECT_EQ(a->position(), b->position()); On 2016/03/23 15:09:25, tdresser wrote: > Won't ...
4 years, 8 months ago (2016-03-30 21:02:54 UTC) #34
tdresser
https://codereview.chromium.org/1707943002/diff/280001/content/common/input/input_param_traits_unittest.cc File content/common/input/input_param_traits_unittest.cc (right): https://codereview.chromium.org/1707943002/diff/280001/content/common/input/input_param_traits_unittest.cc#newcode84 content/common/input/input_param_traits_unittest.cc:84: EXPECT_EQ(a->position(), b->position()); On 2016/03/30 21:02:53, lanwei wrote: > On ...
4 years, 8 months ago (2016-03-31 12:25:31 UTC) #35
samuong
lgtm
4 years, 8 months ago (2016-03-31 18:20:11 UTC) #36
lanwei
On 2016/03/31 12:25:31, tdresser wrote: > https://codereview.chromium.org/1707943002/diff/280001/content/common/input/input_param_traits_unittest.cc > File content/common/input/input_param_traits_unittest.cc (right): > > https://codereview.chromium.org/1707943002/diff/280001/content/common/input/input_param_traits_unittest.cc#newcode84 > ...
4 years, 8 months ago (2016-03-31 19:04:48 UTC) #37
lanwei
dcheng@chromium.org: Please review changes in Could you please take a look at content/common/input_messages.h, thanks?
4 years, 8 months ago (2016-03-31 19:07:54 UTC) #39
dcheng
ipc changes lgtm but with a few questions https://codereview.chromium.org/1707943002/diff/300001/content/common/input/synthetic_pointer_action_params.cc File content/common/input/synthetic_pointer_action_params.cc (right): https://codereview.chromium.org/1707943002/diff/300001/content/common/input/synthetic_pointer_action_params.cc#newcode20 content/common/input/synthetic_pointer_action_params.cc:20: switch ...
4 years, 8 months ago (2016-03-31 20:04:37 UTC) #40
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1707943002/360001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1707943002/360001
4 years, 8 months ago (2016-04-01 21:34:57 UTC) #45
commit-bot: I haz the power
Committed patchset #8 (id:360001)
4 years, 8 months ago (2016-04-01 23:45:20 UTC) #47
commit-bot: I haz the power
Patchset 8 (id:??) landed as https://crrev.com/7f8f2c5601e8506e62615e48e4a83424ea4b1c0b Cr-Commit-Position: refs/heads/master@{#384716}
4 years, 8 months ago (2016-04-01 23:46:31 UTC) #49
dcheng
https://codereview.chromium.org/1707943002/diff/300001/content/common/input/synthetic_pointer_action_params.cc File content/common/input/synthetic_pointer_action_params.cc (right): https://codereview.chromium.org/1707943002/diff/300001/content/common/input/synthetic_pointer_action_params.cc#newcode20 content/common/input/synthetic_pointer_action_params.cc:20: switch (other.pointer_action_type()) { On 2016/03/31 at 20:04:37, dcheng wrote: ...
4 years, 8 months ago (2016-04-02 08:05:12 UTC) #50
lanwei
On 2016/04/02 08:05:12, dcheng wrote: > https://codereview.chromium.org/1707943002/diff/300001/content/common/input/synthetic_pointer_action_params.cc > File content/common/input/synthetic_pointer_action_params.cc (right): > > https://codereview.chromium.org/1707943002/diff/300001/content/common/input/synthetic_pointer_action_params.cc#newcode20 > ...
4 years, 8 months ago (2016-04-02 14:51:10 UTC) #51
lanwei
https://codereview.chromium.org/1707943002/diff/300001/content/common/input/synthetic_pointer_action_params.cc File content/common/input/synthetic_pointer_action_params.cc (right): https://codereview.chromium.org/1707943002/diff/300001/content/common/input/synthetic_pointer_action_params.cc#newcode20 content/common/input/synthetic_pointer_action_params.cc:20: switch (other.pointer_action_type()) { On 2016/03/31 20:04:37, dcheng wrote: > ...
4 years, 8 months ago (2016-04-02 14:51:22 UTC) #52
Nico
This breaks GYP_DEFINES=enable_ipc_fuzzer=1 builds: https://build.chromium.org/p/chromium.fyi/builders/CrWinAsan/builds/3215/steps/compile/logs/stdio ..\..\content/common/input_messages.h(120,28): error: 'position_' is a private member of 'content::SyntheticPointerActionParams' IPC_STRUCT_TRAITS_MEMBER(position_) ...
4 years, 8 months ago (2016-04-02 20:36:34 UTC) #54
lanwei
On 2016/04/02 20:36:34, Nico wrote: > This breaks GYP_DEFINES=enable_ipc_fuzzer=1 builds: > > https://build.chromium.org/p/chromium.fyi/builders/CrWinAsan/builds/3215/steps/compile/logs/stdio > > ...
4 years, 8 months ago (2016-04-02 20:44:17 UTC) #55
lanwei
On 2016/04/02 20:36:34, Nico wrote: > This breaks GYP_DEFINES=enable_ipc_fuzzer=1 builds: > > https://build.chromium.org/p/chromium.fyi/builders/CrWinAsan/builds/3215/steps/compile/logs/stdio > > ...
4 years, 8 months ago (2016-04-02 20:44:25 UTC) #56
lanwei
4 years, 8 months ago (2016-04-02 20:44:29 UTC) #57
Message was sent while issue was closed.
On 2016/04/02 20:36:34, Nico wrote:
> This breaks GYP_DEFINES=enable_ipc_fuzzer=1 builds:
> 
>
https://build.chromium.org/p/chromium.fyi/builders/CrWinAsan/builds/3215/step...
> 
> ..\..\content/common/input_messages.h(120,28):  error: 'position_' is a
private
> member of 'content::SyntheticPointerActionParams'
>   IPC_STRUCT_TRAITS_MEMBER(position_)
>                            ^
> ..\..\content/common/input/synthetic_pointer_action_params.h(73,15):  note:
> declared private here
>   gfx::PointF position_;
>               ^
> 
> Can you take a look, please?

I am looking, thanks.

Powered by Google App Engine
This is Rietveld 408576698