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

Issue 1415673004: Added web-exposed constructor for Touch and TouchEvent (Closed)

Created:
5 years, 1 month ago by chongz
Modified:
5 years, 1 month ago
Reviewers:
dtapuska, Rick Byers
CC:
chromium-reviews, vivekg, sof, eae+blinkwatch, blink-reviews-dom_chromium.org, dglazkov+blink, vivekg_samsung, Inactive, blink-reviews, rwlbuis
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Added web-exposed constructor for Touch and TouchEvent Added internal constructor for TouchList from a vector of Touch Able to use syntax "new Touch(...)" and "new TouchEvent(...)" to initialize instead of "document.createTouch" Intent to ship: https://groups.google.com/a/chromium.org/forum/#!topic/blink-dev/9cyKla2YbcA BUG=508675 TEST=https://github.com/w3c/web-platform-tests/pull/2299 SPEC=https://w3c.github.io/touch-events/#touch-interface TODO: Remove layout tests and import w3c tests once it's approved. See http://crbug.com/552530 Committed: https://crrev.com/3b9cbfb56b50dba70fc07ce6bbf2212bd7854674 Cr-Commit-Position: refs/heads/master@{#359371}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Use appendVector, added temporary tests #

Total comments: 5

Patch Set 3 : Test with insufficient and minimum properties #

Patch Set 4 : Reference to a future work issue #

Total comments: 2

Patch Set 5 : Removed runtime enabled for Touch/TouchInit #

Unified diffs Side-by-side diffs Delta from patch set Stats (+479 lines, -6 lines) Patch
A third_party/WebKit/LayoutTests/fast/events/constructors/create-touch-touchlist.html View 1 2 3 1 chunk +101 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/fast/events/constructors/touch-support.js View 1 2 3 1 chunk +135 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/fast/events/constructors/touch-touchevent-constructor.html View 1 2 3 1 chunk +155 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/core.gypi View 1 2 3 4 chunks +6 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/dom/Touch.h View 3 chunks +9 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/dom/Touch.cpp View 1 chunk +14 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/dom/Touch.idl View 1 2 3 4 1 chunk +2 lines, -2 lines 0 comments Download
A third_party/WebKit/Source/core/dom/TouchInit.idl View 1 2 3 4 1 chunk +20 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/dom/TouchList.h View 1 1 chunk +7 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/events/TouchEvent.h View 3 chunks +8 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/events/TouchEvent.cpp View 1 chunk +8 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/events/TouchEvent.idl View 1 chunk +3 lines, -3 lines 0 comments Download
A third_party/WebKit/Source/core/events/TouchEventInit.idl View 1 chunk +11 lines, -0 lines 0 comments Download

Messages

Total messages: 19 (6 generated)
dtapuska
https://codereview.chromium.org/1415673004/diff/1/third_party/WebKit/Source/core/dom/TouchList.h File third_party/WebKit/Source/core/dom/TouchList.h (right): https://codereview.chromium.org/1415673004/diff/1/third_party/WebKit/Source/core/dom/TouchList.h#newcode51 third_party/WebKit/Source/core/dom/TouchList.h:51: for (size_t i = 0; i < touchCount; ++i) ...
5 years, 1 month ago (2015-11-04 16:29:43 UTC) #3
sof
https://codereview.chromium.org/1415673004/diff/1/third_party/WebKit/Source/core/dom/TouchList.h File third_party/WebKit/Source/core/dom/TouchList.h (right): https://codereview.chromium.org/1415673004/diff/1/third_party/WebKit/Source/core/dom/TouchList.h#newcode51 third_party/WebKit/Source/core/dom/TouchList.h:51: for (size_t i = 0; i < touchCount; ++i) ...
5 years, 1 month ago (2015-11-04 16:38:28 UTC) #4
dtapuska
https://codereview.chromium.org/1415673004/diff/20001/third_party/WebKit/LayoutTests/fast/events/constructors/create-touch-touchlist.html File third_party/WebKit/LayoutTests/fast/events/constructors/create-touch-touchlist.html (right): https://codereview.chromium.org/1415673004/diff/20001/third_party/WebKit/LayoutTests/fast/events/constructors/create-touch-touchlist.html#newcode2 third_party/WebKit/LayoutTests/fast/events/constructors/create-touch-touchlist.html:2: TODO(chongz): Remove this file and import from w3c tests ...
5 years, 1 month ago (2015-11-04 21:36:32 UTC) #5
chongz
On 2015/11/04 21:36:32, dtapuska wrote: > https://codereview.chromium.org/1415673004/diff/20001/third_party/WebKit/LayoutTests/fast/events/constructors/create-touch-touchlist.html > File > third_party/WebKit/LayoutTests/fast/events/constructors/create-touch-touchlist.html > (right): > > ...
5 years, 1 month ago (2015-11-06 19:53:29 UTC) #6
dtapuska
On 2015/11/06 19:53:29, chongz wrote: > On 2015/11/04 21:36:32, dtapuska wrote: > > > https://codereview.chromium.org/1415673004/diff/20001/third_party/WebKit/LayoutTests/fast/events/constructors/create-touch-touchlist.html ...
5 years, 1 month ago (2015-11-09 17:45:45 UTC) #8
Rick Byers
Looks great, thanks! Just one little thing, then we need to wait for the intent-to-ship ...
5 years, 1 month ago (2015-11-10 06:31:51 UTC) #9
blink-reviews
Thanks! Ya I agree with no RuntimeEnabled here, looks more simple and clear to me. ...
5 years, 1 month ago (2015-11-10 16:05:42 UTC) #11
chromium-reviews
Thanks! Ya I agree with no RuntimeEnabled here, looks more simple and clear to me. ...
5 years, 1 month ago (2015-11-10 16:05:42 UTC) #12
dtapuska
On 2015/11/10 16:05:42, chromium-reviews wrote: > Thanks! Ya I agree with no RuntimeEnabled here, looks ...
5 years, 1 month ago (2015-11-12 18:29:27 UTC) #13
Rick Byers
LGTM, thanks!
5 years, 1 month ago (2015-11-12 18:56:24 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1415673004/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1415673004/80001
5 years, 1 month ago (2015-11-12 19:05:22 UTC) #17
commit-bot: I haz the power
Committed patchset #5 (id:80001)
5 years, 1 month ago (2015-11-12 20:18:19 UTC) #18
commit-bot: I haz the power
5 years, 1 month ago (2015-11-12 20:19:00 UTC) #19
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/3b9cbfb56b50dba70fc07ce6bbf2212bd7854674
Cr-Commit-Position: refs/heads/master@{#359371}

Powered by Google App Engine
This is Rietveld 408576698