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

Issue 1160753005: Implement UIEvent.sourceDevice (Closed)

Created:
5 years, 7 months ago by lanwei
Modified:
5 years, 6 months ago
Reviewers:
tdresser, Rick Byers
CC:
blink-reviews, vivekg, arv+blink, Inactive, vivekg_samsung
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

Implement UIEvent.sourceDevice Since now we have InputDevice information, in this CL we populates sourceDevice attribute into UIEvent, then later on all types of UIEvent will have their own sourceDevice information. 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/) BUG=476530 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=196731

Patch Set 1 : #

Total comments: 5

Patch Set 2 : Change unittest #

Total comments: 3

Patch Set 3 : #

Total comments: 3

Patch Set 4 : Add arugment name #

Total comments: 6

Patch Set 5 : Set sourceDevice to null except uieventinit #

Total comments: 2

Patch Set 6 : Layout test and webexposed #

Unified diffs Side-by-side diffs Delta from patch set Stats (+47 lines, -0 lines) Patch
A LayoutTests/fast/events/uievent-with-inputdevice.html View 1 2 3 4 5 1 chunk +21 lines, -0 lines 0 comments Download
A LayoutTests/fast/events/uievent-with-inputdevice-expected.txt View 1 2 3 4 5 1 chunk +15 lines, -0 lines 0 comments Download
M LayoutTests/webexposed/global-interface-listing-expected.txt View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/events/UIEvent.h View 1 2 3 4 5 3 chunks +3 lines, -0 lines 0 comments Download
M Source/core/events/UIEvent.cpp View 1 2 3 4 5 chunks +5 lines, -0 lines 0 comments Download
M Source/core/events/UIEvent.idl View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/events/UIEventInit.idl View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 24 (10 generated)
lanwei
5 years, 7 months ago (2015-05-27 19:22:25 UTC) #3
Rick Byers
Please reference the intent-to-implement thread in the CL description. https://codereview.chromium.org/1160753005/diff/20001/LayoutTests/fast/events/uievent-with-inputdevice.html File LayoutTests/fast/events/uievent-with-inputdevice.html (right): https://codereview.chromium.org/1160753005/diff/20001/LayoutTests/fast/events/uievent-with-inputdevice.html#newcode13 LayoutTests/fast/events/uievent-with-inputdevice.html:13: ...
5 years, 7 months ago (2015-05-28 00:11:43 UTC) #4
lanwei
https://codereview.chromium.org/1160753005/diff/20001/Source/core/events/UIEvent.idl File Source/core/events/UIEvent.idl (right): https://codereview.chromium.org/1160753005/diff/20001/Source/core/events/UIEvent.idl#newcode25 Source/core/events/UIEvent.idl:25: readonly attribute InputDevice? sourceDevice; On 2015/05/28 00:11:43, Rick Byers ...
5 years, 6 months ago (2015-05-29 18:02:39 UTC) #7
tdresser
Can you clarify in the change description what this patch actually does? (i.e. the fact ...
5 years, 6 months ago (2015-06-01 17:36:46 UTC) #8
lanwei
https://codereview.chromium.org/1160753005/diff/80001/Source/core/events/UIEvent.h File Source/core/events/UIEvent.h (right): https://codereview.chromium.org/1160753005/diff/80001/Source/core/events/UIEvent.h#newcode34 Source/core/events/UIEvent.h:34: #include <stdlib.h> On 2015/06/01 17:36:46, tdresser wrote: > What's ...
5 years, 6 months ago (2015-06-02 14:08:31 UTC) #9
tdresser
LGTM with nits. https://codereview.chromium.org/1160753005/diff/100001/LayoutTests/fast/events/uievent-with-inputdevice.html File LayoutTests/fast/events/uievent-with-inputdevice.html (right): https://codereview.chromium.org/1160753005/diff/100001/LayoutTests/fast/events/uievent-with-inputdevice.html#newcode13 LayoutTests/fast/events/uievent-with-inputdevice.html:13: document.addEventListener("click", function(event) { firesTouchEvents = event.sourceDevice.firesTouchEvents; ...
5 years, 6 months ago (2015-06-02 14:43:55 UTC) #10
lanwei
5 years, 6 months ago (2015-06-03 17:43:12 UTC) #11
Rick Byers
Sorry I didn't catch this sooner, but I don't think this is quite the right ...
5 years, 6 months ago (2015-06-04 14:52:35 UTC) #12
tdresser
not LGTM, just so I can take another look once you've made the changes Rick ...
5 years, 6 months ago (2015-06-04 15:34:24 UTC) #13
lanwei
5 years, 6 months ago (2015-06-05 04:33:20 UTC) #15
tdresser
LGTM with nits, thanks. https://codereview.chromium.org/1160753005/diff/160001/LayoutTests/fast/events/uievent-with-inputdevice.html File LayoutTests/fast/events/uievent-with-inputdevice.html (right): https://codereview.chromium.org/1160753005/diff/160001/LayoutTests/fast/events/uievent-with-inputdevice.html#newcode12 LayoutTests/fast/events/uievent-with-inputdevice.html:12: shouldBeNonNull("new UIEvent('eventType', { sourceDevice: new ...
5 years, 6 months ago (2015-06-05 12:35:39 UTC) #16
Rick Byers
Thanks, this is now definitely a simple step in the right direction. LGTM
5 years, 6 months ago (2015-06-08 14:31:06 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1160753005/240001
5 years, 6 months ago (2015-06-09 02:17:13 UTC) #23
commit-bot: I haz the power
5 years, 6 months ago (2015-06-09 03:04:01 UTC) #24
Message was sent while issue was closed.
Committed patchset #6 (id:240001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=196731

Powered by Google App Engine
This is Rietveld 408576698