Chromium Code Reviews
Help | Chromium Project | Gerrit Changes | Sign in
(24)

Issue 1161783006: Populates sourceDevice attribute into TouchEvent (Closed)

Created:
4 years, 11 months ago by lanwei
Modified:
4 years, 10 months ago
Reviewers:
tdresser, Rick Byers
CC:
blink-reviews, caseq+blink_chromium.org, arv+blink, vivekg_samsung, eae+blinkwatch, yurys+blink_chromium.org, lushnikov+blink_chromium.org, pfeldman+blink_chromium.org, vivekg, dglazkov+blink, blink-reviews-events_chromium.org, apavlov+blink_chromium.org, Inactive, devtools-reviews_chromium.org, sergeyv+blink_chromium.org, kozyatinskiy+blink_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

Populates sourceDevice attribute into TouchEvent Since now we have InputDevice information, in this CL we populates sourceDevice attribute into TouchEvent, which has firesTouchEvents set to be true. The Intent-to-Implement: UIEvent.sourceDevice & InputDevice.firesTouchEvents link: https://groups.google.com/a/chromium.org/forum/#!searchin/blink-dev/inputdevice/blink-dev/wjtZl9jpCpI/xC0JTRKgc9kJ This CL is depended on Issue 1157173003, which creates the InputDevice class (https://codereview.chromium.org/1157173003/) and Issue 1160753005, which Implement UIEvent.sourceDevice (https://codereview.chromium.org/1160753005/) BUG=476530 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=196967

Patch Set 1 : #

Total comments: 7

Patch Set 2 : sourceDevice set to null from Javascript #

Total comments: 7

Patch Set 3 : #

Patch Set 4 : Layout test #

Patch Set 5 : #

Patch Set 6 : #

Total comments: 6

Patch Set 7 : Add Persistent #

Total comments: 4

Patch Set 8 : Put touchevent in uievent layout test #

Unified diffs Side-by-side diffs Delta from patch set Stats (+109 lines, -31 lines) Patch
A LayoutTests/fast/events/touch/touch-event-source-device-event-sender.html View 1 2 3 4 5 6 7 1 chunk +40 lines, -0 lines 0 comments Download
A LayoutTests/fast/events/touch/touch-event-source-device-event-sender-expected.txt View 1 2 3 1 chunk +24 lines, -0 lines 0 comments Download
M LayoutTests/fast/events/uievent-with-inputdevice.html View 1 2 3 4 5 6 7 1 chunk +15 lines, -15 lines 0 comments Download
M LayoutTests/fast/events/uievent-with-inputdevice-expected.txt View 1 2 3 4 5 6 7 1 chunk +9 lines, -7 lines 0 comments Download
M Source/core/events/TouchEvent.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/events/TouchEvent.cpp View 1 2 3 4 5 6 1 chunk +2 lines, -2 lines 0 comments Download
M Source/core/events/UIEvent.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M Source/core/events/UIEvent.cpp View 1 2 1 chunk +3 lines, -2 lines 0 comments Download
M Source/core/events/UIEventWithKeyState.h View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M Source/core/input/InputDevice.h View 1 2 3 4 5 6 1 chunk +4 lines, -0 lines 0 comments Download
M Source/core/input/InputDevice.cpp View 1 2 3 4 5 6 1 chunk +6 lines, -0 lines 0 comments Download
M Source/core/input/InputDevice.idl View 1 2 3 4 5 6 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 27 (13 generated)
lanwei
4 years, 11 months ago (2015-06-03 16:16:07 UTC) #3
tdresser
https://codereview.chromium.org/1161783006/diff/20001/LayoutTests/fast/events/touch/create-touch-event-source-device.html File LayoutTests/fast/events/touch/create-touch-event-source-device.html (right): https://codereview.chromium.org/1161783006/diff/20001/LayoutTests/fast/events/touch/create-touch-event-source-device.html#newcode19 LayoutTests/fast/events/touch/create-touch-event-source-device.html:19: shouldBeTrue("event.sourceDevice.firesTouchEvents"); Should this be true? There isn't really a ...
4 years, 11 months ago (2015-06-03 17:50:39 UTC) #4
lanwei
https://codereview.chromium.org/1161783006/diff/20001/LayoutTests/fast/events/touch/create-touch-event-source-device.html File LayoutTests/fast/events/touch/create-touch-event-source-device.html (right): https://codereview.chromium.org/1161783006/diff/20001/LayoutTests/fast/events/touch/create-touch-event-source-device.html#newcode20 LayoutTests/fast/events/touch/create-touch-event-source-device.html:20: On 2015/06/03 17:50:39, tdresser wrote: > nit: Remove space. ...
4 years, 11 months ago (2015-06-05 21:33:12 UTC) #8
tdresser
Some of the bot failures are due to your patch - can you take a ...
4 years, 10 months ago (2015-06-08 12:36:40 UTC) #9
lanwei
https://codereview.chromium.org/1161783006/diff/100001/LayoutTests/fast/events/touch/create-touch-event-source-device.html File LayoutTests/fast/events/touch/create-touch-event-source-device.html (right): https://codereview.chromium.org/1161783006/diff/100001/LayoutTests/fast/events/touch/create-touch-event-source-device.html#newcode22 LayoutTests/fast/events/touch/create-touch-event-source-device.html:22: testFailed("An exception was thrown: " + e.message); On 2015/06/08 ...
4 years, 10 months ago (2015-06-09 20:07:10 UTC) #11
lanwei
The test inspector-protocol/input/emulateTouchFromMouseEvent.html which failed in linux_blink_rel passed in my local build. On 2015/06/09 20:07:10, ...
4 years, 10 months ago (2015-06-09 20:09:53 UTC) #12
tdresser
https://codereview.chromium.org/1161783006/diff/200001/Source/core/events/TouchEvent.cpp File Source/core/events/TouchEvent.cpp (right): https://codereview.chromium.org/1161783006/diff/200001/Source/core/events/TouchEvent.cpp#newcode50 Source/core/events/TouchEvent.cpp:50: : UIEventWithKeyState(type, true, cancelable, view, 0, ctrlKey, altKey, shiftKey, ...
4 years, 10 months ago (2015-06-10 13:46:00 UTC) #13
tdresser
https://codereview.chromium.org/1161783006/diff/200001/LayoutTests/fast/events/touch/touch-event-source-device-event-sender.html File LayoutTests/fast/events/touch/touch-event-source-device-event-sender.html (right): https://codereview.chromium.org/1161783006/diff/200001/LayoutTests/fast/events/touch/touch-event-source-device-event-sender.html#newcode43 LayoutTests/fast/events/touch/touch-event-source-device-event-sender.html:43: debug('This test requires --run-layout-test.'); We normally say 'This test ...
4 years, 10 months ago (2015-06-10 13:48:05 UTC) #14
lanwei
https://codereview.chromium.org/1161783006/diff/200001/LayoutTests/fast/events/touch/touch-event-source-device-event-sender.html File LayoutTests/fast/events/touch/touch-event-source-device-event-sender.html (right): https://codereview.chromium.org/1161783006/diff/200001/LayoutTests/fast/events/touch/touch-event-source-device-event-sender.html#newcode43 LayoutTests/fast/events/touch/touch-event-source-device-event-sender.html:43: debug('This test requires --run-layout-test.'); On 2015/06/10 13:48:05, tdresser wrote: ...
4 years, 10 months ago (2015-06-10 23:23:22 UTC) #20
Rick Byers
LGTM https://codereview.chromium.org/1161783006/diff/310001/LayoutTests/fast/events/touch/create-touch-event-source-device.html File LayoutTests/fast/events/touch/create-touch-event-source-device.html (right): https://codereview.chromium.org/1161783006/diff/310001/LayoutTests/fast/events/touch/create-touch-event-source-device.html#newcode3 LayoutTests/fast/events/touch/create-touch-event-source-device.html:3: <head> nit: coding style says to omit unnecessary ...
4 years, 10 months ago (2015-06-11 03:34:12 UTC) #21
tdresser
On 2015/06/11 03:34:12, Rick Byers wrote: > LGTM > > https://codereview.chromium.org/1161783006/diff/310001/LayoutTests/fast/events/touch/create-touch-event-source-device.html > File LayoutTests/fast/events/touch/create-touch-event-source-device.html > ...
4 years, 10 months ago (2015-06-11 12:52:29 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1161783006/330001
4 years, 10 months ago (2015-06-11 17:46:58 UTC) #25
commit-bot: I haz the power
Committed patchset #8 (id:330001) as https://src.chromium.org/viewvc/blink?view=rev&revision=196967
4 years, 10 months ago (2015-06-11 19:19:00 UTC) #26
lanwei
4 years, 10 months ago (2015-06-15 18:22:01 UTC) #27
Message was sent while issue was closed.
https://codereview.chromium.org/1161783006/diff/310001/LayoutTests/fast/event...
File LayoutTests/fast/events/touch/create-touch-event-source-device.html
(right):

https://codereview.chromium.org/1161783006/diff/310001/LayoutTests/fast/event...
LayoutTests/fast/events/touch/create-touch-event-source-device.html:3: <head>
On 2015/06/11 03:34:12, Rick Byers wrote:
> nit: coding style says to omit unnecessary tags like html, head and body:
>
https://www.chromium.org/blink/coding-style/layout-test-style-guidelines#TOC-...

Done.

https://codereview.chromium.org/1161783006/diff/310001/LayoutTests/fast/event...
LayoutTests/fast/events/touch/create-touch-event-source-device.html:14:
shouldBeNull("event.sourceDevice");
On 2015/06/11 03:34:12, Rick Byers wrote:
> this is a pretty trivial test case - may be simpler to just lump it into your
> uievent-with-inputdevice.html test?

Done.

Powered by Google App Engine
This is Rietveld 408576698