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

Issue 1174683004: Populates sourceDevice attribute into MouseEvent (Closed)

Created:
4 years, 10 months ago by lanwei
Modified:
4 years, 10 months ago
Reviewers:
tdresser, Rick Byers
CC:
blink-reviews
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

Populates sourceDevice attribute into MouseEvent Since now we have InputDevice information, in this CL we populates sourceDevice attribute into MouseEvent, which has firesTouchEvents set to be false, if it is from a real mouse device. If the mouse events are synthesized from touch events, then firesTouchEvents is 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=197849

Patch Set 1 : #

Patch Set 2 : Rebase #

Total comments: 4

Patch Set 3 : Add inputDevice to Init and RuntimeEnabled=InputDevice to idl #

Patch Set 4 : Create a new init function #

Total comments: 11

Patch Set 5 : Do not use init*Event #

Patch Set 6 : #

Total comments: 4

Patch Set 7 : Add initinternal #

Unified diffs Side-by-side diffs Delta from patch set Stats (+130 lines, -21 lines) Patch
A LayoutTests/fast/events/mouse-event-from-touch-source-device-event-sender.html View 1 2 3 4 1 chunk +24 lines, -0 lines 0 comments Download
A + LayoutTests/fast/events/mouse-event-from-touch-source-device-event-sender-expected.txt View 1 2 3 4 1 chunk +6 lines, -8 lines 0 comments Download
A LayoutTests/fast/events/mouse-event-source-device-event-sender.html View 1 2 3 4 1 chunk +25 lines, -0 lines 0 comments Download
A LayoutTests/fast/events/mouse-event-source-device-event-sender-expected.txt View 1 2 3 4 1 chunk +21 lines, -0 lines 0 comments Download
M LayoutTests/fast/events/uievent-with-inputdevice.html View 1 2 3 4 2 chunks +12 lines, -1 line 0 comments Download
M LayoutTests/fast/events/uievent-with-inputdevice-expected.txt View 1 2 3 4 1 chunk +4 lines, -0 lines 0 comments Download
M Source/core/events/MouseEvent.h View 1 2 3 4 5 6 2 chunks +7 lines, -0 lines 0 comments Download
M Source/core/events/MouseEvent.cpp View 1 2 3 4 5 6 5 chunks +13 lines, -5 lines 0 comments Download
M Source/core/events/MouseRelatedEvent.h View 1 2 3 4 5 6 1 chunk +3 lines, -1 line 0 comments Download
M Source/core/events/MouseRelatedEvent.cpp View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M Source/core/events/TouchEvent.cpp View 1 2 1 chunk +1 line, -1 line 0 comments Download
M Source/core/input/EventHandler.cpp View 1 2 1 chunk +1 line, -1 line 0 comments Download
M Source/core/input/InputDevice.h View 1 2 1 chunk +4 lines, -1 line 0 comments Download
M Source/core/input/InputDevice.cpp View 1 2 1 chunk +7 lines, -1 line 0 comments Download

Messages

Total messages: 23 (11 generated)
lanwei
4 years, 10 months ago (2015-06-11 19:07:15 UTC) #5
tdresser
LGTM with nits. https://codereview.chromium.org/1174683004/diff/120001/LayoutTests/fast/events/uievent-with-inputdevice.html File LayoutTests/fast/events/uievent-with-inputdevice.html (right): https://codereview.chromium.org/1174683004/diff/120001/LayoutTests/fast/events/uievent-with-inputdevice.html#newcode21 LayoutTests/fast/events/uievent-with-inputdevice.html:21: document.addEventListener("click", function(event) { The other tests ...
4 years, 10 months ago (2015-06-12 13:06:54 UTC) #8
lanwei
https://codereview.chromium.org/1174683004/diff/120001/LayoutTests/fast/events/uievent-with-inputdevice.html File LayoutTests/fast/events/uievent-with-inputdevice.html (right): https://codereview.chromium.org/1174683004/diff/120001/LayoutTests/fast/events/uievent-with-inputdevice.html#newcode21 LayoutTests/fast/events/uievent-with-inputdevice.html:21: document.addEventListener("click", function(event) { On 2015/06/12 13:06:54, tdresser wrote: > ...
4 years, 10 months ago (2015-06-16 21:51:43 UTC) #9
lanwei
4 years, 10 months ago (2015-06-17 18:23:34 UTC) #11
Rick Byers
Sorry for the delay, finally getting caught up from travelling. Just a couple suggestions to ...
4 years, 10 months ago (2015-06-23 00:55:57 UTC) #12
lanwei
https://codereview.chromium.org/1174683004/diff/180001/LayoutTests/fast/events/mouse-event-from-touch-source-device-event-sender.html File LayoutTests/fast/events/mouse-event-from-touch-source-device-event-sender.html (right): https://codereview.chromium.org/1174683004/diff/180001/LayoutTests/fast/events/mouse-event-from-touch-source-device-event-sender.html#newcode16 LayoutTests/fast/events/mouse-event-from-touch-source-device-event-sender.html:16: document.addEventListener("mouseup", mouseHandler); On 2015/06/23 00:55:57, Rick Byers wrote: > ...
4 years, 10 months ago (2015-06-23 22:19:20 UTC) #15
lanwei
https://codereview.chromium.org/1174683004/diff/180001/LayoutTests/fast/events/mouse-event-from-touch-source-device-event-sender.html File LayoutTests/fast/events/mouse-event-from-touch-source-device-event-sender.html (right): https://codereview.chromium.org/1174683004/diff/180001/LayoutTests/fast/events/mouse-event-from-touch-source-device-event-sender.html#newcode16 LayoutTests/fast/events/mouse-event-from-touch-source-device-event-sender.html:16: document.addEventListener("mouseup", mouseHandler); On 2015/06/23 00:55:57, Rick Byers wrote: > ...
4 years, 10 months ago (2015-06-23 22:19:21 UTC) #16
tdresser
On 2015/06/23 22:19:21, lanwei wrote: > https://codereview.chromium.org/1174683004/diff/180001/LayoutTests/fast/events/mouse-event-from-touch-source-device-event-sender.html > File > LayoutTests/fast/events/mouse-event-from-touch-source-device-event-sender.html > (right): > > ...
4 years, 10 months ago (2015-06-24 12:46:08 UTC) #17
Rick Byers
Awesome, now nice and simple - thanks! LGTM with nits https://codereview.chromium.org/1174683004/diff/260001/Source/core/events/MouseEvent.cpp File Source/core/events/MouseEvent.cpp (right): https://codereview.chromium.org/1174683004/diff/260001/Source/core/events/MouseEvent.cpp#newcode291 ...
4 years, 10 months ago (2015-06-25 03:34:54 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1174683004/280001
4 years, 10 months ago (2015-06-25 19:05:51 UTC) #21
lanwei
https://codereview.chromium.org/1174683004/diff/260001/Source/core/events/MouseEvent.cpp File Source/core/events/MouseEvent.cpp (right): https://codereview.chromium.org/1174683004/diff/260001/Source/core/events/MouseEvent.cpp#newcode291 Source/core/events/MouseEvent.cpp:291: doubleClickEvent->initMouseEvent(nullptr, EventTypeNames::dblclick, event().bubbles(), event().cancelable(), event().view(), On 2015/06/25 03:34:54, Rick ...
4 years, 10 months ago (2015-06-25 19:26:40 UTC) #22
commit-bot: I haz the power
4 years, 10 months ago (2015-06-25 19:58:46 UTC) #23
Message was sent while issue was closed.
Committed patchset #7 (id:280001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=197849

Powered by Google App Engine
This is Rietveld 408576698