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

Issue 2634183002: Support multi-button press for synthetic mouse events (Closed)

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

Description

Support multi-button press for synthetic mouse events SyntheticWebMouseEventBuilder::Build now only supports left button press. In order to simulate multi-button press, we keep all the pressed buttons in SyntheticMouseDriver. This is separated from https://codereview.chromium.org/2621353003, which will replace mouse actions in pointer event tests with pointerActionSequence. BUG=680330 Review-Url: https://codereview.chromium.org/2634183002 Cr-Commit-Position: refs/heads/master@{#444493} Committed: https://chromium.googlesource.com/chromium/src/+/988a23455eeee97b2611a4400f6716db1cc5c9c1

Patch Set 1 : mouse button #

Patch Set 2 : Test modifiers and button #

Total comments: 4

Patch Set 3 : Refactor #

Total comments: 2

Patch Set 4 : make button enum #

Patch Set 5 : button #

Unified diffs Side-by-side diffs Delta from patch set Stats (+244 lines, -67 lines) Patch
M content/browser/renderer_host/input/synthetic_gesture_target_aura.cc View 2 chunks +10 lines, -15 lines 0 comments Download
M content/browser/renderer_host/input/synthetic_mouse_driver.h View 1 2 3 1 chunk +10 lines, -2 lines 0 comments Download
M content/browser/renderer_host/input/synthetic_mouse_driver.cc View 1 2 3 4 4 chunks +27 lines, -9 lines 0 comments Download
M content/browser/renderer_host/input/synthetic_pointer_action.cc View 1 chunk +4 lines, -3 lines 0 comments Download
M content/browser/renderer_host/input/synthetic_pointer_action_unittest.cc View 1 2 3 4 7 chunks +108 lines, -24 lines 0 comments Download
M content/browser/renderer_host/input/synthetic_pointer_driver.h View 1 2 3 1 chunk +8 lines, -2 lines 0 comments Download
M content/browser/renderer_host/input/synthetic_touch_driver.h View 1 2 3 1 chunk +8 lines, -2 lines 0 comments Download
M content/browser/renderer_host/input/synthetic_touch_driver.cc View 1 2 3 2 chunks +7 lines, -2 lines 0 comments Download
M content/common/input/synthetic_pointer_action_params.h View 1 2 3 4 5 chunks +21 lines, -0 lines 0 comments Download
M content/common/input/synthetic_pointer_action_params.cc View 1 2 3 4 1 chunk +35 lines, -2 lines 0 comments Download
M content/common/input/synthetic_web_input_event_builders.cc View 4 1 chunk +2 lines, -6 lines 0 comments Download
M content/common/input_messages.h View 1 2 3 2 chunks +4 lines, -0 lines 0 comments Download

Messages

Total messages: 64 (49 generated)
lanwei
I spilt the patch for testing on mouse, could you please take another look, thanks?
3 years, 11 months ago (2017-01-16 19:56:37 UTC) #12
tdresser
Should this have unit tests?
3 years, 11 months ago (2017-01-16 20:31:52 UTC) #13
lanwei
3 years, 11 months ago (2017-01-16 23:51:19 UTC) #18
tdresser
https://codereview.chromium.org/2634183002/diff/40001/content/browser/renderer_host/input/synthetic_pointer_action_unittest.cc File content/browser/renderer_host/input/synthetic_pointer_action_unittest.cc (right): https://codereview.chromium.org/2634183002/diff/40001/content/browser/renderer_host/input/synthetic_pointer_action_unittest.cc#newcode64 content/browser/renderer_host/input/synthetic_pointer_action_unittest.cc:64: blink::WebMouseEvent::Button GetWebMouseEventButton(int button) { We shouldn't duplicate these. Let's ...
3 years, 11 months ago (2017-01-17 13:23:18 UTC) #19
lanwei
https://codereview.chromium.org/2634183002/diff/40001/content/browser/renderer_host/input/synthetic_pointer_action_unittest.cc File content/browser/renderer_host/input/synthetic_pointer_action_unittest.cc (right): https://codereview.chromium.org/2634183002/diff/40001/content/browser/renderer_host/input/synthetic_pointer_action_unittest.cc#newcode64 content/browser/renderer_host/input/synthetic_pointer_action_unittest.cc:64: blink::WebMouseEvent::Button GetWebMouseEventButton(int button) { On 2017/01/17 13:23:18, tdresser wrote: ...
3 years, 11 months ago (2017-01-17 19:50:34 UTC) #28
tdresser
Let's move the static methods to: https://cs.chromium.org/chromium/src/ui/events/blink/web_input_event_traits.h?q=web_input_event_tra&sq=package:chromium&l=5 LGTM
3 years, 11 months ago (2017-01-17 20:03:04 UTC) #29
lanwei
dcheng@ could you please take a look at the content/common/input_messages.h, thanks you!
3 years, 11 months ago (2017-01-17 22:18:42 UTC) #33
lanwei
On 2017/01/17 20:03:04, tdresser wrote: > Let's move the static methods to: > https://cs.chromium.org/chromium/src/ui/events/blink/web_input_event_traits.h?q=web_input_event_tra&sq=package:chromium&l=5 > ...
3 years, 11 months ago (2017-01-17 22:26:51 UTC) #34
dcheng
https://codereview.chromium.org/2634183002/diff/100001/content/common/input/synthetic_pointer_action_params.h File content/common/input/synthetic_pointer_action_params.h (right): https://codereview.chromium.org/2634183002/diff/100001/content/common/input/synthetic_pointer_action_params.h#newcode79 content/common/input/synthetic_pointer_action_params.h:79: DCHECK_GE(button_, 0); Presumably, left/middle/right. Is it possible to make ...
3 years, 11 months ago (2017-01-17 23:42:19 UTC) #35
lanwei
https://codereview.chromium.org/2634183002/diff/100001/content/common/input/synthetic_pointer_action_params.h File content/common/input/synthetic_pointer_action_params.h (right): https://codereview.chromium.org/2634183002/diff/100001/content/common/input/synthetic_pointer_action_params.h#newcode79 content/common/input/synthetic_pointer_action_params.h:79: DCHECK_GE(button_, 0); On 2017/01/17 23:42:19, dcheng wrote: > Presumably, ...
3 years, 11 months ago (2017-01-18 04:24:43 UTC) #41
tdresser
On 2017/01/17 22:26:51, lanwei wrote: > On 2017/01/17 20:03:04, tdresser wrote: > > Let's move ...
3 years, 11 months ago (2017-01-18 13:42:22 UTC) #44
dcheng
ipc lgtm
3 years, 11 months ago (2017-01-18 18:32:50 UTC) #45
Navid Zolghadr
lgtm
3 years, 11 months ago (2017-01-18 19:15:54 UTC) #48
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/2634183002/200001
3 years, 11 months ago (2017-01-18 21:36:02 UTC) #61
commit-bot: I haz the power
3 years, 11 months ago (2017-01-18 21:43:02 UTC) #64
Message was sent while issue was closed.
Committed patchset #5 (id:200001) as
https://chromium.googlesource.com/chromium/src/+/988a23455eeee97b2611a4400f67...

Powered by Google App Engine
This is Rietveld 408576698