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

Issue 298133003: Expose fractional TouchEvent coordinates (Closed)

Created:
6 years, 7 months ago by Rick Byers
Modified:
6 years, 6 months ago
CC:
blink-reviews, eae+blinkwatch, apavlov+blink_chromium.org, aandrey+blink_chromium.org, rwlbuis, jamesr, caseq+blink_chromium.org, krit, arv+blink, pfeldman+blink_chromium.org, malch+blink_chromium.org, yurys+blink_chromium.org, danakj, blink-reviews-dom_chromium.org, dglazkov+blink, Rik, devtools-reviews_chromium.org, pdr., loislo+blink_chromium.org, sof, jbroman, lushnikov+blink_chromium.org, eustas+blink_chromium.org, paulirish+reviews_chromium.org, Stephen Chennney, vsevik+blink_chromium.org, blink-reviews-events_chromium.org, Inactive, sergeyv+blink_chromium.org, watchdog-blink-watchlist_google.com
Visibility:
Public.

Description

Expose fractional TouchEvent coordinates Previously TouchEvents had their co-ordinates truncated to integers. By supporting sup-pixel precision we get smoother dragging and line drawing at slow speeds on high-dpi devices or when zoomed. Intent to ship thread: https://groups.google.com/a/chromium.org/forum/#!topic/blink-dev/J0Lca9fCuNw Tests depend on EventSender change here: https://src.chromium.org/viewvc/chrome?view=rev&revision=275340 BUG=323935 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=175726

Patch Set 1 #

Patch Set 2 : Merge with trunk #

Patch Set 3 : Use float instead of LayoutUnit, fix tests and clean up #

Patch Set 4 : Handle special cases, add tests and cleanup #

Patch Set 5 : Merge with trunk #

Total comments: 2

Patch Set 6 : Avoid float->double->float round-trip #

Patch Set 7 : Make layout test output stable across platforms #

Unified diffs Side-by-side diffs Delta from patch set Stats (+435 lines, -171 lines) Patch
M LayoutTests/fast/events/touch/document-create-touch-expected.txt View 1 2 3 2 chunks +4 lines, -4 lines 0 comments Download
A LayoutTests/fast/events/touch/resources/frame-touchevent-forwarder.html View 1 2 3 1 chunk +15 lines, -0 lines 0 comments Download
M LayoutTests/fast/events/touch/touch-coords-in-zoom-and-scroll.html View 1 2 3 3 chunks +9 lines, -8 lines 0 comments Download
M LayoutTests/fast/events/touch/touch-coords-in-zoom-and-scroll-expected.txt View 1 2 3 2 chunks +8 lines, -8 lines 0 comments Download
A LayoutTests/fast/events/touch/touch-fractional-coordinates.html View 1 2 3 4 5 6 1 chunk +140 lines, -0 lines 0 comments Download
A LayoutTests/fast/events/touch/touch-fractional-coordinates-expected.txt View 1 2 3 4 5 6 1 chunk +52 lines, -0 lines 0 comments Download
M Source/core/dom/Document.h View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M Source/core/dom/Document.cpp View 1 2 3 4 1 chunk +22 lines, -3 lines 0 comments Download
M Source/core/dom/Document.idl View 1 1 chunk +6 lines, -6 lines 0 comments Download
M Source/core/dom/Touch.h View 1 2 3 4 5 2 chunks +34 lines, -25 lines 0 comments Download
M Source/core/dom/Touch.cpp View 1 2 3 4 2 chunks +18 lines, -36 lines 0 comments Download
M Source/core/dom/Touch.idl View 1 chunk +8 lines, -8 lines 0 comments Download
M Source/core/inspector/InspectorDOMAgent.cpp View 1 2 1 chunk +1 line, -1 line 0 comments Download
M Source/core/inspector/InspectorInputAgent.cpp View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M Source/core/page/EventHandler.cpp View 1 2 3 4 4 chunks +19 lines, -19 lines 0 comments Download
M Source/platform/PlatformTouchPoint.h View 1 2 3 chunks +7 lines, -11 lines 0 comments Download
M Source/platform/Widget.h View 1 2 2 chunks +2 lines, -0 lines 0 comments Download
M Source/platform/Widget.cpp View 1 2 3 1 chunk +19 lines, -0 lines 0 comments Download
M Source/platform/geometry/FloatPoint.h View 1 chunk +5 lines, -0 lines 0 comments Download
M Source/platform/geometry/FloatSize.h View 1 2 1 chunk +10 lines, -0 lines 0 comments Download
M Source/platform/scroll/ScrollView.h View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M Source/platform/scroll/ScrollView.cpp View 1 2 3 4 1 chunk +6 lines, -0 lines 0 comments Download
M Source/web/WebInputEventConversion.cpp View 1 2 3 4 5 4 chunks +20 lines, -13 lines 0 comments Download
M Source/web/tests/WebInputEventConversionTest.cpp View 1 2 6 chunks +26 lines, -26 lines 0 comments Download

Messages

Total messages: 16 (0 generated)
Rick Byers
Emil, Please take a look. I spent a bit of time exploring what it would ...
6 years, 6 months ago (2014-06-06 02:24:48 UTC) #1
eae
LGTM w/nit. https://codereview.chromium.org/298133003/diff/80001/Source/core/dom/Touch.h File Source/core/dom/Touch.h (right): https://codereview.chromium.org/298133003/diff/80001/Source/core/dom/Touch.h#newcode55 Source/core/dom/Touch.h:55: double clientX() const { return m_clientPos.x(); } ...
6 years, 6 months ago (2014-06-06 16:23:53 UTC) #2
Rick Byers
https://codereview.chromium.org/298133003/diff/80001/Source/core/dom/Touch.h File Source/core/dom/Touch.h (right): https://codereview.chromium.org/298133003/diff/80001/Source/core/dom/Touch.h#newcode55 Source/core/dom/Touch.h:55: double clientX() const { return m_clientPos.x(); } On 2014/06/06 ...
6 years, 6 months ago (2014-06-06 17:02:43 UTC) #3
eae
LGTM On 2014/06/06 17:02:43, Rick Byers wrote: > https://codereview.chromium.org/298133003/diff/80001/Source/core/dom/Touch.h > File Source/core/dom/Touch.h (right): > > ...
6 years, 6 months ago (2014-06-06 17:03:55 UTC) #4
eae
At some point (but not now!) we might want to introduce double versions of the ...
6 years, 6 months ago (2014-06-06 17:04:59 UTC) #5
Rick Byers
On 2014/06/06 17:04:59, eae wrote: > At some point (but not now!) we might want ...
6 years, 6 months ago (2014-06-06 18:34:31 UTC) #6
Rick Byers
+aelias for OWNERS in Source/web
6 years, 6 months ago (2014-06-06 20:31:17 UTC) #7
aelias_OOO_until_Jul13
On 2014/06/06 20:31:17, Rick Byers wrote: > +aelias for OWNERS in Source/web lgtm
6 years, 6 months ago (2014-06-06 20:56:28 UTC) #8
Rick Byers
The CQ bit was checked by rbyers@chromium.org
6 years, 6 months ago (2014-06-06 21:08:44 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rbyers@chromium.org/298133003/120001
6 years, 6 months ago (2014-06-06 21:09:39 UTC) #10
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: linux_blink_dbg on tryserver.blink ...
6 years, 6 months ago (2014-06-06 22:18:50 UTC) #11
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 6 months ago (2014-06-06 22:37:45 UTC) #12
commit-bot: I haz the power
Try jobs failed on following builders: mac_blink_rel on tryserver.blink (http://build.chromium.org/p/tryserver.blink/builders/mac_blink_rel/builds/10683)
6 years, 6 months ago (2014-06-06 22:37:46 UTC) #13
Rick Byers
The CQ bit was checked by rbyers@chromium.org
6 years, 6 months ago (2014-06-07 00:09:53 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rbyers@chromium.org/298133003/120001
6 years, 6 months ago (2014-06-07 00:11:00 UTC) #15
commit-bot: I haz the power
6 years, 6 months ago (2014-06-07 03:38:32 UTC) #16
Message was sent while issue was closed.
Change committed as 175726

Powered by Google App Engine
This is Rietveld 408576698