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

Issue 2178153002: Prepare SyntheticPointerAction to handle mouse actions (Closed)

Created:
4 years, 5 months ago by lanwei
Modified:
4 years, 3 months ago
Reviewers:
samuong, tdresser
CC:
chromium-reviews, darin-cc_chromium.org, jam, dtapuska+chromiumwatch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Prepare SyntheticPointerAction to handle mouse actions This patch is to make SyntheticPointerAction handle mouse actions. Next patch: Modify SyntheticGestureController to queue all the actions in one SyntheticPointerAction until we see a PROCESS action, then pushing in a queue and flush. BUG=525187 Committed: https://crrev.com/f536869d57e5ce2e7a5a4b860dcc1e675432face Cr-Commit-Position: refs/heads/master@{#410124}

Patch Set 1 #

Total comments: 4

Patch Set 2 : pointer action #

Patch Set 3 : set index 0 #

Total comments: 4

Patch Set 4 : Add comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+214 lines, -13 lines) Patch
M content/browser/renderer_host/input/synthetic_mouse_pointer.cc View 1 chunk +4 lines, -1 line 0 comments Download
M content/browser/renderer_host/input/synthetic_pointer_action.cc View 1 1 chunk +9 lines, -4 lines 0 comments Download
M content/browser/renderer_host/input/synthetic_pointer_action_unittest.cc View 1 2 10 chunks +198 lines, -8 lines 0 comments Download
M content/common/input/synthetic_pointer_action_params.h View 1 2 3 2 chunks +3 lines, -0 lines 0 comments Download

Messages

Total messages: 38 (27 generated)
lanwei
4 years, 5 months ago (2016-07-26 02:55:34 UTC) #9
tdresser
https://codereview.chromium.org/2178153002/diff/1/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/2178153002/diff/1/content/browser/renderer_host/input/synthetic_pointer_action_unittest.cc#newcode370 content/browser/renderer_host/input/synthetic_pointer_action_unittest.cc:370: TEST_F(SyntheticPointerActionTest, PointerMouseAction) { How different are the touch and ...
4 years, 4 months ago (2016-07-26 12:27:42 UTC) #10
lanwei
https://codereview.chromium.org/2178153002/diff/1/content/common/input/synthetic_pointer_action_params.cc File content/common/input/synthetic_pointer_action_params.cc (left): https://codereview.chromium.org/2178153002/diff/1/content/common/input/synthetic_pointer_action_params.cc#oldcode14 content/common/input/synthetic_pointer_action_params.cc:14: : pointer_action_type_(type), index_(-1) {} On 2016/07/26 12:27:41, tdresser wrote: ...
4 years, 4 months ago (2016-07-28 04:47:23 UTC) #18
tdresser
https://codereview.chromium.org/2178153002/diff/1/content/common/input/synthetic_pointer_action_params.cc File content/common/input/synthetic_pointer_action_params.cc (left): https://codereview.chromium.org/2178153002/diff/1/content/common/input/synthetic_pointer_action_params.cc#oldcode14 content/common/input/synthetic_pointer_action_params.cc:14: : pointer_action_type_(type), index_(-1) {} On 2016/07/28 04:47:23, lanwei wrote: ...
4 years, 4 months ago (2016-07-28 12:29:55 UTC) #19
lanwei
4 years, 4 months ago (2016-08-03 13:38:24 UTC) #24
tdresser
LGTM https://codereview.chromium.org/2178153002/diff/60001/content/browser/renderer_host/input/synthetic_pointer_action.cc File content/browser/renderer_host/input/synthetic_pointer_action.cc (right): https://codereview.chromium.org/2178153002/diff/60001/content/browser/renderer_host/input/synthetic_pointer_action.cc#newcode80 content/browser/renderer_host/input/synthetic_pointer_action.cc:80: if (synthetic_pointer_->SourceType() == SyntheticGestureParams::TOUCH_INPUT && This should also ...
4 years, 4 months ago (2016-08-04 13:46:01 UTC) #25
samuong
lgtm
4 years, 4 months ago (2016-08-04 18:07:20 UTC) #26
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/2178153002/80001
4 years, 4 months ago (2016-08-05 18:33:19 UTC) #33
commit-bot: I haz the power
Committed patchset #4 (id:80001)
4 years, 4 months ago (2016-08-05 19:06:32 UTC) #35
commit-bot: I haz the power
Patchset 4 (id:??) landed as https://crrev.com/f536869d57e5ce2e7a5a4b860dcc1e675432face Cr-Commit-Position: refs/heads/master@{#410124}
4 years, 4 months ago (2016-08-05 19:09:04 UTC) #37
lanwei
4 years, 3 months ago (2016-09-23 15:13:43 UTC) #38
Message was sent while issue was closed.
https://codereview.chromium.org/2178153002/diff/60001/content/browser/rendere...
File content/browser/renderer_host/input/synthetic_pointer_action.cc (right):

https://codereview.chromium.org/2178153002/diff/60001/content/browser/rendere...
content/browser/renderer_host/input/synthetic_pointer_action.cc:80: if
(synthetic_pointer_->SourceType() == SyntheticGestureParams::TOUCH_INPUT &&
On 2016/08/04 13:46:01, tdresser wrote:
> This should also hold true for mouse, shouldn't it?

For mouse, the move can be happened without a press first, so we do not need
this check for mouse.

https://codereview.chromium.org/2178153002/diff/60001/content/common/input/sy...
File content/common/input/synthetic_pointer_action_params.h (right):

https://codereview.chromium.org/2178153002/diff/60001/content/common/input/sy...
content/common/input/synthetic_pointer_action_params.h:51: void set_index(int
index) {
On 2016/08/04 13:46:01, tdresser wrote:
> Maybe add a comment that the only valid index for mouse is 0.

Done.

Powered by Google App Engine
This is Rietveld 408576698