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

Issue 1182313006: Populates sourceDevice attribute into KeyboardEvent (Closed)

Created:
4 years, 10 months ago by lanwei
Modified:
4 years, 10 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

Populates sourceDevice attribute into KeyboardEvent Since now we have InputDevice information, in this CL we populates sourceDevice attribute into KeyboardEvent, which has firesTouchEvents set to be false, because we treat all the keyboard events the same no matter they are from physical keyboard or virtual keyboard (it sends keyboard events to chromium not touch events). 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=197921

Patch Set 1 #

Total comments: 3

Patch Set 2 : Add RuntimeEnabled=InputDevice to idl files #

Patch Set 3 : Create new init function #

Patch Set 4 : Do not use init&Event #

Total comments: 1

Patch Set 5 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+44 lines, -11 lines) Patch
A LayoutTests/fast/events/keyboard-event-source-device-event-sender.html View 1 2 3 1 chunk +23 lines, -0 lines 0 comments Download
A + LayoutTests/fast/events/keyboard-event-source-device-event-sender-expected.txt View 1 2 3 4 1 chunk +4 lines, -7 lines 0 comments Download
M LayoutTests/fast/events/uievent-with-inputdevice.html View 1 2 3 4 1 chunk +10 lines, -0 lines 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/KeyboardEvent.cpp View 1 2 3 3 chunks +3 lines, -4 lines 0 comments Download

Messages

Total messages: 18 (3 generated)
lanwei
4 years, 10 months ago (2015-06-16 19:14:09 UTC) #2
tdresser
https://codereview.chromium.org/1182313006/diff/1/Source/core/events/UIEvent.idl File Source/core/events/UIEvent.idl (right): https://codereview.chromium.org/1182313006/diff/1/Source/core/events/UIEvent.idl#newcode36 Source/core/events/UIEvent.idl:36: [Default=Undefined] optional InputDevice? sourceDevice); This should be behind the ...
4 years, 10 months ago (2015-06-16 19:51:41 UTC) #3
lanwei
https://codereview.chromium.org/1182313006/diff/1/Source/core/events/UIEvent.idl File Source/core/events/UIEvent.idl (right): https://codereview.chromium.org/1182313006/diff/1/Source/core/events/UIEvent.idl#newcode36 Source/core/events/UIEvent.idl:36: [Default=Undefined] optional InputDevice? sourceDevice); On 2015/06/16 19:51:41, tdresser wrote: ...
4 years, 10 months ago (2015-06-17 15:11:43 UTC) #4
tdresser
https://codereview.chromium.org/1182313006/diff/1/Source/core/events/UIEvent.idl File Source/core/events/UIEvent.idl (right): https://codereview.chromium.org/1182313006/diff/1/Source/core/events/UIEvent.idl#newcode36 Source/core/events/UIEvent.idl:36: [Default=Undefined] optional InputDevice? sourceDevice); On 2015/06/17 15:11:42, lanwei wrote: ...
4 years, 10 months ago (2015-06-17 15:18:59 UTC) #5
lanwei
4 years, 10 months ago (2015-06-17 18:23:14 UTC) #6
Rick Byers
On 2015/06/17 15:18:59, tdresser wrote: > https://codereview.chromium.org/1182313006/diff/1/Source/core/events/UIEvent.idl > File Source/core/events/UIEvent.idl (right): > > https://codereview.chromium.org/1182313006/diff/1/Source/core/events/UIEvent.idl#newcode36 > ...
4 years, 10 months ago (2015-06-23 01:01:51 UTC) #7
blink-reviews
Adding a constructor to TouchEvent sounds like a good plan - is the constructor spec'ed? ...
4 years, 10 months ago (2015-06-23 12:49:45 UTC) #8
Rick Byers
Not yet: https://github.com/w3c/touch-events/issues/10 I'm fine leaving it as-is for TouchEvent for now (no way to ...
4 years, 10 months ago (2015-06-23 14:49:20 UTC) #9
lanwei
4 years, 10 months ago (2015-06-23 21:31:53 UTC) #10
lanwei
On 2015/06/23 01:01:51, Rick Byers wrote: > On 2015/06/17 15:18:59, tdresser wrote: > > > ...
4 years, 10 months ago (2015-06-23 22:18:57 UTC) #11
Rick Byers
LGTM once rebased against https://codereview.chromium.org/1174683004/ https://codereview.chromium.org/1182313006/diff/60001/Source/core/input/InputDevice.h File Source/core/input/InputDevice.h (right): https://codereview.chromium.org/1182313006/diff/60001/Source/core/input/InputDevice.h#newcode23 Source/core/input/InputDevice.h:23: static InputDevice* doesntFireTouchEventsInputDevice(); This ...
4 years, 10 months ago (2015-06-25 17:12:30 UTC) #12
lanwei
4 years, 10 months ago (2015-06-26 03:35:17 UTC) #13
tdresser
On 2015/06/26 03:35:17, lanwei wrote: LGTM, thanks!
4 years, 10 months ago (2015-06-26 12:21:49 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1182313006/80001
4 years, 10 months ago (2015-06-26 14:47:29 UTC) #17
commit-bot: I haz the power
4 years, 10 months ago (2015-06-26 14:50:34 UTC) #18
Message was sent while issue was closed.
Committed patchset #5 (id:80001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=197921

Powered by Google App Engine
This is Rietveld 408576698