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

Issue 1670073004: Send node transition events for touch events (Closed)

Created:
4 years, 10 months ago by Navid Zolghadr
Modified:
4 years, 10 months ago
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

Send node transition events for touch events This CL adds firing of pointerover/enter when touch starts on an element, and pointerout/leave when touch ends. This CL also includes some refactoring around our PointerEvents code. We isolated: - PE handling details off from EventHandler, - PE states & dispatches into PointerEventManager, and - PE creation & id-management into PointerEventFactory. BUG=583376 Committed: https://crrev.com/99d107b0e05edcd98f74b8d3a889e5151519e14d Cr-Commit-Position: refs/heads/master@{#375261}

Patch Set 1 #

Total comments: 4

Patch Set 2 : Refactoring of some code #

Patch Set 3 : Rebasing #

Patch Set 4 : #

Patch Set 5 : Add the tests #

Total comments: 26

Patch Set 6 : Applying the comments #

Total comments: 16

Patch Set 7 : Applying comments #

Total comments: 4

Patch Set 8 : Trying to fix the test #

Patch Set 9 : Fixing the comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+920 lines, -1178 lines) Patch
M third_party/WebKit/LayoutTests/fast/events/pointerevents/touch-pointer-events.html View 1 2 3 4 5 6 1 chunk +0 lines, -187 lines 0 comments Download
M third_party/WebKit/LayoutTests/fast/events/pointerevents/touch-pointer-events-expected.txt View 1 2 3 4 5 6 1 chunk +0 lines, -50 lines 0 comments Download
A + third_party/WebKit/LayoutTests/virtual/pointerevent/fast/events/pointerevents/touch-pointer-events.html View 1 2 3 4 5 6 7 4 chunks +64 lines, -37 lines 0 comments Download
M third_party/WebKit/LayoutTests/virtual/pointerevent/fast/events/pointerevents/touch-pointer-events-expected.txt View 1 2 3 4 3 chunks +168 lines, -22 lines 0 comments Download
M third_party/WebKit/Source/core/core.gypi View 1 2 3 chunks +5 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/events/PointerEvent.h View 1 2 3 4 2 chunks +2 lines, -2 lines 0 comments Download
A third_party/WebKit/Source/core/events/PointerEventFactory.h View 1 2 3 4 5 6 7 8 1 chunk +77 lines, -0 lines 0 comments Download
A + third_party/WebKit/Source/core/events/PointerEventFactory.cpp View 1 2 3 4 5 6 9 chunks +54 lines, -26 lines 0 comments Download
A + third_party/WebKit/Source/core/events/PointerEventFactoryTest.cpp View 1 9 chunks +39 lines, -39 lines 0 comments Download
M third_party/WebKit/Source/core/events/PointerEventManager.h View 1 1 chunk +0 lines, -76 lines 0 comments Download
D third_party/WebKit/Source/core/events/PointerEventManager.cpp View 1 2 1 chunk +0 lines, -215 lines 0 comments Download
D third_party/WebKit/Source/core/events/PointerEventManagerTest.cpp View 1 1 chunk +0 lines, -238 lines 0 comments Download
M third_party/WebKit/Source/core/input/EventHandler.h View 1 2 3 4 5 6 chunks +6 lines, -18 lines 0 comments Download
M third_party/WebKit/Source/core/input/EventHandler.cpp View 1 2 3 4 5 6 15 chunks +53 lines, -265 lines 0 comments Download
A third_party/WebKit/Source/core/input/PointerEventManager.h View 1 2 3 4 5 6 1 chunk +87 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/core/input/PointerEventManager.cpp View 1 2 3 4 5 1 chunk +365 lines, -0 lines 0 comments Download

Messages

Total messages: 30 (9 generated)
Navid Zolghadr
This is the change for sending pointerover/enter/out/leave for touch events. Before I go and fix/add ...
4 years, 10 months ago (2016-02-05 15:51:06 UTC) #2
mustaq
The change makes EventHandler's PE handling more modular for sure. However, the transition event task ...
4 years, 10 months ago (2016-02-08 17:01:34 UTC) #3
Navid Zolghadr
Mustaq, I moved as much pointerevent related logic as I could at this stage from ...
4 years, 10 months ago (2016-02-10 16:25:29 UTC) #5
dtapuska
On 2016/02/10 16:25:29, Navid Zolghadr wrote: > Mustaq, I moved as much pointerevent related logic ...
4 years, 10 months ago (2016-02-10 16:30:50 UTC) #6
mustaq
The refactoring makes the code much cleaner and modular, thanks. Only one major concern here: ...
4 years, 10 months ago (2016-02-11 16:15:16 UTC) #7
Navid Zolghadr
https://codereview.chromium.org/1670073004/diff/80001/third_party/WebKit/LayoutTests/fast/events/pointerevents/touch-pointer-events.html File third_party/WebKit/LayoutTests/fast/events/pointerevents/touch-pointer-events.html (right): https://codereview.chromium.org/1670073004/diff/80001/third_party/WebKit/LayoutTests/fast/events/pointerevents/touch-pointer-events.html#newcode200 third_party/WebKit/LayoutTests/fast/events/pointerevents/touch-pointer-events.html:200: testPEParamsSingleTouch(x, y); On 2016/02/11 16:15:15, mustaq wrote: > The ...
4 years, 10 months ago (2016-02-11 16:34:52 UTC) #8
mustaq
https://codereview.chromium.org/1670073004/diff/80001/third_party/WebKit/LayoutTests/fast/events/pointerevents/touch-pointer-events.html File third_party/WebKit/LayoutTests/fast/events/pointerevents/touch-pointer-events.html (right): https://codereview.chromium.org/1670073004/diff/80001/third_party/WebKit/LayoutTests/fast/events/pointerevents/touch-pointer-events.html#newcode200 third_party/WebKit/LayoutTests/fast/events/pointerevents/touch-pointer-events.html:200: testPEParamsSingleTouch(x, y); On 2016/02/11 16:34:51, Navid Zolghadr wrote: > ...
4 years, 10 months ago (2016-02-11 16:51:12 UTC) #9
Navid Zolghadr
I applied the comments. ptal. https://codereview.chromium.org/1670073004/diff/80001/third_party/WebKit/Source/core/events/PointerEventFactory.h File third_party/WebKit/Source/core/events/PointerEventFactory.h (right): https://codereview.chromium.org/1670073004/diff/80001/third_party/WebKit/Source/core/events/PointerEventFactory.h#newcode72 third_party/WebKit/Source/core/events/PointerEventFactory.h:72: HashMap<IncomingId, int, WTF::PairHash<int, int>, ...
4 years, 10 months ago (2016-02-11 17:47:49 UTC) #10
mustaq
https://codereview.chromium.org/1670073004/diff/100001/third_party/WebKit/Source/core/input/EventHandler.cpp File third_party/WebKit/Source/core/input/EventHandler.cpp (right): https://codereview.chromium.org/1670073004/diff/100001/third_party/WebKit/Source/core/input/EventHandler.cpp#newcode1325 third_party/WebKit/Source/core/input/EventHandler.cpp:1325: PlatformEvent::NoModifiers); I added it before chorded button support, should ...
4 years, 10 months ago (2016-02-11 19:11:31 UTC) #11
Navid Zolghadr
https://codereview.chromium.org/1670073004/diff/100001/third_party/WebKit/Source/core/input/EventHandler.cpp File third_party/WebKit/Source/core/input/EventHandler.cpp (right): https://codereview.chromium.org/1670073004/diff/100001/third_party/WebKit/Source/core/input/EventHandler.cpp#newcode1325 third_party/WebKit/Source/core/input/EventHandler.cpp:1325: PlatformEvent::NoModifiers); On 2016/02/11 19:11:31, mustaq wrote: > I added ...
4 years, 10 months ago (2016-02-11 19:17:24 UTC) #12
mustaq
lgtm with nit. Adding Ian for owner's approval. https://codereview.chromium.org/1670073004/diff/80001/third_party/WebKit/Source/core/input/EventHandler.cpp File third_party/WebKit/Source/core/input/EventHandler.cpp (right): https://codereview.chromium.org/1670073004/diff/80001/third_party/WebKit/Source/core/input/EventHandler.cpp#newcode1608 third_party/WebKit/Source/core/input/EventHandler.cpp:1608: m_pointerEventManager.sendNodeTransitionEvents(lastNodeUnderMouse.get(), ...
4 years, 10 months ago (2016-02-11 20:37:29 UTC) #14
Ian Vollick
https://codereview.chromium.org/1670073004/diff/100001/third_party/WebKit/LayoutTests/fast/events/pointerevents/touch-pointer-events-expected.txt File third_party/WebKit/LayoutTests/fast/events/pointerevents/touch-pointer-events-expected.txt (right): https://codereview.chromium.org/1670073004/diff/100001/third_party/WebKit/LayoutTests/fast/events/pointerevents/touch-pointer-events-expected.txt#newcode42 third_party/WebKit/LayoutTests/fast/events/pointerevents/touch-pointer-events-expected.txt:42: FAIL receivedPEsAtTarget[2].buttons should be 1. Threw exception TypeError: Cannot ...
4 years, 10 months ago (2016-02-12 15:01:17 UTC) #15
mustaq
https://codereview.chromium.org/1670073004/diff/100001/third_party/WebKit/Source/core/events/PointerEventFactory.cpp File third_party/WebKit/Source/core/events/PointerEventFactory.cpp (right): https://codereview.chromium.org/1670073004/diff/100001/third_party/WebKit/Source/core/events/PointerEventFactory.cpp#newcode5 third_party/WebKit/Source/core/events/PointerEventFactory.cpp:5: #include "core/events/PointerEventFactory.h" On 2016/02/12 15:01:17, vollick wrote: > Although ...
4 years, 10 months ago (2016-02-12 15:17:40 UTC) #16
Navid Zolghadr
ptal https://codereview.chromium.org/1670073004/diff/80001/third_party/WebKit/Source/core/input/EventHandler.cpp File third_party/WebKit/Source/core/input/EventHandler.cpp (right): https://codereview.chromium.org/1670073004/diff/80001/third_party/WebKit/Source/core/input/EventHandler.cpp#newcode1608 third_party/WebKit/Source/core/input/EventHandler.cpp:1608: m_pointerEventManager.sendNodeTransitionEvents(lastNodeUnderMouse.get(), On 2016/02/11 20:37:29, mustaq wrote: > On ...
4 years, 10 months ago (2016-02-12 16:30:48 UTC) #18
Ian Vollick
Thanks. lgtm w/ nit. https://codereview.chromium.org/1670073004/diff/120001/third_party/WebKit/Source/core/events/PointerEventFactory.h File third_party/WebKit/Source/core/events/PointerEventFactory.h (right): https://codereview.chromium.org/1670073004/diff/120001/third_party/WebKit/Source/core/events/PointerEventFactory.h#newcode56 third_party/WebKit/Source/core/events/PointerEventFactory.h:56: */ nit: //.
4 years, 10 months ago (2016-02-12 16:41:32 UTC) #19
Navid Zolghadr
https://codereview.chromium.org/1670073004/diff/100001/third_party/WebKit/LayoutTests/fast/events/pointerevents/touch-pointer-events-expected.txt File third_party/WebKit/LayoutTests/fast/events/pointerevents/touch-pointer-events-expected.txt (right): https://codereview.chromium.org/1670073004/diff/100001/third_party/WebKit/LayoutTests/fast/events/pointerevents/touch-pointer-events-expected.txt#newcode42 third_party/WebKit/LayoutTests/fast/events/pointerevents/touch-pointer-events-expected.txt:42: FAIL receivedPEsAtTarget[2].buttons should be 1. Threw exception TypeError: Cannot ...
4 years, 10 months ago (2016-02-12 16:43:55 UTC) #20
Ian Vollick
https://codereview.chromium.org/1670073004/diff/120001/third_party/WebKit/LayoutTests/virtual/pointerevent/fast/events/pointerevents/touch-pointer-events.html File third_party/WebKit/LayoutTests/virtual/pointerevent/fast/events/pointerevents/touch-pointer-events.html (right): https://codereview.chromium.org/1670073004/diff/120001/third_party/WebKit/LayoutTests/virtual/pointerevent/fast/events/pointerevents/touch-pointer-events.html#newcode2 third_party/WebKit/LayoutTests/virtual/pointerevent/fast/events/pointerevents/touch-pointer-events.html:2: <script src="../../../resources/js-test.js"></script> I suspect that the need for a ...
4 years, 10 months ago (2016-02-12 17:01:22 UTC) #21
Navid Zolghadr
https://codereview.chromium.org/1670073004/diff/120001/third_party/WebKit/LayoutTests/virtual/pointerevent/fast/events/pointerevents/touch-pointer-events.html File third_party/WebKit/LayoutTests/virtual/pointerevent/fast/events/pointerevents/touch-pointer-events.html (right): https://codereview.chromium.org/1670073004/diff/120001/third_party/WebKit/LayoutTests/virtual/pointerevent/fast/events/pointerevents/touch-pointer-events.html#newcode2 third_party/WebKit/LayoutTests/virtual/pointerevent/fast/events/pointerevents/touch-pointer-events.html:2: <script src="../../../resources/js-test.js"></script> On 2016/02/12 17:01:21, vollick wrote: > I ...
4 years, 10 months ago (2016-02-12 18:41:18 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1670073004/160001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1670073004/160001
4 years, 10 months ago (2016-02-12 20:10:49 UTC) #26
commit-bot: I haz the power
Committed patchset #9 (id:160001)
4 years, 10 months ago (2016-02-12 21:43:22 UTC) #28
commit-bot: I haz the power
4 years, 10 months ago (2016-02-16 22:45:18 UTC) #30
Message was sent while issue was closed.
Patchset 9 (id:??) landed as
https://crrev.com/99d107b0e05edcd98f74b8d3a889e5151519e14d
Cr-Commit-Position: refs/heads/master@{#375261}

Powered by Google App Engine
This is Rietveld 408576698