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

Issue 1884883005: Prepare SyntheticPointerAction to handle touch actions for multiple fingers (Closed)

Created:
4 years, 8 months ago by lanwei
Modified:
4 years, 5 months ago
Reviewers:
samuong, tdresser, dcheng
CC:
chromium-reviews, mlamouri+watch-content_chromium.org, extensions-reviews_chromium.org, jam, dtapuska+chromiumwatch_chromium.org, darin-cc_chromium.org, piman+watch_chromium.org, mkwst+moarreviews-renderer_chromium.org, chromium-apps-reviews_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 touch actions for multiple fingers This patch is to make SyntheticPointerAction handle touch actions for multiple fingers, which will be dispatched together in one frame. 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. Make sure mouse actions also work. Put the TouchActionSequence in the GpuBenchmarking for now. Please see the design doc here: https://docs.google.com/document/d/1adz5Xb1hYt6SCRdMdhR2EXjhvF-AqshCIhZv7jVuZF4 BUG=525187 Committed: https://crrev.com/a9d9a6721c939076b6c688b137378f2c4b939eb9 Cr-Commit-Position: refs/heads/master@{#405222}

Patch Set 1 #

Total comments: 12

Patch Set 2 : Move logic to controller #

Total comments: 16

Patch Set 3 : Make a new class SyntheticPointerActionController #

Total comments: 21

Patch Set 4 : Modify comments #

Total comments: 19

Patch Set 5 : #

Total comments: 1

Patch Set 6 : Add tests for mouse and change type of params_list #

Total comments: 16

Patch Set 7 : Split the patch #

Total comments: 1

Patch Set 8 : Move synthetic pointer action tests in a seperate file #

Total comments: 8

Patch Set 9 : Create a test for SyntheticPointerAction #

Total comments: 2

Patch Set 10 : Refactor test #

Patch Set 11 : #

Total comments: 6

Patch Set 12 : Refactor tests #

Total comments: 5

Patch Set 13 : pointer action #

Total comments: 6

Patch Set 14 : new pointer action #

Total comments: 14

Patch Set 15 : new pointer action #

Total comments: 4

Patch Set 16 : return nullptr #

Unified diffs Side-by-side diffs Delta from patch set Stats (+491 lines, -124 lines) Patch
M content/browser/renderer_host/input/synthetic_gesture.h View 1 2 3 4 5 6 2 chunks +4 lines, -1 line 0 comments Download
M content/browser/renderer_host/input/synthetic_gesture.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +3 lines, -5 lines 0 comments Download
M content/browser/renderer_host/input/synthetic_gesture_controller_unittest.cc View 1 2 3 4 5 6 7 1 chunk +1 line, -63 lines 0 comments Download
M content/browser/renderer_host/input/synthetic_gesture_target_base.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +5 lines, -7 lines 0 comments Download
M content/browser/renderer_host/input/synthetic_mouse_pointer.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +2 lines, -0 lines 0 comments Download
M content/browser/renderer_host/input/synthetic_mouse_pointer.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +5 lines, -0 lines 0 comments Download
M content/browser/renderer_host/input/synthetic_pointer.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +2 lines, -0 lines 0 comments Download
M content/browser/renderer_host/input/synthetic_pointer_action.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +34 lines, -7 lines 0 comments Download
M content/browser/renderer_host/input/synthetic_pointer_action.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +58 lines, -27 lines 0 comments Download
A content/browser/renderer_host/input/synthetic_pointer_action_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +333 lines, -0 lines 0 comments Download
M content/browser/renderer_host/input/synthetic_touch_pointer.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +2 lines, -0 lines 0 comments Download
M content/browser/renderer_host/input/synthetic_touch_pointer.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +5 lines, -0 lines 0 comments Download
M content/common/input/OWNERS View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +3 lines, -0 lines 0 comments Download
M content/common/input/input_param_traits_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 5 chunks +25 lines, -10 lines 0 comments Download
M content/common/input/synthetic_pointer_action_params.h View 1 2 3 4 3 chunks +8 lines, -4 lines 0 comments Download
M content/content_tests.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 61 (22 generated)
lanwei
Tim and Sam, can you please take a look? This patch is pretty rough, please ...
4 years, 8 months ago (2016-04-13 19:08:40 UTC) #3
tdresser
A bit of early feedback. https://codereview.chromium.org/1884883005/diff/1/content/browser/renderer_host/input/synthetic_pointer_action.cc File content/browser/renderer_host/input/synthetic_pointer_action.cc (right): https://codereview.chromium.org/1884883005/diff/1/content/browser/renderer_host/input/synthetic_pointer_action.cc#newcode53 content/browser/renderer_host/input/synthetic_pointer_action.cc:53: SyntheticPointerActionParams params = (*iter); ...
4 years, 8 months ago (2016-04-18 15:24:39 UTC) #4
lanwei
https://codereview.chromium.org/1884883005/diff/1/content/browser/renderer_host/input/synthetic_pointer_action.cc File content/browser/renderer_host/input/synthetic_pointer_action.cc (right): https://codereview.chromium.org/1884883005/diff/1/content/browser/renderer_host/input/synthetic_pointer_action.cc#newcode60 content/browser/renderer_host/input/synthetic_pointer_action.cc:60: index_map_[params.index()] = index; On 2016/04/18 15:24:39, tdresser wrote: > ...
4 years, 8 months ago (2016-04-19 19:05:33 UTC) #5
lanwei
4 years, 7 months ago (2016-05-11 19:41:15 UTC) #6
tdresser
https://codereview.chromium.org/1884883005/diff/20001/content/browser/renderer_host/input/synthetic_gesture.h File content/browser/renderer_host/input/synthetic_gesture.h (right): https://codereview.chromium.org/1884883005/diff/20001/content/browser/renderer_host/input/synthetic_gesture.h#newcode41 content/browser/renderer_host/input/synthetic_gesture.h:41: POINTER_ACTION_PROCESSED, Maybe add a comment describing what's different about ...
4 years, 7 months ago (2016-05-13 13:58:04 UTC) #7
lanwei
https://codereview.chromium.org/1884883005/diff/20001/content/browser/renderer_host/input/synthetic_gesture.h File content/browser/renderer_host/input/synthetic_gesture.h (right): https://codereview.chromium.org/1884883005/diff/20001/content/browser/renderer_host/input/synthetic_gesture.h#newcode41 content/browser/renderer_host/input/synthetic_gesture.h:41: POINTER_ACTION_PROCESSED, On 2016/05/13 13:58:04, tdresser wrote: > Maybe add ...
4 years, 7 months ago (2016-05-19 16:04:13 UTC) #12
tdresser
https://codereview.chromium.org/1884883005/diff/120001/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/1884883005/diff/120001/content/browser/renderer_host/input/synthetic_gesture_controller_unittest.cc#newcode49 content/browser/renderer_host/input/synthetic_gesture_controller_unittest.cc:49: class MockSyntheticGestureController : public SyntheticGestureController { Technically this isn't ...
4 years, 7 months ago (2016-05-19 17:57:04 UTC) #13
lanwei
https://codereview.chromium.org/1884883005/diff/120001/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/1884883005/diff/120001/content/browser/renderer_host/input/synthetic_gesture_controller_unittest.cc#newcode49 content/browser/renderer_host/input/synthetic_gesture_controller_unittest.cc:49: class MockSyntheticGestureController : public SyntheticGestureController { On 2016/05/19 17:57:03, ...
4 years, 7 months ago (2016-05-20 01:48:16 UTC) #16
tdresser
https://codereview.chromium.org/1884883005/diff/120001/content/browser/renderer_host/input/synthetic_pointer_action.h File content/browser/renderer_host/input/synthetic_pointer_action.h (right): https://codereview.chromium.org/1884883005/diff/120001/content/browser/renderer_host/input/synthetic_pointer_action.h#newcode47 content/browser/renderer_host/input/synthetic_pointer_action.h:47: std::vector<SyntheticPointerActionParams> param_list_; On 2016/05/20 01:48:16, lanwei wrote: > On ...
4 years, 7 months ago (2016-05-20 14:24:31 UTC) #17
lanwei
https://codereview.chromium.org/1884883005/diff/140001/content/browser/renderer_host/input/synthetic_gesture.h File content/browser/renderer_host/input/synthetic_gesture.h (right): https://codereview.chromium.org/1884883005/diff/140001/content/browser/renderer_host/input/synthetic_gesture.h#newcode41 content/browser/renderer_host/input/synthetic_gesture.h:41: // Used when receiving SyntheticPointerAction of PROCESS or FINISH ...
4 years, 7 months ago (2016-05-23 16:40:51 UTC) #18
tdresser
https://codereview.chromium.org/1884883005/diff/140001/content/browser/renderer_host/input/synthetic_gesture_controller_unittest.cc File content/browser/renderer_host/input/synthetic_gesture_controller_unittest.cc (left): https://codereview.chromium.org/1884883005/diff/140001/content/browser/renderer_host/input/synthetic_gesture_controller_unittest.cc#oldcode1492 content/browser/renderer_host/input/synthetic_gesture_controller_unittest.cc:1492: EXPECT_EQ(pointer_touch_target->type(), WebInputEvent::TouchStart); On 2016/05/23 16:40:50, lanwei wrote: > On ...
4 years, 7 months ago (2016-05-24 20:35:39 UTC) #19
lanwei
4 years, 6 months ago (2016-05-27 18:03:19 UTC) #20
tdresser
https://codereview.chromium.org/1884883005/diff/180001/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/1884883005/diff/180001/content/browser/renderer_host/input/synthetic_gesture_controller_unittest.cc#newcode1656 content/browser/renderer_host/input/synthetic_gesture_controller_unittest.cc:1656: EXPECT_EQ(0, num_failure_); Should we test a case that does ...
4 years, 6 months ago (2016-05-31 13:44:26 UTC) #21
lanwei
https://codereview.chromium.org/1884883005/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/1884883005/diff/180001/content/browser/renderer_host/input/synthetic_pointer_action.cc#newcode44 content/browser/renderer_host/input/synthetic_pointer_action.cc:44: case SyntheticPointerActionParams::PointerActionType::PRESS: { On 2016/05/31 13:44:26, tdresser wrote: > ...
4 years, 6 months ago (2016-06-02 13:26:27 UTC) #24
tdresser
Thanks for splitting this up. Everything looks good - I just want to do another ...
4 years, 6 months ago (2016-06-02 13:39:25 UTC) #25
lanwei
4 years, 6 months ago (2016-06-06 13:35:33 UTC) #28
tdresser
https://codereview.chromium.org/1884883005/diff/280001/content/browser/renderer_host/input/synthetic_pointer_action_controller_unittest.cc File content/browser/renderer_host/input/synthetic_pointer_action_controller_unittest.cc (right): https://codereview.chromium.org/1884883005/diff/280001/content/browser/renderer_host/input/synthetic_pointer_action_controller_unittest.cc#newcode47 content/browser/renderer_host/input/synthetic_pointer_action_controller_unittest.cc:47: void set_pointer_assumed_stopped_time_ms(int time_ms) { NOTIMPLEMENTED(); } Why is this ...
4 years, 6 months ago (2016-06-06 18:36:09 UTC) #29
lanwei
https://codereview.chromium.org/1884883005/diff/280001/content/browser/renderer_host/input/synthetic_pointer_action_controller_unittest.cc File content/browser/renderer_host/input/synthetic_pointer_action_controller_unittest.cc (right): https://codereview.chromium.org/1884883005/diff/280001/content/browser/renderer_host/input/synthetic_pointer_action_controller_unittest.cc#newcode47 content/browser/renderer_host/input/synthetic_pointer_action_controller_unittest.cc:47: void set_pointer_assumed_stopped_time_ms(int time_ms) { NOTIMPLEMENTED(); } On 2016/06/06 18:36:08, ...
4 years, 6 months ago (2016-06-08 14:48:37 UTC) #32
lanwei
https://codereview.chromium.org/1884883005/diff/280001/content/browser/renderer_host/input/synthetic_pointer_action_controller_unittest.cc File content/browser/renderer_host/input/synthetic_pointer_action_controller_unittest.cc (right): https://codereview.chromium.org/1884883005/diff/280001/content/browser/renderer_host/input/synthetic_pointer_action_controller_unittest.cc#newcode47 content/browser/renderer_host/input/synthetic_pointer_action_controller_unittest.cc:47: void set_pointer_assumed_stopped_time_ms(int time_ms) { NOTIMPLEMENTED(); } On 2016/06/06 18:36:08, ...
4 years, 6 months ago (2016-06-09 14:37:04 UTC) #34
tdresser
https://codereview.chromium.org/1884883005/diff/360001/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/1884883005/diff/360001/content/browser/renderer_host/input/synthetic_pointer_action_unittest.cc#newcode72 content/browser/renderer_host/input/synthetic_pointer_action_unittest.cc:72: unsigned touch_length_; This has touch specific information in it, ...
4 years, 6 months ago (2016-06-09 16:50:22 UTC) #35
lanwei
https://codereview.chromium.org/1884883005/diff/360001/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/1884883005/diff/360001/content/browser/renderer_host/input/synthetic_pointer_action_unittest.cc#newcode72 content/browser/renderer_host/input/synthetic_pointer_action_unittest.cc:72: unsigned touch_length_; On 2016/06/09 16:50:22, tdresser wrote: > This ...
4 years, 6 months ago (2016-06-09 18:10:14 UTC) #36
lanwei
4 years, 6 months ago (2016-06-10 12:25:46 UTC) #37
tdresser
https://codereview.chromium.org/1884883005/diff/400001/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/1884883005/diff/400001/content/browser/renderer_host/input/synthetic_pointer_action_unittest.cc#newcode35 content/browser/renderer_host/input/synthetic_pointer_action_unittest.cc:35: return SyntheticGestureParams::TOUCH_INPUT; Should this be pure virtual? https://codereview.chromium.org/1884883005/diff/400001/content/browser/renderer_host/input/synthetic_pointer_action_unittest.cc#newcode163 content/browser/renderer_host/input/synthetic_pointer_action_unittest.cc:163: ...
4 years, 6 months ago (2016-06-10 18:33:29 UTC) #38
lanwei
https://codereview.chromium.org/1884883005/diff/400001/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/1884883005/diff/400001/content/browser/renderer_host/input/synthetic_pointer_action_unittest.cc#newcode35 content/browser/renderer_host/input/synthetic_pointer_action_unittest.cc:35: return SyntheticGestureParams::TOUCH_INPUT; On 2016/06/10 18:33:29, tdresser wrote: > Should ...
4 years, 6 months ago (2016-06-16 07:54:24 UTC) #39
tdresser
https://codereview.chromium.org/1884883005/diff/420001/content/browser/renderer_host/input/synthetic_pointer_action.cc File content/browser/renderer_host/input/synthetic_pointer_action.cc (right): https://codereview.chromium.org/1884883005/diff/420001/content/browser/renderer_host/input/synthetic_pointer_action.cc#newcode42 content/browser/renderer_host/input/synthetic_pointer_action.cc:42: switch (params.pointer_action_type()) Are you missing a brace here? I'm ...
4 years, 6 months ago (2016-06-23 14:22:50 UTC) #40
lanwei
https://codereview.chromium.org/1884883005/diff/420001/content/browser/renderer_host/input/synthetic_pointer_action.cc File content/browser/renderer_host/input/synthetic_pointer_action.cc (right): https://codereview.chromium.org/1884883005/diff/420001/content/browser/renderer_host/input/synthetic_pointer_action.cc#newcode42 content/browser/renderer_host/input/synthetic_pointer_action.cc:42: switch (params.pointer_action_type()) On 2016/06/23 14:22:50, tdresser wrote: > Are ...
4 years, 5 months ago (2016-06-28 12:42:38 UTC) #41
tdresser
LGTM, but get a review from Sam and a security owner for the owners change. ...
4 years, 5 months ago (2016-06-28 15:44:11 UTC) #42
lanwei
https://codereview.chromium.org/1884883005/diff/440001/content/browser/renderer_host/input/synthetic_pointer_action.h File content/browser/renderer_host/input/synthetic_pointer_action.h (right): https://codereview.chromium.org/1884883005/diff/440001/content/browser/renderer_host/input/synthetic_pointer_action.h#newcode43 content/browser/renderer_host/input/synthetic_pointer_action.h:43: bool UserInputCheck(const SyntheticPointerActionParams& params); On 2016/06/28 15:44:11, tdresser wrote: ...
4 years, 5 months ago (2016-07-07 19:35:32 UTC) #45
tdresser
Still LGTM https://codereview.chromium.org/1884883005/diff/500001/content/browser/renderer_host/input/synthetic_pointer.h File content/browser/renderer_host/input/synthetic_pointer.h (right): https://codereview.chromium.org/1884883005/diff/500001/content/browser/renderer_host/input/synthetic_pointer.h#newcode43 content/browser/renderer_host/input/synthetic_pointer.h:43: virtual SyntheticGestureParams::GestureSourceType PointerSourceType() We could just call ...
4 years, 5 months ago (2016-07-08 12:22:14 UTC) #46
samuong
https://codereview.chromium.org/1884883005/diff/500001/content/browser/renderer_host/input/synthetic_pointer_action.cc File content/browser/renderer_host/input/synthetic_pointer_action.cc (right): https://codereview.chromium.org/1884883005/diff/500001/content/browser/renderer_host/input/synthetic_pointer_action.cc#newcode23 content/browser/renderer_host/input/synthetic_pointer_action.cc:23: index_map_(index_map) {} In a previous discussion, we decided that ...
4 years, 5 months ago (2016-07-08 18:38:35 UTC) #47
lanwei
https://codereview.chromium.org/1884883005/diff/500001/content/browser/renderer_host/input/synthetic_pointer_action.cc File content/browser/renderer_host/input/synthetic_pointer_action.cc (right): https://codereview.chromium.org/1884883005/diff/500001/content/browser/renderer_host/input/synthetic_pointer_action.cc#newcode23 content/browser/renderer_host/input/synthetic_pointer_action.cc:23: index_map_(index_map) {} On 2016/07/08 18:38:34, samuong wrote: > In ...
4 years, 5 months ago (2016-07-12 19:54:55 UTC) #48
samuong
OK I see, that's fine with me then. LGTM.
4 years, 5 months ago (2016-07-12 21:51:26 UTC) #49
lanwei
https://codereview.chromium.org/1884883005/diff/500001/content/browser/renderer_host/input/synthetic_pointer.h File content/browser/renderer_host/input/synthetic_pointer.h (right): https://codereview.chromium.org/1884883005/diff/500001/content/browser/renderer_host/input/synthetic_pointer.h#newcode43 content/browser/renderer_host/input/synthetic_pointer.h:43: virtual SyntheticGestureParams::GestureSourceType PointerSourceType() On 2016/07/08 12:22:14, tdresser wrote: > ...
4 years, 5 months ago (2016-07-13 02:23:56 UTC) #51
dcheng
ipc lgtm https://codereview.chromium.org/1884883005/diff/520001/content/browser/renderer_host/input/synthetic_gesture.cc File content/browser/renderer_host/input/synthetic_gesture.cc (right): https://codereview.chromium.org/1884883005/diff/520001/content/browser/renderer_host/input/synthetic_gesture.cc#newcode48 content/browser/renderer_host/input/synthetic_gesture.cc:48: return std::unique_ptr<SyntheticGesture>(); Nit: this can be written ...
4 years, 5 months ago (2016-07-13 12:18:12 UTC) #52
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/1884883005/540001
4 years, 5 months ago (2016-07-13 16:54:20 UTC) #55
commit-bot: I haz the power
Committed patchset #16 (id:540001)
4 years, 5 months ago (2016-07-13 19:37:32 UTC) #57
commit-bot: I haz the power
CQ bit was unchecked.
4 years, 5 months ago (2016-07-13 19:37:48 UTC) #58
commit-bot: I haz the power
Patchset 16 (id:??) landed as https://crrev.com/a9d9a6721c939076b6c688b137378f2c4b939eb9 Cr-Commit-Position: refs/heads/master@{#405222}
4 years, 5 months ago (2016-07-13 19:39:21 UTC) #60
lanwei
4 years, 5 months ago (2016-07-14 17:05:54 UTC) #61
Message was sent while issue was closed.
https://codereview.chromium.org/1884883005/diff/500001/content/browser/render...
File content/browser/renderer_host/input/synthetic_pointer_action_unittest.cc
(right):

https://codereview.chromium.org/1884883005/diff/500001/content/browser/render...
content/browser/renderer_host/input/synthetic_pointer_action_unittest.cc:94:
void SetUp() override {
On 2016/07/08 12:22:14, tdresser wrote:
> Prefer code in the constructor to code in SetUp.

Done.

https://codereview.chromium.org/1884883005/diff/500001/content/browser/render...
content/browser/renderer_host/input/synthetic_pointer_action_unittest.cc:108:
pointer_action_.reset();
On 2016/07/08 12:22:14, tdresser wrote:
> These resets shouldn't be necessary.

Done.

https://codereview.chromium.org/1884883005/diff/500001/content/common/input/O...
File content/common/input/OWNERS (right):

https://codereview.chromium.org/1884883005/diff/500001/content/common/input/O...
content/common/input/OWNERS:5: per-file
*_param_traits*.*=file://ipc/SECURITY_OWNERS
On 2016/07/08 12:22:14, tdresser wrote:
> Add someone from SECURITY_OWNERS as a reviewer, to make sure this is correct.

Done.

https://codereview.chromium.org/1884883005/diff/520001/content/browser/render...
File content/browser/renderer_host/input/synthetic_gesture.cc (right):

https://codereview.chromium.org/1884883005/diff/520001/content/browser/render...
content/browser/renderer_host/input/synthetic_gesture.cc:48: return
std::unique_ptr<SyntheticGesture>();
On 2016/07/13 12:18:12, dcheng wrote:
> Nit: this can be written as return nullptr

Acknowledged.

https://codereview.chromium.org/1884883005/diff/520001/content/browser/render...
File content/browser/renderer_host/input/synthetic_pointer_action.cc (right):

https://codereview.chromium.org/1884883005/diff/520001/content/browser/render...
content/browser/renderer_host/input/synthetic_pointer_action.cc:18:
std::unique_ptr<std::vector<SyntheticPointerActionParams>> param_list,
On 2016/07/13 12:18:12, dcheng wrote:
> FWIW, vector is movable in C++11, so the unique_ptr indirection isn't really
> necessary. Unfortunately, Chromium style doesn't allow writing
std::vector<>&&,
> so that means we can't force the input to be an efficient move. So if you
think
> this is better and less prone to error, I'm fine with that.

We think it is safe to use unique_ptr here to guarantee always moving the
vector.

Powered by Google App Engine
This is Rietveld 408576698