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

Issue 933323002: Add experimental Support for DOM3 KeyboardEvent key value (Closed)

Created:
5 years, 10 months ago by Habib Virji
Modified:
5 years, 5 months ago
CC:
aandrey+blink_chromium.org, apavlov+blink_chromium.org, arv+blink, blink-reviews, blink-reviews-events_chromium.org, caseq+blink_chromium.org, Inactive, devtools-reviews_chromium.org, dglazkov+blink, eae+blinkwatch, eustas+blink_chromium.org, loislo+blink_chromium.org, lushnikov+blink_chromium.org, malch+blink_chromium.org, pfeldman+blink_chromium.org, sergeyv+blink_chromium.org, vsevik+blink_chromium.org, yurys+blink_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

Add experimental Support for DOM3 KeyboardEvent key value DOM KeyboardEvents has a new field |key| which gives value as per the DOM3 KeyboardEvent key specification. It uses embedder API, which fetches |key| value based on a native key from the chromium side. KeyboardEvent.idl is updated to include |key| field as per the spec. Also removes the URL order change introduced in WebPluginContainerTest.cpp for patch 663523002. Intent to ship and implement: https://groups.google.com/a/chromium.org/forum/#!searchin/blink-dev/keyboardevent/blink-dev/Znyl5a96oDc/_kSn1rQ55isJ R=Wez, rbyers@chromium.org, mkwst@chromium.org, pfeldman@chromium.org BUG=227231 TEST=fast/events/keyboardevent-key.html Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=194806

Patch Set 1 #

Total comments: 2

Patch Set 2 : Added key=value pair for screencastview.js #

Total comments: 27

Patch Set 3 : Updated comments, and change API name to domKeyEnumFromString #

Total comments: 10

Patch Set 4 : Updated to the latest master #

Patch Set 5 : Added BugId for fixing lazy initialization #

Total comments: 4

Patch Set 6 : Remove DevTool change, will land them separately. #

Patch Set 7 : Added Keyboard Event Key Tests in TestExpectation #

Patch Set 8 : Removed remaining devtools changes and added a keyboardevent-key in TestExpectations #

Patch Set 9 : Updated global-interface-listing as test were failing due to addition of the key #

Total comments: 12
Unified diffs Side-by-side diffs Delta from patch set Stats (+199 lines, -12 lines) Patch
M LayoutTests/TestExpectations View 1 2 3 4 5 6 7 1 chunk +5 lines, -0 lines 0 comments Download
A LayoutTests/fast/events/keyboardevent-key.html View 1 chunk +103 lines, -0 lines 3 comments Download
A LayoutTests/fast/events/keyboardevent-key-expected.txt View 1 chunk +50 lines, -0 lines 0 comments Download
M LayoutTests/webexposed/global-interface-listing-expected.txt View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/events/KeyboardEvent.h View 1 2 3 3 chunks +5 lines, -3 lines 0 comments Download
M Source/core/events/KeyboardEvent.cpp View 1 2 3 2 chunks +3 lines, -1 line 0 comments Download
M Source/core/events/KeyboardEvent.idl View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M Source/platform/PlatformKeyboardEvent.h View 1 2 3 3 chunks +4 lines, -1 line 0 comments Download
M Source/platform/RuntimeEnabledFeatures.in View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M Source/web/WebInputEvent.cpp View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M Source/web/WebInputEventConversion.cpp View 1 2 3 4 5 6 2 chunks +3 lines, -0 lines 1 comment Download
M Source/web/tests/WebInputEventConversionTest.cpp View 1 2 3 4 chunks +4 lines, -4 lines 0 comments Download
M Source/web/tests/WebPluginContainerTest.cpp View 1 2 3 4 5 6 2 chunks +2 lines, -2 lines 0 comments Download
M public/platform/Platform.h View 1 2 3 4 5 6 1 chunk +12 lines, -0 lines 6 comments Download
M public/web/WebInputEvent.h View 1 2 3 4 5 6 1 chunk +4 lines, -0 lines 2 comments Download

Messages

Total messages: 42 (11 generated)
Habib Virji
Support for DOM3 Key event, replicates similar to DOM code event, landed a week back.
5 years, 10 months ago (2015-02-18 14:18:30 UTC) #2
dgozman
https://codereview.chromium.org/933323002/diff/1/Source/devtools/front_end/screencast/ScreencastView.js File Source/devtools/front_end/screencast/ScreencastView.js (right): https://codereview.chromium.org/933323002/diff/1/Source/devtools/front_end/screencast/ScreencastView.js#newcode282 Source/devtools/front_end/screencast/ScreencastView.js:282: this._target.inputAgent().dispatchKeyEvent(type, this._modifiersForEvent(event), event.timeStamp / 1000, text, text ? text.toLowerCase() ...
5 years, 10 months ago (2015-02-18 14:27:48 UTC) #3
Habib Virji
https://codereview.chromium.org/933323002/diff/1/Source/devtools/front_end/screencast/ScreencastView.js File Source/devtools/front_end/screencast/ScreencastView.js (right): https://codereview.chromium.org/933323002/diff/1/Source/devtools/front_end/screencast/ScreencastView.js#newcode282 Source/devtools/front_end/screencast/ScreencastView.js:282: this._target.inputAgent().dispatchKeyEvent(type, this._modifiersForEvent(event), event.timeStamp / 1000, text, text ? text.toLowerCase() ...
5 years, 10 months ago (2015-02-18 15:33:46 UTC) #4
Habib Virji
@bokan/rbyers/wez: are these changes okay. There is missing functionality on chromium side to support DomKey ...
5 years, 9 months ago (2015-03-03 17:25:59 UTC) #5
Wez
https://codereview.chromium.org/933323002/diff/20001/Source/core/events/KeyboardEvent.cpp File Source/core/events/KeyboardEvent.cpp (right): https://codereview.chromium.org/933323002/diff/20001/Source/core/events/KeyboardEvent.cpp#newcode102 Source/core/events/KeyboardEvent.cpp:102: , m_isAutoRepeat(key.isAutoRepeat()) Not specific to this CL but perhaps ...
5 years, 9 months ago (2015-03-04 23:00:26 UTC) #6
Habib Virji
Thanks Wez, updated comments as below suggested. Only comment not addressed is chromium path specified ...
5 years, 9 months ago (2015-03-09 15:14:27 UTC) #7
bokan
lgtm
5 years, 9 months ago (2015-03-09 15:22:48 UTC) #8
Habib Virji
@rbyers: can you have a look if changes are okay?
5 years, 9 months ago (2015-03-13 09:31:24 UTC) #9
Habib Virji
@Wez, rbyers: Can you please suggest how to proceed on this CL?
5 years, 8 months ago (2015-04-20 14:20:17 UTC) #10
Rick Byers
Sorry I missed your previous ping! This seems reasonable to me. LGTM with a couple ...
5 years, 8 months ago (2015-04-20 19:49:47 UTC) #11
Habib Virji
Thanks Rick for reviewing. Apologise for a late response. This time i am bit late ...
5 years, 7 months ago (2015-04-29 16:00:50 UTC) #12
Rick Byers
Thanks, still LGTM +aelias for Source/web OWNERS +vollick for Source/platform OWNERS +dgozman for Source/devtools OWNERS ...
5 years, 7 months ago (2015-04-29 17:34:27 UTC) #14
aelias_OOO_until_Jul13
Source/web lgtm
5 years, 7 months ago (2015-04-29 22:07:09 UTC) #15
Habib Virji
Thanks Rick, added bug id and updated CL description. https://codereview.chromium.org/933323002/diff/40001/Source/web/WebInputEventConversion.cpp File Source/web/WebInputEventConversion.cpp (right): https://codereview.chromium.org/933323002/diff/40001/Source/web/WebInputEventConversion.cpp#newcode322 Source/web/WebInputEventConversion.cpp:322: ...
5 years, 7 months ago (2015-04-30 09:07:24 UTC) #16
dgozman
https://codereview.chromium.org/933323002/diff/80001/Source/devtools/front_end/screencast/ScreencastView.js File Source/devtools/front_end/screencast/ScreencastView.js (right): https://codereview.chromium.org/933323002/diff/80001/Source/devtools/front_end/screencast/ScreencastView.js#newcode290 Source/devtools/front_end/screencast/ScreencastView.js:290: windowsVirtualKeyCode: event.keyCode /* windowsVirtualKeyCode */, nit: you can drop ...
5 years, 7 months ago (2015-04-30 09:21:09 UTC) #17
Habib Virji
https://codereview.chromium.org/933323002/diff/80001/Source/devtools/protocol.json File Source/devtools/protocol.json (right): https://codereview.chromium.org/933323002/diff/80001/Source/devtools/protocol.json#newcode4334 Source/devtools/protocol.json:4334: { "name": "key", "type": "string", "optional": true, "description": "Unique ...
5 years, 7 months ago (2015-04-30 10:11:52 UTC) #18
Ian Vollick
On 2015/04/30 at 10:11:52, habib.virji wrote: > https://codereview.chromium.org/933323002/diff/80001/Source/devtools/protocol.json > File Source/devtools/protocol.json (right): > > https://codereview.chromium.org/933323002/diff/80001/Source/devtools/protocol.json#newcode4334 ...
5 years, 7 months ago (2015-04-30 14:54:33 UTC) #19
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/933323002/100001
5 years, 7 months ago (2015-04-30 15:08:25 UTC) #22
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/933323002/120001
5 years, 7 months ago (2015-04-30 15:19:19 UTC) #25
Rick Byers
On 2015/04/30 15:19:19, I haz the power (commit-bot) wrote: > Dry run: CQ is trying ...
5 years, 7 months ago (2015-04-30 17:32:43 UTC) #26
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: win_blink_rel on tryserver.blink (JOB_FAILED, http://build.chromium.org/p/tryserver.blink/builders/win_blink_rel/builds/61377)
5 years, 7 months ago (2015-04-30 18:10:14 UTC) #28
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/933323002/160001
5 years, 7 months ago (2015-05-01 10:41:21 UTC) #31
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 7 months ago (2015-05-01 13:01:57 UTC) #33
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/933323002/160001
5 years, 7 months ago (2015-05-01 13:02:42 UTC) #35
commit-bot: I haz the power
Committed patchset #9 (id:160001) as https://src.chromium.org/viewvc/blink?view=rev&revision=194806
5 years, 7 months ago (2015-05-01 13:03:30 UTC) #36
Noel Gordon
The webexposed/global-interface-listing.html is failing on WebKit_Win7 at Build #29258 https://storage.googleapis.com/chromium-layout-test-archives/WebKit_Win7/29258/layout-test-results/results.html --- E:\b\build\slave\WebKit_Win7\build\layout-test-results\webexposed/global-interface-listing-expected.txt +++ E:\b\build\slave\WebKit_Win7\build\layout-test-results\webexposed/global-interface-listing-actual.txt @@ ...
5 years, 7 months ago (2015-05-01 14:03:04 UTC) #37
Habib Virji
On 2015/05/01 14:03:04, noel gordon wrote: > The webexposed/global-interface-listing.html is failing on WebKit_Win7 at Build ...
5 years, 7 months ago (2015-05-01 14:16:11 UTC) #38
jbroman
On 2015/05/01 14:16:11, Habib Virji wrote: > On 2015/05/01 14:03:04, noel gordon wrote: > > ...
5 years, 7 months ago (2015-05-01 14:51:51 UTC) #39
Habib Virji
On 2015/04/30 17:32:43, Rick Byers wrote: > On 2015/04/30 15:19:19, I haz the power (commit-bot) ...
5 years, 7 months ago (2015-05-01 15:26:50 UTC) #40
Wez
Habib, so sorry, I totally missed your reviews in my queue. :( https://codereview.chromium.org/933323002/diff/160001/LayoutTests/fast/events/keyboardevent-key.html File LayoutTests/fast/events/keyboardevent-key.html ...
5 years, 7 months ago (2015-05-06 01:32:13 UTC) #41
Habib Virji
5 years, 7 months ago (2015-05-06 15:38:17 UTC) #42
Message was sent while issue was closed.
No issues, Wez. Thanks for the input. Since this CL has landed and it is mostly
wording and test changes. I am uploading a new patch (tomorrow) that will fix
these issues that you mentioned and the rewording that you have highlighted
here. It all relies on chromium patch to be landed, will appreciate if you can
have a look at https://codereview.chromium.org/929053004/

Powered by Google App Engine
This is Rietveld 408576698