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

Issue 663523002: Adding support for DOM3 KeyboardEvents Code in KeyboardEvents (Closed)

Created:
6 years, 2 months ago by Habib Virji
Modified:
5 years, 10 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, jamesr, loislo+blink_chromium.org, lushnikov+blink_chromium.org, malch+blink_chromium.org, mkwst+moarreviews_chromium.org, paulirish+reviews_chromium.org, pfeldman+blink_chromium.org, sergeyv+blink_chromium.org, vsevik+blink_chromium.org, yurys+blink_chromium.org, tkent
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

Adding support for DOM3 KeyboardEvents Code KeyboardEvents has a new field |code| which gives value as per the DOM3 KeyboardEvent code specification. It uses Embedder API keyboardDOMCodeValue, which fetches code value based on a native key value from the chromium side. KeyboardEvent.idl is updated to include code field as per the spec. Intent to ship and implement: https://groups.google.com/a/chromium.org/forum/#!searchin/blink-dev/keyboardevent/blink-dev/Znyl5a96oDc/_kSn1rQ55isJ R=garykac, Wez BUG=227231 TEST=fast/events/keyboardevent-code.html Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=189514

Patch Set 1 #

Patch Set 2 : Build fix #

Patch Set 3 : Test fix #

Total comments: 2

Patch Set 4 : Use native code instead of usb code mapping. Also updated to match firefox values. #

Total comments: 11

Patch Set 5 : Access DOM Code value using embedder API #

Total comments: 8

Patch Set 6 : Update to name of embedder API and cleanup #

Patch Set 7 : Added code in relevant constructors and init functions #

Total comments: 2

Patch Set 8 : #

Total comments: 5

Patch Set 9 : Updated to use domCode instead of native domCode #

Total comments: 30

Patch Set 10 : Added new embedder API and code review comments update #

Total comments: 29

Patch Set 11 : "Updated test for keypress and keyup. Added DOM3 code attribute as runtime enabled feature. DOMcode… #

Total comments: 4

Patch Set 12 : Updated unittest to use different urls and destructor to register same url again #

Total comments: 11

Patch Set 13 : Updated comments and resolved return values for the DOM code value and DOM code enum. #

Patch Set 14 : Embedder API are part of Platform.h instead of WebViewClient.h #

Total comments: 13

Patch Set 15 : "Updated to the latest master" #

Patch Set 16 : Added KeyboardEvent test as a failure in LayoutTests #

Patch Set 17 : Added keyboardTest failure for virtual/slimmingpaint #

Unified diffs Side-by-side diffs Delta from patch set Stats (+247 lines, -19 lines) Patch
M LayoutTests/TestExpectations View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +4 lines, -0 lines 0 comments Download
A LayoutTests/fast/events/keyboardevent-code.html View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +128 lines, -0 lines 0 comments Download
A LayoutTests/fast/events/keyboardevent-code-expected.txt View 1 2 3 4 5 6 7 8 9 10 1 chunk +66 lines, -0 lines 0 comments Download
M Source/core/events/KeyboardEvent.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 3 chunks +6 lines, -3 lines 0 comments Download
M Source/core/events/KeyboardEvent.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 3 chunks +4 lines, -4 lines 0 comments Download
M Source/core/events/KeyboardEvent.idl View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/inspector/InspectorInputAgent.h View 1 2 3 4 5 6 9 1 chunk +1 line, -1 line 0 comments Download
M Source/core/inspector/InspectorInputAgent.cpp View 1 2 3 4 5 6 7 8 9 2 chunks +2 lines, -1 line 0 comments Download
M Source/devtools/front_end/screencast/ScreencastView.js View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +1 line, -1 line 0 comments Download
M Source/devtools/protocol.json View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +1 line, -0 lines 0 comments Download
M Source/platform/PlatformKeyboardEvent.h View 1 2 3 4 5 6 9 3 chunks +5 lines, -1 line 0 comments Download
M Source/platform/RuntimeEnabledFeatures.in View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +1 line, -0 lines 0 comments Download
M Source/web/WebInputEvent.cpp View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -1 line 0 comments Download
M Source/web/WebInputEventConversion.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 4 chunks +4 lines, -0 lines 0 comments Download
M Source/web/tests/WebInputEventConversionTest.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 4 chunks +4 lines, -4 lines 0 comments Download
M Source/web/tests/WebPluginContainerTest.cpp View 1 2 3 4 5 6 7 8 9 2 chunks +2 lines, -2 lines 0 comments Download
M public/platform/Platform.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +12 lines, -0 lines 0 comments Download
M public/web/WebInputEvent.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +4 lines, -0 lines 0 comments Download
M public/web/WebViewClient.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +0 lines, -1 line 0 comments Download

Messages

Total messages: 83 (20 generated)
Habib Virji
Also has small changes on the chromium side. https://codereview.chromium.org/658183002/
6 years, 2 months ago (2014-10-16 15:29:46 UTC) #1
Habib Virji
PTAL
6 years, 2 months ago (2014-10-22 10:01:20 UTC) #5
vsevik
https://codereview.chromium.org/663523002/diff/40001/Source/devtools/Inspector-1.1.json File Source/devtools/Inspector-1.1.json (right): https://codereview.chromium.org/663523002/diff/40001/Source/devtools/Inspector-1.1.json#newcode3839 Source/devtools/Inspector-1.1.json:3839: { "name": "usbCode", "type": "integer", "optional": true, "description": "Usb ...
6 years, 2 months ago (2014-10-23 11:43:42 UTC) #7
Habib Virji
Updated code to not use usb code and use instead native code. All values are ...
6 years, 2 months ago (2014-10-24 17:02:41 UTC) #9
Wez
(Fixed reviewers to include only Gary's and my @chromium Ids and to require approval from ...
6 years, 2 months ago (2014-10-25 00:17:39 UTC) #14
Wez
https://codereview.chromium.org/663523002/diff/60001/Source/core/events/KeyboardCode.h File Source/core/events/KeyboardCode.h (right): https://codereview.chromium.org/663523002/diff/60001/Source/core/events/KeyboardCode.h#newcode49 Source/core/events/KeyboardCode.h:49: const NativeCodeToCodeMapEntry keyCodeMap[] = { As previously discussed, Chromium ...
6 years, 2 months ago (2014-10-25 00:23:02 UTC) #15
Habib Virji
@wez: Thanks for the review. Implemented a new embedder API to get dom3 value. Would ...
6 years, 1 month ago (2014-10-27 16:48:36 UTC) #17
Wez
https://codereview.chromium.org/663523002/diff/80001/Source/core/events/KeyboardEvent.cpp File Source/core/events/KeyboardEvent.cpp (right): https://codereview.chromium.org/663523002/diff/80001/Source/core/events/KeyboardEvent.cpp#newcode26 Source/core/events/KeyboardEvent.cpp:26: #include "KeyboardCode.h" What is this include required for? https://codereview.chromium.org/663523002/diff/80001/Source/core/events/KeyboardEvent.cpp#newcode139 ...
6 years, 1 month ago (2014-11-20 22:17:33 UTC) #18
Habib Virji
Thanks Wez. Updated as per review comments. Please suggests if changes are okay? https://codereview.chromium.org/663523002/diff/80001/Source/core/events/KeyboardEvent.cpp File ...
6 years ago (2014-11-24 15:12:22 UTC) #19
Habib Virji
@wez: can you please have a look.
6 years ago (2014-11-27 14:21:18 UTC) #20
Habib Virji
@wez/garykac: ping
6 years ago (2014-12-01 13:18:16 UTC) #21
Wez
This looks reasonable to me, but you'll need approval from Blink owners to land. https://codereview.chromium.org/663523002/diff/80001/Source/web/WebInputEventConversion.cpp ...
6 years ago (2014-12-02 04:23:30 UTC) #22
Habib Virji
Thanks wez, updated comment. But has not added in WebKeyboardEvent as will increase size of ...
6 years ago (2014-12-02 11:52:21 UTC) #23
Habib Virji
On 2014/12/02 at 11:58:49, Habib Virji wrote: > habib.virji@samsung.com changed reviewers: > + dgozman@chromium.org, rbyers@chromium.org ...
6 years ago (2014-12-02 11:59:27 UTC) #26
Rick Byers
On 2014/12/02 11:59:27, Habib Virji wrote: > On 2014/12/02 at 11:58:49, Habib Virji wrote: > ...
6 years ago (2014-12-02 15:24:48 UTC) #27
Habib Virji
On 2014/12/02 at 15:24:48, rbyers wrote: > On 2014/12/02 11:59:27, Habib Virji wrote: > > ...
6 years ago (2014-12-02 15:34:05 UTC) #28
Rick Byers
On 2014/12/02 15:34:05, Habib Virji wrote: > On 2014/12/02 at 15:24:48, rbyers wrote: > > ...
6 years ago (2014-12-02 15:52:55 UTC) #29
Rick Byers
On 2014/12/02 15:52:55, Rick Byers wrote: > On 2014/12/02 15:34:05, Habib Virji wrote: > > ...
6 years ago (2014-12-02 15:53:20 UTC) #30
garykac
https://codereview.chromium.org/663523002/diff/140001/LayoutTests/fast/events/keyboardevent-code.html File LayoutTests/fast/events/keyboardevent-code.html (right): https://codereview.chromium.org/663523002/diff/140001/LayoutTests/fast/events/keyboardevent-code.html#newcode29 LayoutTests/fast/events/keyboardevent-code.html:29: shouldEvaluateTo('lastKeyboardEvent.code', '\'KeyA\'') ; Is it possible to have tests ...
6 years ago (2014-12-02 16:29:32 UTC) #31
Habib Virji
Thanks garykac, for having a look. Can you clarify regarding enum value usage, as would ...
6 years ago (2014-12-02 16:39:05 UTC) #32
Habib Virji
Thanks garykac, for having a look. Can you clarify regarding enum value usage, as would ...
6 years ago (2014-12-02 16:39:06 UTC) #33
kpschoedel
https://codereview.chromium.org/663523002/diff/140001/Source/web/WebViewImpl.cpp File Source/web/WebViewImpl.cpp (right): https://codereview.chromium.org/663523002/diff/140001/Source/web/WebViewImpl.cpp#newcode1004 Source/web/WebViewImpl.cpp:1004: evt.setKeyboardEventDOMCodeValue(m_client->keyboardDOMCodeValue(evt.nativeVirtualKeyCode())); This uses WebKeyboardEvent.nativeKeyCode, which concerns me, because in ...
6 years ago (2014-12-02 17:00:52 UTC) #35
Habib Virji
On 2014/12/02 at 17:00:52, kpschoedel wrote: > https://codereview.chromium.org/663523002/diff/140001/Source/web/WebViewImpl.cpp > File Source/web/WebViewImpl.cpp (right): > > https://codereview.chromium.org/663523002/diff/140001/Source/web/WebViewImpl.cpp#newcode1004 ...
6 years ago (2014-12-02 17:37:32 UTC) #36
kpschoedel
On 2014/12/02 17:37:32, Habib Virji wrote: > @Kevin: WHat do you reckon will be a ...
6 years ago (2014-12-02 17:48:42 UTC) #37
Rick Byers
On 2014/12/02 17:37:32, Habib Virji wrote: > On 2014/12/02 at 17:00:52, kpschoedel wrote: > > ...
6 years ago (2014-12-02 17:56:04 UTC) #38
garykac
On 2014/12/02 16:39:05, Habib Virji wrote: > Thanks garykac, for having a look. Can you ...
6 years ago (2014-12-02 19:14:04 UTC) #39
Rick Byers
On 2014/12/02 19:14:04, garykac wrote: > On 2014/12/02 16:39:05, Habib Virji wrote: > > Thanks ...
6 years ago (2014-12-03 16:24:43 UTC) #40
Wez
On 2014/12/03 16:24:43, Rick Byers wrote: > On 2014/12/02 19:14:04, garykac wrote: > > On ...
6 years ago (2014-12-03 17:55:33 UTC) #41
Habib Virji
Closed, since have not heard from anyone. Please suggest if there are some consensus.
6 years ago (2014-12-17 16:26:36 UTC) #42
Wez
On 2014/12/17 16:26:36, Habib Virji wrote: > Closed, since have not heard from anyone. Please ...
6 years ago (2014-12-22 18:09:56 UTC) #43
Habib Virji
On 2014/12/22 18:09:56, Wez wrote: > On 2014/12/17 16:26:36, Habib Virji wrote: > > Closed, ...
5 years, 11 months ago (2014-12-30 17:15:48 UTC) #44
Wez
Thanks for updating this and apologies for the delay in re-reviewing it. Rick, Kevin, do ...
5 years, 11 months ago (2015-01-08 01:14:48 UTC) #45
Habib Virji
Thanks Wez and sorry for the late response. I have updated code. New patch has ...
5 years, 11 months ago (2015-01-12 15:34:17 UTC) #46
dgozman
https://codereview.chromium.org/663523002/diff/160001/Source/devtools/protocol.json File Source/devtools/protocol.json (right): https://codereview.chromium.org/663523002/diff/160001/Source/devtools/protocol.json#newcode4301 Source/devtools/protocol.json:4301: { "name": "code", "type": "integer", "optional": true, "description": "Unique ...
5 years, 11 months ago (2015-01-12 15:48:16 UTC) #47
Habib Virji
https://codereview.chromium.org/663523002/diff/160001/Source/devtools/protocol.json File Source/devtools/protocol.json (right): https://codereview.chromium.org/663523002/diff/160001/Source/devtools/protocol.json#newcode4301 Source/devtools/protocol.json:4301: { "name": "code", "type": "integer", "optional": true, "description": "Unique ...
5 years, 11 months ago (2015-01-12 15:58:19 UTC) #48
Habib Virji
@wez:ping
5 years, 11 months ago (2015-01-16 10:45:56 UTC) #49
Wez
This looks to be heading in the right direction - thanks for continuing to work ...
5 years, 11 months ago (2015-01-17 02:35:11 UTC) #50
Rick Byers
Sorry for the delay in chiming in. To help you get faster reviews from a ...
5 years, 11 months ago (2015-01-20 14:49:57 UTC) #52
bokan
https://codereview.chromium.org/663523002/diff/180001/LayoutTests/fast/events/keyboardevent-code.html File LayoutTests/fast/events/keyboardevent-code.html (right): https://codereview.chromium.org/663523002/diff/180001/LayoutTests/fast/events/keyboardevent-code.html#newcode7 LayoutTests/fast/events/keyboardevent-code.html:7: <body> <head>,<body>,<html> should be omitted. See http://www.chromium.org/blink/coding-style/layout-test-style-guidelines#TOC-html-head-body- https://codereview.chromium.org/663523002/diff/180001/LayoutTests/fast/events/keyboardevent-code.html#newcode14 LayoutTests/fast/events/keyboardevent-code.html:14: ...
5 years, 11 months ago (2015-01-20 17:05:59 UTC) #53
Habib Virji
Thanks wez/rbyers/bokan for reviewing. I am working on the changes suggested, and will upload changes ...
5 years, 11 months ago (2015-01-20 17:22:53 UTC) #54
Habib Virji
Sorry for delay in updating. Done following changes. - Updated test for keypress and keyp ...
5 years, 11 months ago (2015-01-22 16:01:31 UTC) #55
bokan
lgtm modulo URL mocking issues. https://codereview.chromium.org/663523002/diff/200001/Source/web/tests/KeyboardTest.cpp File Source/web/tests/KeyboardTest.cpp (right): https://codereview.chromium.org/663523002/diff/200001/Source/web/tests/KeyboardTest.cpp#newcode124 Source/web/tests/KeyboardTest.cpp:124: const std::string baseURL("http://www.test5.com/"); You'll ...
5 years, 11 months ago (2015-01-23 15:35:25 UTC) #56
Habib Virji
Thanks bokan addressed below comments. https://codereview.chromium.org/663523002/diff/200001/Source/web/tests/KeyboardTest.cpp File Source/web/tests/KeyboardTest.cpp (right): https://codereview.chromium.org/663523002/diff/200001/Source/web/tests/KeyboardTest.cpp#newcode124 Source/web/tests/KeyboardTest.cpp:124: const std::string baseURL("http://www.test5.com/"); On ...
5 years, 11 months ago (2015-01-23 15:58:16 UTC) #57
Rick Byers
A few nits about the public API comments / names (since it's important to be ...
5 years, 11 months ago (2015-01-23 20:38:30 UTC) #58
Rick Byers
5 years, 11 months ago (2015-01-23 20:40:17 UTC) #59
Wez
https://codereview.chromium.org/663523002/diff/220001/public/web/WebViewClient.h File public/web/WebViewClient.h (right): https://codereview.chromium.org/663523002/diff/220001/public/web/WebViewClient.h#newcode139 public/web/WebViewClient.h:139: virtual WebString domCodeStringFromEnum(int domCode) { return ""; } On ...
5 years, 11 months ago (2015-01-23 20:59:49 UTC) #60
kpschoedel
On 2015/01/23 20:59:49, Wez wrote: > IMO "DOM code string" and "DOM code enum" make ...
5 years, 11 months ago (2015-01-23 21:07:04 UTC) #61
Habib Virji
@dgozman: Will it be okay for you to review Source/devtools changes? The changes are due ...
5 years, 11 months ago (2015-01-26 11:06:52 UTC) #62
Habib Virji
Thanks Rick, Wez and Kevin for reviewing. I have updated comments and have followed naming ...
5 years, 11 months ago (2015-01-26 11:32:35 UTC) #64
Habib Virji
Thanks Rick, Wez and Kevin for reviewing. I have updated comments and have followed naming ...
5 years, 11 months ago (2015-01-26 11:32:41 UTC) #65
Habib Virji
@Mike West: Can you please review web and platform related changes for this CL. Thanks.
5 years, 11 months ago (2015-01-26 11:34:26 UTC) #66
dgozman
core/inspector lgtm +pfeldman@ for devtools/protocol.json
5 years, 11 months ago (2015-01-26 16:46:32 UTC) #68
pfeldman
devtools lgtm
5 years, 10 months ago (2015-01-29 10:28:42 UTC) #70
Habib Virji
Code has been updated as Antoine (piman) has suggested to use blink::Platform instead of WebViewClient. ...
5 years, 10 months ago (2015-01-29 11:02:50 UTC) #71
Mike West
https://codereview.chromium.org/663523002/diff/260001/Source/core/events/KeyboardEvent.cpp File Source/core/events/KeyboardEvent.cpp (right): https://codereview.chromium.org/663523002/diff/260001/Source/core/events/KeyboardEvent.cpp#newcode125 Source/core/events/KeyboardEvent.cpp:125: const String& keyIdentifier, const String& code, unsigned location, bool ...
5 years, 10 months ago (2015-01-29 11:49:35 UTC) #72
Habib Virji
Thanks Mike, have replied to your comments inline. https://codereview.chromium.org/663523002/diff/260001/Source/core/events/KeyboardEvent.cpp File Source/core/events/KeyboardEvent.cpp (right): https://codereview.chromium.org/663523002/diff/260001/Source/core/events/KeyboardEvent.cpp#newcode125 Source/core/events/KeyboardEvent.cpp:125: const ...
5 years, 10 months ago (2015-01-29 12:24:14 UTC) #73
Rick Byers
Thanks for moving the API to blink::Platform - I agree this is better, sorry I ...
5 years, 10 months ago (2015-01-29 21:11:10 UTC) #74
Mike West
LGTM. Thanks for the explanations.
5 years, 10 months ago (2015-01-30 18:42:15 UTC) #75
Rick Byers
On 2015/01/30 18:42:15, Mike West wrote: > LGTM. Thanks for the explanations. Great. public/ also ...
5 years, 10 months ago (2015-02-01 23:25:48 UTC) #76
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/663523002/320001
5 years, 10 months ago (2015-02-03 17:48:12 UTC) #78
commit-bot: I haz the power
Try jobs failed on following builders: mac_blink_rel on tryserver.blink (http://build.chromium.org/p/tryserver.blink/builders/mac_blink_rel/builds/41062)
5 years, 10 months ago (2015-02-03 20:23:10 UTC) #80
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/663523002/320001
5 years, 10 months ago (2015-02-04 17:13:42 UTC) #82
commit-bot: I haz the power
5 years, 10 months ago (2015-02-04 17:15:06 UTC) #83
Message was sent while issue was closed.
Committed patchset #17 (id:320001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=189514

Powered by Google App Engine
This is Rietveld 408576698