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

Issue 20034002: Add support for KeyboardEvent.location attribute (Closed)

Created:
7 years, 5 months ago by do-not-use
Modified:
7 years, 4 months ago
CC:
blink-reviews, eae+blinkwatch, apavlov+blink_chromium.org, adamk+blink_chromium.org, aandrey+blink_chromium.org, Nils Barth (inactive), caseq+blink_chromium.org, Nate Chapin, yurys+blink_chromium.org, abarth-chromium, marja+watch_chromium.org, dglazkov+blink, devtools-reviews_chromium.org, loislo+blink_chromium.org, lushnikov+blink_chromium.org, eustas+blink_chromium.org, paulirish+reviews_chromium.org, haraken, kojih, jsbell+bindings_chromium.org, alph+blink_chromium.org, vsevik+blink_chromium.org, pfeldman+blink_chromium.org, lgombos
Visibility:
Public.

Description

Add support for KeyboardEvent.location attribute Add support for KeyboardEvent.location attribute as per the latest specification: http://dev.w3.org/2006/webapi/DOM-Level-3-Events/html/DOM3-Events.html#events-KeyboardEvent IE10 and Firefox 22 both support KeyboardEvent.location already. KeyboardEvent.keyLocation is now marked as deprecated so as to not break backward compatibility and so that we can track its usage. The V8 bindings generator was extended to better support [ImplementedAs] and [DeprecateAs] extended attribute for attributes that have [InitializedByEventConstructor] extended attribute. Note that several other attributes of KeyboardEvent still don't match the specification. BUG=263308 R=arv@chromium.org, darin@chromium.org, garykac@chromium.org, haraken@chromium.org, ojan@chromium.org, pfeldman@chromium.org Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=155170

Patch Set 1 #

Total comments: 4

Patch Set 2 : Take Kentaro's feedback into consideration #

Total comments: 2

Patch Set 3 : Fix nits #

Total comments: 4

Patch Set 4 : Fix nit #

Total comments: 1

Patch Set 5 : Rebase on master #

Patch Set 6 : Rebase on master #

Unified diffs Side-by-side diffs Delta from patch set Stats (+246 lines, -125 lines) Patch
M LayoutTests/fast/events/arrow-keys-on-body.html View 2 chunks +2 lines, -2 lines 0 comments Download
M LayoutTests/fast/events/arrow-keys-on-body-expected.txt View 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/fast/events/constructors/keyboard-event-constructor.html View 3 chunks +38 lines, -32 lines 0 comments Download
M LayoutTests/fast/events/constructors/keyboard-event-constructor-expected.txt View 4 chunks +36 lines, -31 lines 0 comments Download
M LayoutTests/fast/events/init-events-expected.txt View 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/fast/events/js-keyboard-event-creation.html View 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/fast/events/keydown-leftright-keys.html View 2 chunks +2 lines, -2 lines 0 comments Download
M LayoutTests/fast/events/keydown-leftright-keys-expected.txt View 1 chunk +6 lines, -6 lines 0 comments Download
M LayoutTests/fast/events/keydown-numpad-keys-expected.txt View 1 chunk +20 lines, -20 lines 0 comments Download
M LayoutTests/fast/events/script-tests/init-events.js View 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/fast/events/script-tests/keydown-numpad-keys.js View 2 chunks +2 lines, -2 lines 0 comments Download
M Source/bindings/scripts/deprecated_code_generator_v8.pm View 1 2 3 4 5 1 chunk +9 lines, -1 line 0 comments Download
M Source/bindings/tests/idls/TestExtendedEvent.idl View 1 2 3 1 chunk +4 lines, -1 line 0 comments Download
M Source/bindings/tests/results/V8TestExtendedEvent.h View 1 2 3 4 5 3 chunks +4 lines, -0 lines 0 comments Download
M Source/bindings/tests/results/V8TestExtendedEvent.cpp View 1 3 chunks +90 lines, -1 line 0 comments Download
M Source/core/dom/KeyboardEvent.h View 1 2 3 4 3 chunks +7 lines, -7 lines 0 comments Download
M Source/core/dom/KeyboardEvent.cpp View 1 2 3 4 5 6 chunks +8 lines, -8 lines 0 comments Download
M Source/core/dom/KeyboardEvent.idl View 1 2 3 4 5 2 chunks +3 lines, -2 lines 0 comments Download
M Source/core/page/UseCounter.h View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/page/UseCounter.cpp View 1 2 3 4 5 1 chunk +4 lines, -0 lines 0 comments Download
M Source/devtools/front_end/ExtensionAPI.js View 1 chunk +1 line, -1 line 0 comments Download
M Source/devtools/front_end/ExtensionServer.js View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M Source/web/WebInputEventConversion.cpp View 1 2 3 4 1 chunk +3 lines, -3 lines 0 comments Download
M Source/web/tests/WebInputEventFactoryTestGtk.cpp View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 25 (0 generated)
do-not-use
7 years, 5 months ago (2013-07-23 08:45:05 UTC) #1
haraken
https://codereview.chromium.org/20034002/diff/1/Source/bindings/scripts/deprecated_code_generator_v8.pm File Source/bindings/scripts/deprecated_code_generator_v8.pm (right): https://codereview.chromium.org/20034002/diff/1/Source/bindings/scripts/deprecated_code_generator_v8.pm#newcode2715 Source/bindings/scripts/deprecated_code_generator_v8.pm:2715: $code .= " " . GenerateDeprecationNotification($deprecation); How about generating ...
7 years, 5 months ago (2013-07-23 09:21:29 UTC) #2
do-not-use
https://codereview.chromium.org/20034002/diff/1/Source/bindings/scripts/deprecated_code_generator_v8.pm File Source/bindings/scripts/deprecated_code_generator_v8.pm (right): https://codereview.chromium.org/20034002/diff/1/Source/bindings/scripts/deprecated_code_generator_v8.pm#newcode2715 Source/bindings/scripts/deprecated_code_generator_v8.pm:2715: $code .= " " . GenerateDeprecationNotification($deprecation); On 2013/07/23 09:21:30, ...
7 years, 5 months ago (2013-07-23 10:12:03 UTC) #3
do-not-use
On 2013/07/23 09:21:29, haraken wrote: > https://codereview.chromium.org/20034002/diff/1/Source/bindings/scripts/deprecated_code_generator_v8.pm > File Source/bindings/scripts/deprecated_code_generator_v8.pm (right): > > https://codereview.chromium.org/20034002/diff/1/Source/bindings/scripts/deprecated_code_generator_v8.pm#newcode2715 > ...
7 years, 5 months ago (2013-07-23 10:15:45 UTC) #4
haraken
LGTM, but we should wait for an approval from an API owner. https://codereview.chromium.org/20034002/diff/8001/Source/bindings/scripts/deprecated_code_generator_v8.pm File Source/bindings/scripts/deprecated_code_generator_v8.pm ...
7 years, 5 months ago (2013-07-23 10:20:56 UTC) #5
arv (Not doing code reviews)
Adding Ojan who has looked at these things before
7 years, 5 months ago (2013-07-23 17:12:55 UTC) #6
arv (Not doing code reviews)
Can you add a test that accesses keyLocation so that we are testing the deprecation ...
7 years, 5 months ago (2013-07-23 17:33:22 UTC) #7
do-not-use
On 2013/07/23 17:33:22, arv wrote: > Can you add a test that accesses keyLocation so ...
7 years, 5 months ago (2013-07-23 19:42:02 UTC) #8
do-not-use
https://codereview.chromium.org/20034002/diff/14001/Source/devtools/front_end/ExtensionAPI.js File Source/devtools/front_end/ExtensionAPI.js (right): https://codereview.chromium.org/20034002/diff/14001/Source/devtools/front_end/ExtensionAPI.js#newcode741 Source/devtools/front_end/ExtensionAPI.js:741: location: event.location On 2013/07/23 17:33:22, arv wrote: > Maybe ...
7 years, 5 months ago (2013-07-23 19:44:02 UTC) #9
arv (Not doing code reviews)
LGTM https://codereview.chromium.org/20034002/diff/14001/Source/devtools/front_end/ExtensionAPI.js File Source/devtools/front_end/ExtensionAPI.js (right): https://codereview.chromium.org/20034002/diff/14001/Source/devtools/front_end/ExtensionAPI.js#newcode741 Source/devtools/front_end/ExtensionAPI.js:741: location: event.location On 2013/07/23 19:44:03, Christophe Dumez wrote: ...
7 years, 5 months ago (2013-07-23 20:07:16 UTC) #10
ojan
This needs to go through the blink launch process before being committed. Specifically, since this ...
7 years, 5 months ago (2013-07-24 03:43:30 UTC) #11
do-not-use
On 2013/07/24 03:43:30, ojan wrote: > This needs to go through the blink launch process ...
7 years, 5 months ago (2013-07-24 08:58:56 UTC) #12
do-not-use
On 2013/07/24 08:58:56, Christophe Dumez wrote: > On 2013/07/24 03:43:30, ojan wrote: > > This ...
7 years, 5 months ago (2013-07-25 06:34:15 UTC) #13
ojan
I'd like wez or garykac to sign off on all key event related patches and ...
7 years, 5 months ago (2013-07-25 17:38:56 UTC) #14
garykac
https://codereview.chromium.org/20034002/diff/24001/LayoutTests/fast/events/keydown-leftright-keys-expected.txt File LayoutTests/fast/events/keydown-leftright-keys-expected.txt (right): https://codereview.chromium.org/20034002/diff/24001/LayoutTests/fast/events/keydown-leftright-keys-expected.txt#newcode9 LayoutTests/fast/events/keydown-leftright-keys-expected.txt:9: PASS lastKeyboardEvent.location is KEY_LOCATION_LEFT This should be DOM_KEY_LOCATION_LEFT (and ...
7 years, 5 months ago (2013-07-25 22:35:52 UTC) #15
do-not-use
On 2013/07/25 22:35:52, garykac wrote: > https://codereview.chromium.org/20034002/diff/24001/LayoutTests/fast/events/keydown-leftright-keys-expected.txt > File LayoutTests/fast/events/keydown-leftright-keys-expected.txt (right): > > https://codereview.chromium.org/20034002/diff/24001/LayoutTests/fast/events/keydown-leftright-keys-expected.txt#newcode9 > ...
7 years, 5 months ago (2013-07-26 07:12:07 UTC) #16
garykac
lgtm
7 years, 5 months ago (2013-07-26 15:39:15 UTC) #17
do-not-use
On 2013/07/26 15:39:15, garykac wrote: > lgtm Thanks garykac@. Could an API owner please give ...
7 years, 5 months ago (2013-07-26 16:21:19 UTC) #18
darin (slow to review)
LGTM
7 years, 5 months ago (2013-07-26 21:54:43 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ch.dumez@sisa.samsung.com/20034002/33001
7 years, 4 months ago (2013-07-27 07:22:37 UTC) #20
commit-bot: I haz the power
Retried try job too often on blink_presubmit for step(s) presubmit http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=blink_presubmit&number=4366
7 years, 4 months ago (2013-07-27 07:34:14 UTC) #21
do-not-use
On 2013/07/27 07:34:14, I haz the power (commit-bot) wrote: > Retried try job too often ...
7 years, 4 months ago (2013-07-27 07:50:43 UTC) #22
pfeldman
devtools lgtm
7 years, 4 months ago (2013-07-30 12:30:15 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ch.dumez@sisa.samsung.com/20034002/46001
7 years, 4 months ago (2013-07-30 12:55:42 UTC) #24
do-not-use
7 years, 4 months ago (2013-07-30 17:53:55 UTC) #25
Message was sent while issue was closed.
Committed patchset #6 manually as r155170 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698