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

Issue 2510133002: Add getCoalescedEvents API to PointerEvent (Closed)

Created:
4 years, 1 month ago by Navid Zolghadr
Modified:
4 years ago
CC:
chromium-reviews, caseq+blink_chromium.org, dtapuska+blinkwatch_chromium.org, lushnikov+blink_chromium.org, pfeldman+blink_chromium.org, apavlov+blink_chromium.org, devtools-reviews_chromium.org, blink-reviews, kinuko+watch, kozyatinskiy+blink_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add getCoalescedEvents API to PointerEvent Adding getCoalescedEvents API to the idl file of PointerEventInit and getter method to PointerEvent idl. Also add the plumbing and creation in EventHandler layer and PointerEventManager. BUG=665937 Committed: https://crrev.com/92109dbbe9d1a2f422aff101e69ab123a70c56d1 Cr-Commit-Position: refs/heads/master@{#434849}

Patch Set 1 #

Patch Set 2 : Fix build.gn and add an extra test #

Total comments: 7

Patch Set 3 : Adding DCHECKs #

Total comments: 16

Patch Set 4 : Adding checks for pointerTypes #

Total comments: 3

Patch Set 5 : Adding more DCHECKs and layout test #

Patch Set 6 : add comment about the two added functions #

Total comments: 2

Patch Set 7 : Remove extra braces #

Patch Set 8 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+506 lines, -144 lines) Patch
M third_party/WebKit/LayoutTests/fast/events/constructors/pointer-event-constructor.html View 1 2 3 4 5 6 7 1 chunk +17 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/fast/events/constructors/pointer-event-constructor-expected.txt View 1 2 3 4 5 6 7 1 chunk +8 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/webexposed/global-interface-listing-expected.txt View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/events/PointerEvent.h View 1 3 chunks +5 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/events/PointerEvent.cpp View 1 2 3 4 5 6 2 chunks +9 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/events/PointerEvent.idl View 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/events/PointerEventFactory.h View 1 chunk +4 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/core/events/PointerEventFactory.cpp View 1 2 3 4 5 7 chunks +138 lines, -48 lines 0 comments Download
M third_party/WebKit/Source/core/events/PointerEventFactoryTest.cpp View 1 2 3 6 chunks +73 lines, -8 lines 0 comments Download
M third_party/WebKit/Source/core/events/PointerEventInit.idl View 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/input/EventHandler.h View 1 2 3 4 5 6 7 5 chunks +10 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/input/EventHandler.cpp View 1 2 3 4 5 6 7 11 chunks +30 lines, -17 lines 0 comments Download
M third_party/WebKit/Source/core/input/EventHandlerTest.cpp View 1 2 3 4 5 6 7 3 chunks +6 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/input/MouseEventManager.cpp View 1 2 3 4 5 6 7 1 chunk +3 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/input/PointerEventManager.h View 2 chunks +12 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/core/input/PointerEventManager.cpp View 7 chunks +27 lines, -34 lines 0 comments Download
M third_party/WebKit/Source/core/inspector/InspectorInputAgent.cpp View 1 chunk +6 lines, -1 line 0 comments Download
M third_party/WebKit/Source/platform/RuntimeEnabledFeatures.in View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/web/InspectorOverlay.cpp View 1 2 3 4 5 6 7 2 chunks +10 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/web/PageWidgetDelegate.h View 2 chunks +7 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/web/PageWidgetDelegate.cpp View 4 chunks +14 lines, -7 lines 0 comments Download
M third_party/WebKit/Source/web/WebInputEventConversion.h View 1 2 3 4 5 6 7 2 chunks +8 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/web/WebInputEventConversion.cpp View 1 2 3 4 5 6 7 1 chunk +24 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/web/tests/WebFrameTest.cpp View 1 2 3 4 5 6 7 5 chunks +8 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/web/tests/WebInputEventConversionTest.cpp View 1 2 chunks +81 lines, -0 lines 0 comments Download

Messages

Total messages: 59 (35 generated)
Navid Zolghadr
This is the first part of adding getCoalescedEvents. Here is the full review in case ...
4 years, 1 month ago (2016-11-17 19:47:21 UTC) #8
dtapuska
https://codereview.chromium.org/2510133002/diff/20001/third_party/WebKit/Source/core/events/PointerEventFactory.cpp File third_party/WebKit/Source/core/events/PointerEventFactory.cpp (right): https://codereview.chromium.org/2510133002/diff/20001/third_party/WebKit/Source/core/events/PointerEventFactory.cpp#newcode260 third_party/WebKit/Source/core/events/PointerEventFactory.cpp:260: pointerEventInit.setCoalescedEvents(coalescedPointerEvents); can we DCHECK that coalescedPointerEvents is size 0; ...
4 years, 1 month ago (2016-11-21 15:51:56 UTC) #11
Navid Zolghadr
ptal. https://codereview.chromium.org/2510133002/diff/20001/third_party/WebKit/Source/core/events/PointerEventFactory.cpp File third_party/WebKit/Source/core/events/PointerEventFactory.cpp (right): https://codereview.chromium.org/2510133002/diff/20001/third_party/WebKit/Source/core/events/PointerEventFactory.cpp#newcode260 third_party/WebKit/Source/core/events/PointerEventFactory.cpp:260: pointerEventInit.setCoalescedEvents(coalescedPointerEvents); On 2016/11/21 15:51:56, dtapuska wrote: > can ...
4 years, 1 month ago (2016-11-21 19:35:12 UTC) #13
mustaq
https://codereview.chromium.org/2510133002/diff/40001/third_party/WebKit/Source/core/events/PointerEventFactory.cpp File third_party/WebKit/Source/core/events/PointerEventFactory.cpp (right): https://codereview.chromium.org/2510133002/diff/40001/third_party/WebKit/Source/core/events/PointerEventFactory.cpp#newcode103 third_party/WebKit/Source/core/events/PointerEventFactory.cpp:103: void updateTouchPointPointerEventInit(const PlatformTouchPoint& touchPoint, You meant "updateTouchPointerEventInit" instead? https://codereview.chromium.org/2510133002/diff/40001/third_party/WebKit/Source/core/events/PointerEventFactory.cpp#newcode117 ...
4 years, 1 month ago (2016-11-21 20:53:54 UTC) #15
Navid Zolghadr
https://codereview.chromium.org/2510133002/diff/40001/third_party/WebKit/Source/core/events/PointerEventFactory.cpp File third_party/WebKit/Source/core/events/PointerEventFactory.cpp (right): https://codereview.chromium.org/2510133002/diff/40001/third_party/WebKit/Source/core/events/PointerEventFactory.cpp#newcode103 third_party/WebKit/Source/core/events/PointerEventFactory.cpp:103: void updateTouchPointPointerEventInit(const PlatformTouchPoint& touchPoint, On 2016/11/21 20:53:53, mustaq wrote: ...
4 years, 1 month ago (2016-11-21 21:31:21 UTC) #16
mustaq
One more point, about tests: https://codereview.chromium.org/2510133002/diff/40001/third_party/WebKit/Source/core/events/PointerEventFactory.cpp File third_party/WebKit/Source/core/events/PointerEventFactory.cpp (right): https://codereview.chromium.org/2510133002/diff/40001/third_party/WebKit/Source/core/events/PointerEventFactory.cpp#newcode117 third_party/WebKit/Source/core/events/PointerEventFactory.cpp:117: FloatSize pointRadius = touchPoint.radius().scaledBy(scaleFactor); ...
4 years, 1 month ago (2016-11-22 15:31:10 UTC) #21
Navid Zolghadr
https://codereview.chromium.org/2510133002/diff/40001/third_party/WebKit/Source/core/events/PointerEventFactory.cpp File third_party/WebKit/Source/core/events/PointerEventFactory.cpp (right): https://codereview.chromium.org/2510133002/diff/40001/third_party/WebKit/Source/core/events/PointerEventFactory.cpp#newcode260 third_party/WebKit/Source/core/events/PointerEventFactory.cpp:260: coalescedPointerEvents.append( On 2016/11/22 15:31:10, mustaq wrote: > On 2016/11/21 ...
4 years, 1 month ago (2016-11-22 15:59:28 UTC) #22
Navid Zolghadr
ptal.
4 years, 1 month ago (2016-11-22 19:42:16 UTC) #25
mustaq
LGTM % checks for all 3 properties... https://codereview.chromium.org/2510133002/diff/40001/third_party/WebKit/Source/core/events/PointerEventFactory.cpp File third_party/WebKit/Source/core/events/PointerEventFactory.cpp (right): https://codereview.chromium.org/2510133002/diff/40001/third_party/WebKit/Source/core/events/PointerEventFactory.cpp#newcode260 third_party/WebKit/Source/core/events/PointerEventFactory.cpp:260: coalescedPointerEvents.append( On ...
4 years, 1 month ago (2016-11-22 21:07:51 UTC) #26
Navid Zolghadr
On 2016/11/22 21:07:51, mustaq wrote: > LGTM % checks for all 3 properties... > > ...
4 years ago (2016-11-23 16:03:44 UTC) #31
Navid Zolghadr
4 years ago (2016-11-23 16:05:11 UTC) #33
dtapuska
On 2016/11/23 16:05:11, Navid Zolghadr wrote: lgtm
4 years ago (2016-11-23 16:57:15 UTC) #34
dtapuska
https://codereview.chromium.org/2510133002/diff/100001/third_party/WebKit/Source/core/events/PointerEvent.cpp File third_party/WebKit/Source/core/events/PointerEvent.cpp (right): https://codereview.chromium.org/2510133002/diff/100001/third_party/WebKit/Source/core/events/PointerEvent.cpp#newcode39 third_party/WebKit/Source/core/events/PointerEvent.cpp:39: for (auto coalescedEvent : initializer.coalescedEvents()) { don't think you ...
4 years ago (2016-11-23 16:57:24 UTC) #35
bokan
rs lgtm based on Mustaq's review
4 years ago (2016-11-23 16:57:45 UTC) #36
Navid Zolghadr
https://codereview.chromium.org/2510133002/diff/100001/third_party/WebKit/Source/core/events/PointerEvent.cpp File third_party/WebKit/Source/core/events/PointerEvent.cpp (right): https://codereview.chromium.org/2510133002/diff/100001/third_party/WebKit/Source/core/events/PointerEvent.cpp#newcode39 third_party/WebKit/Source/core/events/PointerEvent.cpp:39: for (auto coalescedEvent : initializer.coalescedEvents()) { On 2016/11/23 16:57:24, ...
4 years ago (2016-11-23 17:04:10 UTC) #39
Navid Zolghadr
rbyers@chromium.org: Please review changes in third_party/WebKit/Source/platform/RuntimeEnabledFeatures.in
4 years ago (2016-11-23 20:25:12 UTC) #42
Rick Byers
On 2016/11/23 at 20:25:12, nzolghadr wrote: > rbyers@chromium.org: Please review changes in > > third_party/WebKit/Source/platform/RuntimeEnabledFeatures.in ...
4 years ago (2016-11-25 15:53:40 UTC) #43
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/2510133002/120001
4 years ago (2016-11-28 15:32:59 UTC) #46
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_rel_ng/builds/322744)
4 years ago (2016-11-28 16:05:31 UTC) #48
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/2510133002/140001
4 years ago (2016-11-28 18:19:12 UTC) #51
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, no build URL)
4 years ago (2016-11-28 20:28:18 UTC) #53
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/2510133002/140001
4 years ago (2016-11-28 21:43:03 UTC) #55
commit-bot: I haz the power
Committed patchset #8 (id:140001)
4 years ago (2016-11-29 02:56:08 UTC) #57
commit-bot: I haz the power
4 years ago (2016-11-29 03:04:13 UTC) #59
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/92109dbbe9d1a2f422aff101e69ab123a70c56d1
Cr-Commit-Position: refs/heads/master@{#434849}

Powered by Google App Engine
This is Rietveld 408576698