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

Issue 1586653002: ui: Fix TouchEvent PointerDetails creation from NativeEvent (Closed)

Created:
4 years, 11 months ago by robert.bradford
Modified:
4 years, 11 months ago
Reviewers:
*sadrul, mustaq
CC:
chromium-reviews, tdresser+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

ui: 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 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+56 lines, -85 lines) Patch
M ui/events/cocoa/events_mac.mm View 1 2 1 chunk +8 lines, -12 lines 0 comments Download
M ui/events/event.cc View 1 chunk +1 line, -6 lines 0 comments Download
M ui/events/event_utils.h View 2 chunks +4 lines, -7 lines 0 comments Download
M ui/events/events_default.cc View 2 chunks +3 lines, -16 lines 0 comments Download
M ui/events/events_stub.cc View 1 2 1 chunk +8 lines, -12 lines 0 comments Download
M ui/events/win/events_win.cc View 1 chunk +8 lines, -12 lines 0 comments Download
M ui/events/x/events_x.cc View 1 2 3 1 chunk +8 lines, -10 lines 0 comments Download
M ui/events/x/events_x_unittest.cc View 5 chunks +16 lines, -10 lines 0 comments Download

Messages

Total messages: 14 (8 generated)
robert.bradford
Hi sadrul@ this this the equivalent of spang@'s fix for NativeEvents on mouse. I used ...
4 years, 11 months ago (2016-01-14 16:45:27 UTC) #5
sadrul
lgtm https://codereview.chromium.org/1586653002/diff/20001/ui/events/cocoa/events_mac.mm File ui/events/cocoa/events_mac.mm (right): https://codereview.chromium.org/1586653002/diff/20001/ui/events/cocoa/events_mac.mm#newcode189 ui/events/cocoa/events_mac.mm:189: return PointerDetails(EventPointerType::POINTER_TYPE_TOUCH, POINTER_TYPE_UNKNOWN? https://codereview.chromium.org/1586653002/diff/20001/ui/events/event_utils.h File ui/events/event_utils.h (right): https://codereview.chromium.org/1586653002/diff/20001/ui/events/event_utils.h#newcode130 ...
4 years, 11 months ago (2016-01-15 17:24:12 UTC) #6
robert.bradford
Thanks sadrul@ some responses below! https://codereview.chromium.org/1586653002/diff/20001/ui/events/cocoa/events_mac.mm File ui/events/cocoa/events_mac.mm (right): https://codereview.chromium.org/1586653002/diff/20001/ui/events/cocoa/events_mac.mm#newcode189 ui/events/cocoa/events_mac.mm:189: return PointerDetails(EventPointerType::POINTER_TYPE_TOUCH, On 2016/01/15 ...
4 years, 11 months ago (2016-01-18 15:25:22 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1586653002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1586653002/60001
4 years, 11 months ago (2016-01-19 14:14:39 UTC) #10
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 11 months ago (2016-01-19 14:18:37 UTC) #12
commit-bot: I haz the power
4 years, 11 months ago (2016-01-19 14:19:53 UTC) #14
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/c584bbb7783fc305105ba3d5772d3bfac21153b4
Cr-Commit-Position: refs/heads/master@{#370110}

Powered by Google App Engine
This is Rietveld 408576698