Chromium Code Reviews
Descriptionui: Fix TouchEvent PointerDetails creation from NativeEvent
This change replaces the GetTouchRadiusX/GetTouchRadiusY/GetTouchForce platform
functions with a single GetTouchPointerDtailsFromNative function, which aligns
with the behaviour for MouseEvent.
The default implementation for this (used on ozone) will correctly preserve the
pointer type for the TouchEvent now.
This change also modifies the default radius values for Mac OS X and the stub
implementation to match the documented default of 1.0.
BUG=575162
TEST=events_unittest passed on all platforms, interactive testing of Pointer
Events of touch events on link.
Committed: https://crrev.com/c584bbb7783fc305105ba3d5772d3bfac21153b4
Cr-Commit-Position: refs/heads/master@{#370110}
Patch Set 1 #Patch Set 2 : Use 1.0 consitently for default touch radius (change on Mac and stub.) #
Total comments: 8
Patch Set 3 : Use POINTER_TYPE_UNKNOWN for stubbed and cocoa implementation #Patch Set 4 : Rebase following X event refactor #
Messages
Total messages: 14 (8 generated)
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||