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

Issue 1426643008: Cleaning up PointerIdManager and add id re-mapping (Closed)

Created:
5 years, 1 month ago by Navid Zolghadr
Modified:
5 years ago
Reviewers:
mustaq, Rick Byers
CC:
chromium-reviews, blink-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Cleaning up PointerIdManager and changing it to PointerEventFactory - Move some create methods of PointerEvent to PointerEventFactory - Add id re-mapping concept to have guaranteed unique pointer ids among touch, stylus, and mouse pointer types. - Set mouse id to 1 - Set the mouse pointer type in event sender BUG=546658 Committed: https://crrev.com/06d3f72718785fea41c1e4deffe330afb5e24841 Cr-Commit-Position: refs/heads/master@{#362779}

Patch Set 1 #

Total comments: 1

Patch Set 2 : Add tests #

Patch Set 3 : Fixing the corresponding layout tests and adding comments #

Patch Set 4 : Fixing a link error in the shared_library case #

Total comments: 3

Patch Set 5 : PointerIdManager -> PointerEventFactory #

Patch Set 6 : Fix rebase conflict #

Total comments: 25

Patch Set 7 : Handling pen as mouse event #

Patch Set 8 : Set mouse pointer type in the event sender #

Total comments: 8

Patch Set 9 : Resetting current id in clear #

Patch Set 10 : add tests for createPointerCancel #

Patch Set 11 : Fix EXPECT_EQ compilation error on Android #

Unified diffs Side-by-side diffs Delta from patch set Stats (+619 lines, -318 lines) Patch
M components/test_runner/event_sender.cc View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/fast/events/pointerevents/mouse-pointer-event-properties.html View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/fast/events/pointerevents/touch-pointer-event-properties.html View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/LayoutTests/virtual/pointerevent/fast/events/pointerevents/mouse-pointer-event-properties-expected.txt View 1 2 3 4 5 13 chunks +13 lines, -13 lines 0 comments Download
M third_party/WebKit/LayoutTests/virtual/pointerevent/fast/events/pointerevents/touch-pointer-event-properties-expected.txt View 1 2 1 chunk +3 lines, -3 lines 0 comments Download
M third_party/WebKit/LayoutTests/virtual/pointerevent/fast/events/pointerevents/touch-pointer-events-expected.txt View 1 2 1 chunk +8 lines, -8 lines 0 comments Download
M third_party/WebKit/LayoutTests/virtual/pointerevent/fast/events/pointerevents/touch-pointercancel-expected.txt View 1 2 3 4 1 chunk +66 lines, -66 lines 0 comments Download
M third_party/WebKit/Source/core/core.gypi View 1 2 3 4 5 6 2 chunks +3 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/events/PointerEvent.h View 1 2 3 4 1 chunk +0 lines, -10 lines 0 comments Download
M third_party/WebKit/Source/core/events/PointerEvent.cpp View 1 2 3 4 5 1 chunk +0 lines, -99 lines 0 comments Download
A third_party/WebKit/Source/core/events/PointerEventFactory.h View 1 2 3 4 5 6 7 8 1 chunk +73 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/core/events/PointerEventFactory.cpp View 1 2 3 4 5 6 7 8 9 1 chunk +202 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/core/events/PointerEventFactoryTest.cpp View 1 2 3 4 5 6 7 8 9 10 1 chunk +238 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/events/PointerIdManager.h View 1 2 3 4 1 chunk +0 lines, -35 lines 0 comments Download
M third_party/WebKit/Source/core/events/PointerIdManager.cpp View 1 2 3 4 1 chunk +0 lines, -58 lines 0 comments Download
M third_party/WebKit/Source/core/input/EventHandler.h View 1 2 3 4 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/input/EventHandler.cpp View 1 2 3 4 5 5 chunks +7 lines, -19 lines 0 comments Download

Messages

Total messages: 35 (7 generated)
Navid Zolghadr
Hey guys, I have uploaded this review for the cleanup of PointerIdManager and also adding ...
5 years, 1 month ago (2015-11-10 17:48:50 UTC) #2
Navid Zolghadr
ptal
5 years, 1 month ago (2015-11-11 17:20:53 UTC) #3
Rick Byers
Sorry for the delay (been busy with BlinkOn etc.). Mustaq knows this code best so ...
5 years, 1 month ago (2015-11-14 18:24:07 UTC) #4
Rick Byers
On 2015/11/14 18:24:07, Rick Byers (slow until Nov 23) wrote: > Sorry for the delay ...
5 years, 1 month ago (2015-11-14 18:26:27 UTC) #5
Navid Zolghadr
I will add the comments in the next patch. There are also some layout tests ...
5 years, 1 month ago (2015-11-14 18:34:51 UTC) #6
Rick Byers
On 2015/11/14 18:34:51, Navid Zolghadr wrote: > I will add the comments in the next ...
5 years, 1 month ago (2015-11-14 19:11:28 UTC) #7
Navid Zolghadr
I tested with the Surface. It matches the current implementation more or less. The pointer ...
5 years, 1 month ago (2015-11-16 19:24:44 UTC) #8
mustaq
Sorry for taking so long. The id mapping looks good but I have a few ...
5 years, 1 month ago (2015-11-20 20:13:53 UTC) #9
Navid Zolghadr
https://codereview.chromium.org/1426643008/diff/60001/third_party/WebKit/Source/core/input/EventHandler.cpp File third_party/WebKit/Source/core/input/EventHandler.cpp (right): https://codereview.chromium.org/1426643008/diff/60001/third_party/WebKit/Source/core/input/EventHandler.cpp#newcode3670 third_party/WebKit/Source/core/input/EventHandler.cpp:3670: const PointerIdManager::MappedId mappedId = m_pointerIdManager.add(PointerIdManager::GeneratedPointer(pointerType, pointerId)); On 2015/11/20 20:13:53, ...
5 years, 1 month ago (2015-11-20 20:32:22 UTC) #10
mustaq
On 2015/11/20 20:32:22, Navid Zolghadr wrote: > https://codereview.chromium.org/1426643008/diff/60001/third_party/WebKit/Source/core/input/EventHandler.cpp > File third_party/WebKit/Source/core/input/EventHandler.cpp (right): > > https://codereview.chromium.org/1426643008/diff/60001/third_party/WebKit/Source/core/input/EventHandler.cpp#newcode3670 ...
5 years, 1 month ago (2015-11-20 21:18:56 UTC) #11
Navid Zolghadr
I pushed a new patchset applying all the comments and the new design of using ...
5 years ago (2015-11-24 18:51:03 UTC) #12
mustaq
On 2015/11/24 18:51:03, Navid Zolghadr wrote: > I pushed a new patchset applying all the ...
5 years ago (2015-11-24 18:58:17 UTC) #13
Rick Byers
On 2015/11/16 19:24:44, Navid Zolghadr wrote: > I tested with the Surface. It matches the ...
5 years ago (2015-11-24 20:08:18 UTC) #15
Navid Zolghadr
On 2015/11/24 20:08:18, Rick Byers wrote: > On 2015/11/16 19:24:44, Navid Zolghadr wrote: > > ...
5 years ago (2015-11-24 20:27:42 UTC) #16
mustaq
EventHandler is much cleaner now, thanks to your simple create() interface. There are a few ...
5 years ago (2015-11-25 21:43:40 UTC) #17
Navid Zolghadr
https://codereview.chromium.org/1426643008/diff/100001/third_party/WebKit/Source/core/events/PointerEventFactory.cpp File third_party/WebKit/Source/core/events/PointerEventFactory.cpp (right): https://codereview.chromium.org/1426643008/diff/100001/third_party/WebKit/Source/core/events/PointerEventFactory.cpp#newcode33 third_party/WebKit/Source/core/events/PointerEventFactory.cpp:33: // Mouse id is 1 to behave the same ...
5 years ago (2015-11-25 22:22:59 UTC) #18
Navid Zolghadr
I missed 2 of the previous comments before. Also to be able to see what ...
5 years ago (2015-11-26 20:15:10 UTC) #19
Rick Byers
On 2015/11/24 20:27:42, Navid Zolghadr wrote: > On 2015/11/24 20:08:18, Rick Byers wrote: > > ...
5 years ago (2015-11-27 02:04:46 UTC) #20
Rick Byers
On 2015/11/26 20:15:10, Navid Zolghadr wrote: > I missed 2 of the previous comments before. ...
5 years ago (2015-11-27 02:10:33 UTC) #21
mustaq
On 2015/11/27 02:10:33, Rick Byers wrote: > On 2015/11/26 20:15:10, Navid Zolghadr wrote: > > ...
5 years ago (2015-11-27 16:51:49 UTC) #22
Navid Zolghadr
ptal I applied all the comments and tested again with pen on Chromebook. To the ...
5 years ago (2015-12-01 19:07:29 UTC) #23
mustaq
Have a few quick nits. https://codereview.chromium.org/1426643008/diff/140001/components/test_runner/event_sender.cc File components/test_runner/event_sender.cc (right): https://codereview.chromium.org/1426643008/diff/140001/components/test_runner/event_sender.cc#newcode96 components/test_runner/event_sender.cc:96: e->pointerType = blink::WebPointerProperties::PointerType::Mouse; Please ...
5 years ago (2015-12-02 15:53:46 UTC) #24
Navid Zolghadr
ptal https://codereview.chromium.org/1426643008/diff/140001/components/test_runner/event_sender.cc File components/test_runner/event_sender.cc (right): https://codereview.chromium.org/1426643008/diff/140001/components/test_runner/event_sender.cc#newcode96 components/test_runner/event_sender.cc:96: e->pointerType = blink::WebPointerProperties::PointerType::Mouse; On 2015/12/02 15:53:46, mustaq wrote: ...
5 years ago (2015-12-02 16:49:08 UTC) #26
mustaq
Thanks for the clean interface. LGTM. Please close the bug after CQing.
5 years ago (2015-12-02 18:35:59 UTC) #27
Rick Byers
LGTM (for OWNERS)
5 years ago (2015-12-02 18:55:59 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1426643008/200001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1426643008/200001
5 years ago (2015-12-02 19:48:58 UTC) #31
commit-bot: I haz the power
Committed patchset #11 (id:200001)
5 years ago (2015-12-02 20:07:02 UTC) #33
commit-bot: I haz the power
5 years ago (2015-12-02 20:08:23 UTC) #35
Message was sent while issue was closed.
Patchset 11 (id:??) landed as
https://crrev.com/06d3f72718785fea41c1e4deffe330afb5e24841
Cr-Commit-Position: refs/heads/master@{#362779}

Powered by Google App Engine
This is Rietveld 408576698