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

Issue 1144313003: Added PointerEvent firing on touch events. (Closed)

Created:
5 years, 7 months ago by mustaq
Modified:
5 years, 6 months ago
CC:
blink-reviews, blink-reviews-events_chromium.org, sof, eae+blinkwatch, blink-reviews-dom_chromium.org, dglazkov+blink, rwlbuis
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

Added PointerEvent firing on touch events. This CL adds PointerEvent firing logic on touches. TouchEvent firing is made conditional on all PointerEvents being unconsumed. The PointerEvent with the first pointerdown is marked as primary. BUG=476565 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=197390

Patch Set 1 : #

Total comments: 12

Patch Set 2 : #

Total comments: 4

Patch Set 3 : #

Total comments: 1

Patch Set 4 : Added primary-pointer detection #

Patch Set 5 : Fixed EventHandlerRegistry issue #

Patch Set 6 : Fixed the gyp rule for nuked ThreadLocalEventNames.h #

Total comments: 33

Patch Set 7 : Addressed all of reviewers' comments until Jun 11 #

Patch Set 8 : Fixed primary pointer id on reuse. #

Total comments: 2

Patch Set 9 : Fixed primary pointer id on reuse, for each type of Pointers. #

Total comments: 22

Patch Set 10 : #

Patch Set 11 : Rebased with master #

Patch Set 12 : Fixed test failures. #

Patch Set 13 : Rebased. TODO fixes. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+934 lines, -133 lines) Patch
M LayoutTests/fast/dom/Window/property-access-on-cached-window-after-frame-navigated-expected.txt View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +8 lines, -0 lines 0 comments Download
M LayoutTests/fast/dom/Window/property-access-on-cached-window-after-frame-removed-and-gced-expected.txt View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +8 lines, -0 lines 0 comments Download
M LayoutTests/fast/dom/Window/property-access-on-cached-window-after-frame-removed-expected.txt View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +8 lines, -0 lines 0 comments Download
A LayoutTests/fast/events/pointerevents/touch-pointer-events.html View 1 2 3 4 5 6 7 8 9 1 chunk +191 lines, -0 lines 0 comments Download
A LayoutTests/fast/events/pointerevents/touch-pointer-events-expected.txt View 1 2 3 4 5 6 1 chunk +50 lines, -0 lines 0 comments Download
A LayoutTests/virtual/pointerevent/fast/events/pointerevents/touch-pointer-events-expected.txt View 1 2 3 4 5 6 7 8 9 1 chunk +88 lines, -0 lines 0 comments Download
D LayoutTests/virtual/pointerevent/fast/events/scale-and-scroll-body-expected.png View 1 2 3 4 5 6 7 8 9 Binary file 0 comments Download
M LayoutTests/virtual/stable/webexposed/element-instance-property-listing-expected.txt View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +16 lines, -0 lines 0 comments Download
M LayoutTests/virtual/stable/webexposed/global-interface-listing-expected.txt View 1 2 3 4 5 6 7 8 9 10 11 12 7 chunks +56 lines, -0 lines 0 comments Download
M LayoutTests/webexposed/element-instance-property-listing-expected.txt View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +16 lines, -0 lines 0 comments Download
M LayoutTests/webexposed/global-interface-listing-expected.txt View 1 2 3 4 5 6 7 8 9 10 11 12 7 chunks +56 lines, -0 lines 0 comments Download
M Source/core/core.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +2 lines, -1 line 0 comments Download
M Source/core/dom/GlobalEventHandlers.h View 1 2 3 4 5 6 1 chunk +8 lines, -0 lines 0 comments Download
M Source/core/dom/GlobalEventHandlers.idl View 1 2 3 4 5 6 7 8 9 10 1 chunk +8 lines, -0 lines 0 comments Download
M Source/core/dom/Node.h View 1 2 3 4 5 6 7 8 9 10 2 chunks +2 lines, -0 lines 0 comments Download
M Source/core/dom/Node.cpp View 1 2 3 4 5 6 7 8 9 10 3 chunks +9 lines, -0 lines 0 comments Download
M Source/core/events/EventTarget.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +4 lines, -1 line 0 comments Download
M Source/core/events/EventTypeNames.in View 1 2 3 4 5 6 7 8 9 10 11 12 3 chunks +10 lines, -0 lines 0 comments Download
M Source/core/events/PointerEvent.h View 1 2 chunks +12 lines, -0 lines 0 comments Download
M Source/core/events/PointerEvent.cpp View 1 2 3 4 5 6 7 8 9 10 3 chunks +40 lines, -0 lines 0 comments Download
A Source/core/events/PointerIdManager.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +40 lines, -0 lines 0 comments Download
A Source/core/events/PointerIdManager.cpp View 1 2 3 4 5 6 7 8 9 1 chunk +52 lines, -0 lines 0 comments Download
D Source/core/events/ThreadLocalEventNames.h View 1 2 3 4 1 chunk +0 lines, -42 lines 0 comments Download
M Source/core/frame/EventHandlerRegistry.cpp View 1 2 3 4 5 6 7 8 9 10 3 chunks +30 lines, -1 line 0 comments Download
M Source/core/input/EventHandler.h View 1 2 3 4 5 6 7 8 9 10 6 chunks +18 lines, -1 line 0 comments Download
M Source/core/input/EventHandler.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 8 chunks +202 lines, -87 lines 0 comments Download

Messages

Total messages: 28 (6 generated)
mustaq
PTAL at my first attempt. The fired PEs are not visible in JS (e.g. through ...
5 years, 7 months ago (2015-05-25 17:01:11 UTC) #3
Rick Byers
This all seems reasonable for a start. A few suggestions... https://codereview.chromium.org/1144313003/diff/20001/Source/core/dom/Node.cpp File Source/core/dom/Node.cpp (right): https://codereview.chromium.org/1144313003/diff/20001/Source/core/dom/Node.cpp#newcode2119 ...
5 years, 7 months ago (2015-05-25 18:24:26 UTC) #4
mustaq
https://codereview.chromium.org/1144313003/diff/20001/Source/core/dom/Node.cpp File Source/core/dom/Node.cpp (right): https://codereview.chromium.org/1144313003/diff/20001/Source/core/dom/Node.cpp#newcode2119 Source/core/dom/Node.cpp:2119: if (event->isPointerEvent()) On 2015/05/25 18:24:26, Rick Byers wrote: > ...
5 years, 7 months ago (2015-05-26 15:00:09 UTC) #5
Rick Byers
Looking good. Need to add tests of course. https://codereview.chromium.org/1144313003/diff/40001/Source/core/dom/Node.cpp File Source/core/dom/Node.cpp (left): https://codereview.chromium.org/1144313003/diff/40001/Source/core/dom/Node.cpp#oldcode2117 Source/core/dom/Node.cpp:2117: return ...
5 years, 7 months ago (2015-05-27 23:58:07 UTC) #6
Rick Byers
On 2015/05/26 15:00:09, mustaq wrote: > https://codereview.chromium.org/1144313003/diff/20001/Source/core/dom/Node.cpp > File Source/core/dom/Node.cpp (right): > > https://codereview.chromium.org/1144313003/diff/20001/Source/core/dom/Node.cpp#newcode2119 > ...
5 years, 7 months ago (2015-05-28 00:05:19 UTC) #7
mustaq
ptal if you see any red flag. This is closer to the final state of ...
5 years, 6 months ago (2015-06-09 15:31:27 UTC) #8
USE eero AT chromium.org
https://codereview.chromium.org/1144313003/diff/60001/Source/core/frame/EventHandlerRegistry.h File Source/core/frame/EventHandlerRegistry.h (right): https://codereview.chromium.org/1144313003/diff/60001/Source/core/frame/EventHandlerRegistry.h#newcode75 Source/core/frame/EventHandlerRegistry.h:75: static bool eventTypeToClass(const AtomicString& eventType, EventHandlerClass* result); You have ...
5 years, 6 months ago (2015-06-09 18:51:02 UTC) #10
mustaq
On 2015/06/09 18:51:02, e_hakkinen wrote: > https://codereview.chromium.org/1144313003/diff/60001/Source/core/frame/EventHandlerRegistry.h > File Source/core/frame/EventHandlerRegistry.h (right): > > https://codereview.chromium.org/1144313003/diff/60001/Source/core/frame/EventHandlerRegistry.h#newcode75 > ...
5 years, 6 months ago (2015-06-10 14:55:12 UTC) #11
mustaq
ptal, this should be ready to go now. Completed the 2 missing pieces: - done ...
5 years, 6 months ago (2015-06-10 14:58:14 UTC) #12
Rick Byers
On 2015/06/09 18:51:02, e_hakkinen wrote: > https://codereview.chromium.org/1144313003/diff/60001/Source/core/frame/EventHandlerRegistry.h > File Source/core/frame/EventHandlerRegistry.h (right): > > https://codereview.chromium.org/1144313003/diff/60001/Source/core/frame/EventHandlerRegistry.h#newcode75 > ...
5 years, 6 months ago (2015-06-11 03:39:35 UTC) #13
Rick Byers
This is looking close! https://codereview.chromium.org/1144313003/diff/120001/LayoutTests/fast/events/touch/touch-pointer-events.html File LayoutTests/fast/events/touch/touch-pointer-events.html (right): https://codereview.chromium.org/1144313003/diff/120001/LayoutTests/fast/events/touch/touch-pointer-events.html#newcode1 LayoutTests/fast/events/touch/touch-pointer-events.html:1: <!DOCTYPE HTML> Ultimately we're going ...
5 years, 6 months ago (2015-06-11 04:14:56 UTC) #14
USE eero AT chromium.org
https://codereview.chromium.org/1144313003/diff/120001/Source/core/page/EventHandler.cpp File Source/core/page/EventHandler.cpp (right): https://codereview.chromium.org/1144313003/diff/120001/Source/core/page/EventHandler.cpp#newcode4027 Source/core/page/EventHandler.cpp:4027: const AtomicString& eventName(pointerEventNameForTouchPointState(pointState)); This does not handle correctly touch ...
5 years, 6 months ago (2015-06-11 11:12:42 UTC) #15
mustaq
ptal, I have addressed all comments so far. https://codereview.chromium.org/1144313003/diff/120001/LayoutTests/fast/events/touch/touch-pointer-events.html File LayoutTests/fast/events/touch/touch-pointer-events.html (right): https://codereview.chromium.org/1144313003/diff/120001/LayoutTests/fast/events/touch/touch-pointer-events.html#newcode1 LayoutTests/fast/events/touch/touch-pointer-events.html:1: <!DOCTYPE ...
5 years, 6 months ago (2015-06-12 16:05:24 UTC) #16
mustaq
https://codereview.chromium.org/1144313003/diff/120001/Source/core/page/EventHandler.cpp File Source/core/page/EventHandler.cpp (right): https://codereview.chromium.org/1144313003/diff/120001/Source/core/page/EventHandler.cpp#newcode4072 Source/core/page/EventHandler.cpp:4072: m_primaryIdByPointerType.remove(PointerTypeTouch); On 2015/06/12 16:05:23, mustaq wrote: > On 2015/06/11 ...
5 years, 6 months ago (2015-06-12 20:37:18 UTC) #17
Rick Byers
On 2015/06/12 20:37:18, mustaq wrote: > https://codereview.chromium.org/1144313003/diff/120001/Source/core/page/EventHandler.cpp > File Source/core/page/EventHandler.cpp (right): > > https://codereview.chromium.org/1144313003/diff/120001/Source/core/page/EventHandler.cpp#newcode4072 > ...
5 years, 6 months ago (2015-06-12 21:05:54 UTC) #18
mustaq
On 2015/06/12 21:05:54, Rick Byers (Slow until 6-22) wrote: > On 2015/06/12 20:37:18, mustaq wrote: ...
5 years, 6 months ago (2015-06-15 18:04:06 UTC) #19
Rick Byers
Great! Just a couple minor nits now https://codereview.chromium.org/1144313003/diff/120001/LayoutTests/fast/events/touch/touch-pointer-events.html File LayoutTests/fast/events/touch/touch-pointer-events.html (right): https://codereview.chromium.org/1144313003/diff/120001/LayoutTests/fast/events/touch/touch-pointer-events.html#newcode1 LayoutTests/fast/events/touch/touch-pointer-events.html:1: <!DOCTYPE HTML> ...
5 years, 6 months ago (2015-06-16 17:25:39 UTC) #20
mustaq
ptal. https://codereview.chromium.org/1144313003/diff/180001/Source/core/events/PointerEventUtils.h File Source/core/events/PointerEventUtils.h (right): https://codereview.chromium.org/1144313003/diff/180001/Source/core/events/PointerEventUtils.h#newcode5 Source/core/events/PointerEventUtils.h:5: #ifndef PointerEventUtils_h On 2015/06/16 17:25:38, Rick Byers (Slow ...
5 years, 6 months ago (2015-06-16 20:18:43 UTC) #22
Rick Byers
LGTM https://codereview.chromium.org/1144313003/diff/200001/Source/core/events/PointerEventUtils.cpp File Source/core/events/PointerEventUtils.cpp (right): https://codereview.chromium.org/1144313003/diff/200001/Source/core/events/PointerEventUtils.cpp#newcode31 Source/core/events/PointerEventUtils.cpp:31: m_hasPrimaryId[type] = true; On 2015/06/16 20:18:42, mustaq wrote: ...
5 years, 6 months ago (2015-06-18 17:40:08 UTC) #23
mustaq
Thanks, will CQ now. https://codereview.chromium.org/1144313003/diff/200001/Source/core/events/PointerEventUtils.cpp File Source/core/events/PointerEventUtils.cpp (right): https://codereview.chromium.org/1144313003/diff/200001/Source/core/events/PointerEventUtils.cpp#newcode31 Source/core/events/PointerEventUtils.cpp:31: m_hasPrimaryId[type] = true; On 2015/06/18 ...
5 years, 6 months ago (2015-06-18 18:20:53 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1144313003/280001
5 years, 6 months ago (2015-06-18 18:24:03 UTC) #27
commit-bot: I haz the power
5 years, 6 months ago (2015-06-18 19:47:54 UTC) #28
Message was sent while issue was closed.
Committed patchset #13 (id:280001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=197390

Powered by Google App Engine
This is Rietveld 408576698