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

Issue 2539283002: Remove PlatformGestureEvent in favour of using WebGestureEvent (Closed)

Created:
4 years ago by dtapuska
Modified:
4 years ago
CC:
darktears, apavlov+blink_chromium.org, blink-reviews, blink-reviews-animation_chromium.org, blink-reviews-api_chromium.org, blink-reviews-events_chromium.org, blink-reviews-paint_chromium.org, caseq+blink_chromium.org, chromium-reviews, dcheng, devtools-reviews_chromium.org, dglazkov+blink, dshwang, dtapuska+blinkwatch_chromium.org, eae+blinkwatch, Eric Willigers, kinuko+watch, kozyatinskiy+blink_chromium.org, lushnikov+blink_chromium.org, mac-reviews_chromium.org, mlamouri+watch-blink_chromium.org, Navid Zolghadr, pfeldman+blink_chromium.org, rjwright, shans
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Remove PlatformGestureEvent in favour of using WebGestureEvent This change is intended to have no behavioural changes. Some of the math is slightly adjusted the root frame coordinates. The root frame coordinates are calculated via: A/scale - B/scale + VO + OO as it was previously (A-B)/scale + VO + OO If this is a problem we can store translateX and translateY as the actual coordinates instead instead a computation. Cleanup proposal: https://docs.google.com/document/d/1s4Lfy22CNU1OZ5Rec6Oano_5BvIhdK6uFVsVe7FphKI/edit BUG=625684 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_layout_tests_slimming_paint_v2 Committed: https://crrev.com/7a17610ebf43599366634ea11c9cac7ff933973b Cr-Commit-Position: refs/heads/master@{#439153}

Patch Set 1 #

Total comments: 16

Patch Set 2 : Rebase and fix comments #

Total comments: 32

Patch Set 3 : Fix comments #

Patch Set 4 : Add missing copyright on new file #

Unified diffs Side-by-side diffs Delta from patch set Stats (+757 lines, -1163 lines) Patch
M third_party/WebKit/Source/core/editing/SelectionController.h View 1 chunk +1 line, -2 lines 0 comments Download
M third_party/WebKit/Source/core/editing/SelectionController.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/events/GestureEvent.h View 1 2 1 chunk +7 lines, -47 lines 0 comments Download
M third_party/WebKit/Source/core/events/GestureEvent.cpp View 1 2 chunks +32 lines, -94 lines 0 comments Download
M third_party/WebKit/Source/core/input/EventHandler.h View 1 2 6 chunks +8 lines, -8 lines 0 comments Download
M third_party/WebKit/Source/core/input/EventHandler.cpp View 1 2 14 chunks +35 lines, -34 lines 0 comments Download
M third_party/WebKit/Source/core/input/EventHandlerTest.cpp View 1 2 1 chunk +11 lines, -10 lines 0 comments Download
M third_party/WebKit/Source/core/input/GestureManager.h View 1 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/input/GestureManager.cpp View 1 13 chunks +61 lines, -56 lines 0 comments Download
M third_party/WebKit/Source/core/input/MouseEventManager.cpp View 1 2 chunks +6 lines, -7 lines 0 comments Download
M third_party/WebKit/Source/core/input/ScrollManager.h View 1 2 4 chunks +9 lines, -10 lines 0 comments Download
M third_party/WebKit/Source/core/input/ScrollManager.cpp View 1 2 15 chunks +47 lines, -37 lines 0 comments Download
M third_party/WebKit/Source/core/inspector/InspectorDOMAgent.cpp View 1 1 chunk +0 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/page/EventWithHitTestResults.h View 2 chunks +2 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.h View 1 2 chunks +1 line, -2 lines 0 comments Download
M third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp View 1 3 chunks +1 line, -21 lines 0 comments Download
M third_party/WebKit/Source/platform/BUILD.gn View 1 2 chunks +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/platform/PlatformEvent.h View 1 1 chunk +0 lines, -17 lines 0 comments Download
D third_party/WebKit/Source/platform/PlatformGestureEvent.h View 1 1 chunk +0 lines, -255 lines 0 comments Download
M third_party/WebKit/Source/platform/PlatformMouseEvent.h View 1 2 chunks +23 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/platform/WebGestureEvent.cpp View 1 2 3 1 chunk +156 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/mac/ScrollAnimatorMac.mm View 1 1 chunk +0 lines, -1 line 0 comments Download
M third_party/WebKit/Source/platform/scroll/ScrollTypes.h View 2 chunks +16 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/scroll/Scrollbar.h View 1 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/platform/scroll/Scrollbar.cpp View 1 5 chunks +29 lines, -24 lines 0 comments Download
M third_party/WebKit/Source/web/DevToolsEmulator.cpp View 1 2 1 chunk +9 lines, -8 lines 0 comments Download
M third_party/WebKit/Source/web/InspectorOverlay.h View 1 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/web/InspectorOverlay.cpp View 1 2 3 chunks +10 lines, -9 lines 0 comments Download
M third_party/WebKit/Source/web/LinkHighlightImplTest.cpp View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/web/WebFrameWidgetImpl.cpp View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/web/WebInputEvent.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/web/WebInputEventConversion.h View 1 2 4 chunks +6 lines, -17 lines 0 comments Download
M third_party/WebKit/Source/web/WebInputEventConversion.cpp View 1 2 4 chunks +37 lines, -242 lines 0 comments Download
M third_party/WebKit/Source/web/WebPagePopupImpl.cpp View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/web/WebPluginContainerImpl.cpp View 1 2 2 chunks +16 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/web/WebViewImpl.cpp View 1 2 8 chunks +14 lines, -23 lines 0 comments Download
M third_party/WebKit/Source/web/tests/VisualViewportTest.cpp View 1 2 2 chunks +9 lines, -8 lines 0 comments Download
M third_party/WebKit/Source/web/tests/WebFrameTest.cpp View 1 2 1 chunk +6 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/web/tests/WebInputEventConversionTest.cpp View 1 2 20 chunks +112 lines, -203 lines 0 comments Download
M third_party/WebKit/public/platform/WebGestureEvent.h View 1 2 chunks +58 lines, -0 lines 0 comments Download
M third_party/WebKit/public/platform/WebInputEvent.h View 1 2 1 chunk +21 lines, -0 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 44 (18 generated)
dtapuska
Soliciting feedback on this approach. PTAL.
4 years ago (2016-11-30 22:24:08 UTC) #3
majidvp
https://codereview.chromium.org/2539283002/diff/1/third_party/WebKit/Source/core/input/EventHandlerTest.cpp File third_party/WebKit/Source/core/input/EventHandlerTest.cpp (right): https://codereview.chromium.org/2539283002/diff/1/third_party/WebKit/Source/core/input/EventHandlerTest.cpp#newcode46 third_party/WebKit/Source/core/input/EventHandlerTest.cpp:46: data.tap.height = 5; One of the advantage of PlatformGestureEvent ...
4 years ago (2016-12-01 15:46:31 UTC) #4
dtapuska
https://codereview.chromium.org/2539283002/diff/1/third_party/WebKit/Source/core/input/EventHandlerTest.cpp File third_party/WebKit/Source/core/input/EventHandlerTest.cpp (right): https://codereview.chromium.org/2539283002/diff/1/third_party/WebKit/Source/core/input/EventHandlerTest.cpp#newcode46 third_party/WebKit/Source/core/input/EventHandlerTest.cpp:46: data.tap.height = 5; On 2016/12/01 15:46:30, majidvp wrote: > ...
4 years ago (2016-12-01 16:26:43 UTC) #5
bokan
High level question, have you thought about going the other way? Using GestureEvent instead? I ...
4 years ago (2016-12-01 17:29:41 UTC) #6
dtapuska
On 2016/12/01 17:29:41, bokan wrote: > High level question, have you thought about going the ...
4 years ago (2016-12-01 17:51:17 UTC) #7
Rick Byers
I didn't review the whole patch, but the concept of collapsing the platform event types ...
4 years ago (2016-12-02 16:57:44 UTC) #8
Navid Zolghadr
https://codereview.chromium.org/2539283002/diff/1/third_party/WebKit/public/platform/WebGestureEvent.h File third_party/WebKit/public/platform/WebGestureEvent.h (right): https://codereview.chromium.org/2539283002/diff/1/third_party/WebKit/public/platform/WebGestureEvent.h#newcode171 third_party/WebKit/public/platform/WebGestureEvent.h:171: BLINK_PLATFORM_EXPORT WebFloatPoint positionInRootFrame() const; Is it worth adding an ...
4 years ago (2016-12-02 17:34:54 UTC) #9
dtapuska
https://codereview.chromium.org/2539283002/diff/1/third_party/WebKit/public/platform/WebGestureEvent.h File third_party/WebKit/public/platform/WebGestureEvent.h (right): https://codereview.chromium.org/2539283002/diff/1/third_party/WebKit/public/platform/WebGestureEvent.h#newcode171 third_party/WebKit/public/platform/WebGestureEvent.h:171: BLINK_PLATFORM_EXPORT WebFloatPoint positionInRootFrame() const; On 2016/12/02 17:34:54, Navid Zolghadr ...
4 years ago (2016-12-02 18:22:54 UTC) #10
bokan
On 2016/12/02 18:22:54, dtapuska wrote: > https://codereview.chromium.org/2539283002/diff/1/third_party/WebKit/public/platform/WebGestureEvent.h > File third_party/WebKit/public/platform/WebGestureEvent.h (right): > > https://codereview.chromium.org/2539283002/diff/1/third_party/WebKit/public/platform/WebGestureEvent.h#newcode171 > ...
4 years ago (2016-12-02 18:24:10 UTC) #11
dtapuska
On 2016/12/02 16:57:44, Rick Byers wrote: > I didn't review the whole patch, but the ...
4 years ago (2016-12-02 21:46:19 UTC) #12
dtapuska
esprehn@chromium.org; do you mind looking at these changes. I don't care for the INSIDE_BLINK stuff ...
4 years ago (2016-12-14 18:47:57 UTC) #17
esprehn
Trying to understand this better, if this type is never used outside blink can we ...
4 years ago (2016-12-14 19:09:37 UTC) #18
dtapuska
On 2016/12/14 19:09:37, esprehn wrote: > Trying to understand this better, if this type is ...
4 years ago (2016-12-14 19:15:55 UTC) #19
esprehn
lgtm, the INSIDE_BLINK thing is nice because we limit the API usage outside blink and ...
4 years ago (2016-12-14 19:23:59 UTC) #20
dtapuska
https://codereview.chromium.org/2539283002/diff/20001/third_party/WebKit/public/platform/WebGestureEvent.h File third_party/WebKit/public/platform/WebGestureEvent.h (right): https://codereview.chromium.org/2539283002/diff/20001/third_party/WebKit/public/platform/WebGestureEvent.h#newcode189 third_party/WebKit/public/platform/WebGestureEvent.h:189: bool preventPropagation() const { On 2016/12/14 19:23:59, esprehn wrote: ...
4 years ago (2016-12-15 14:16:09 UTC) #23
majidvp
https://codereview.chromium.org/2539283002/diff/20001/third_party/WebKit/Source/core/events/GestureEvent.h File third_party/WebKit/Source/core/events/GestureEvent.h (right): https://codereview.chromium.org/2539283002/diff/20001/third_party/WebKit/Source/core/events/GestureEvent.h#newcode45 third_party/WebKit/Source/core/events/GestureEvent.h:45: const WebGestureEvent& originalEvent() const { return m_nativeEvent; } nit: ...
4 years ago (2016-12-15 17:40:46 UTC) #24
mustaq
https://codereview.chromium.org/2539283002/diff/20001/third_party/WebKit/Source/core/events/GestureEvent.cpp File third_party/WebKit/Source/core/events/GestureEvent.cpp (right): https://codereview.chromium.org/2539283002/diff/20001/third_party/WebKit/Source/core/events/GestureEvent.cpp#newcode87 third_party/WebKit/Source/core/events/GestureEvent.cpp:87: nullptr), Curious: shouldn't we have sourceCapabilities=firesTouch? https://codereview.chromium.org/2539283002/diff/20001/third_party/WebKit/Source/core/events/GestureEvent.h File third_party/WebKit/Source/core/events/GestureEvent.h ...
4 years ago (2016-12-15 19:25:46 UTC) #26
dtapuska
https://codereview.chromium.org/2539283002/diff/20001/third_party/WebKit/Source/core/events/GestureEvent.cpp File third_party/WebKit/Source/core/events/GestureEvent.cpp (right): https://codereview.chromium.org/2539283002/diff/20001/third_party/WebKit/Source/core/events/GestureEvent.cpp#newcode87 third_party/WebKit/Source/core/events/GestureEvent.cpp:87: nullptr), On 2016/12/15 19:25:46, mustaq wrote: > Curious: shouldn't ...
4 years ago (2016-12-15 21:29:39 UTC) #28
majidvp
lgtm. Looking forward to seeing this happens to other Platfrom*Events too. https://codereview.chromium.org/2539283002/diff/20001/third_party/WebKit/Source/web/WebViewImpl.cpp File third_party/WebKit/Source/web/WebViewImpl.cpp (right): ...
4 years ago (2016-12-15 21:45:37 UTC) #30
mustaq
https://codereview.chromium.org/2539283002/diff/20001/third_party/WebKit/Source/platform/WebGestureEvent.cpp File third_party/WebKit/Source/platform/WebGestureEvent.cpp (right): https://codereview.chromium.org/2539283002/diff/20001/third_party/WebKit/Source/platform/WebGestureEvent.cpp#newcode140 third_party/WebKit/Source/platform/WebGestureEvent.cpp:140: x = (x / frameScale) + frameTranslate.x; On 2016/12/15 ...
4 years ago (2016-12-15 22:16:14 UTC) #31
mustaq
LGTM otherwise. We should start nuking other Platform* events in this way.
4 years ago (2016-12-15 22:18:07 UTC) #32
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/2539283002/60001
4 years ago (2016-12-16 14:31:51 UTC) #35
commit-bot: I haz the power
Try jobs failed on following builders: android_n5x_swarming_rel on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_n5x_swarming_rel/builds/87559)
4 years ago (2016-12-16 16:59:59 UTC) #37
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/2539283002/60001
4 years ago (2016-12-16 17:01:04 UTC) #39
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years ago (2016-12-16 18:25:58 UTC) #42
commit-bot: I haz the power
4 years ago (2016-12-16 18:29:10 UTC) #44
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/7a17610ebf43599366634ea11c9cac7ff933973b
Cr-Commit-Position: refs/heads/master@{#439153}

Powered by Google App Engine
This is Rietveld 408576698