Reviewers: majidvp, bokan, mustaq, Navid Zolghadr, Rick Byers
CL:
https://codereview.chromium.org/2539283002/Message:
Soliciting feedback on this approach. PTAL.
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.
BUG=625684
CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_layout_tests_slimming_paint_v2
Affected files (+738, -1156 lines):
M third_party/WebKit/Source/core/editing/SelectionController.h
M third_party/WebKit/Source/core/editing/SelectionController.cpp
M third_party/WebKit/Source/core/events/GestureEvent.h
M third_party/WebKit/Source/core/events/GestureEvent.cpp
M third_party/WebKit/Source/core/input/EventHandler.h
M third_party/WebKit/Source/core/input/EventHandler.cpp
M third_party/WebKit/Source/core/input/EventHandlerTest.cpp
M third_party/WebKit/Source/core/input/GestureManager.h
M third_party/WebKit/Source/core/input/GestureManager.cpp
M third_party/WebKit/Source/core/input/MouseEventManager.cpp
M third_party/WebKit/Source/core/input/ScrollManager.h
M third_party/WebKit/Source/core/input/ScrollManager.cpp
M third_party/WebKit/Source/core/inspector/InspectorDOMAgent.cpp
M third_party/WebKit/Source/core/page/EventWithHitTestResults.h
M third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.h
M third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp
M third_party/WebKit/Source/platform/BUILD.gn
M third_party/WebKit/Source/platform/PlatformEvent.h
D third_party/WebKit/Source/platform/PlatformGestureEvent.h
M third_party/WebKit/Source/platform/PlatformMouseEvent.h
A third_party/WebKit/Source/platform/WebGestureEvent.cpp
M third_party/WebKit/Source/platform/mac/ScrollAnimatorMac.mm
M third_party/WebKit/Source/platform/scroll/ScrollTypes.h
M third_party/WebKit/Source/platform/scroll/Scrollbar.h
M third_party/WebKit/Source/platform/scroll/Scrollbar.cpp
M third_party/WebKit/Source/web/DevToolsEmulator.cpp
M third_party/WebKit/Source/web/InspectorOverlay.h
M third_party/WebKit/Source/web/InspectorOverlay.cpp
M third_party/WebKit/Source/web/LinkHighlightImplTest.cpp
M third_party/WebKit/Source/web/WebFrameWidgetImpl.cpp
M third_party/WebKit/Source/web/WebInputEvent.cpp
M third_party/WebKit/Source/web/WebInputEventConversion.h
M third_party/WebKit/Source/web/WebInputEventConversion.cpp
M third_party/WebKit/Source/web/WebPagePopupImpl.cpp
M third_party/WebKit/Source/web/WebPluginContainerImpl.cpp
M third_party/WebKit/Source/web/WebViewImpl.cpp
M third_party/WebKit/Source/web/tests/VisualViewportTest.cpp
M third_party/WebKit/Source/web/tests/WebFrameTest.cpp
M third_party/WebKit/Source/web/tests/WebInputEventConversionTest.cpp
M third_party/WebKit/public/platform/WebGestureEvent.h
M third_party/WebKit/public/platform/WebInputEvent.h