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

Issue 641753003: DOM Level 3 .code and .key value enumerations. (Closed)

Created:
6 years, 2 months ago by kpschoedel
Modified:
6 years ago
CC:
chromium-reviews, tdresser+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

DOM Level 3 .code and .key value enumerations. R=garykac@chromium.org,sadrul@chromium.org BUG=430191 Committed: https://crrev.com/b0eefc502609ba8060df6c8e71123adeeb9fcf83 Cr-Commit-Position: refs/heads/master@{#305306}

Patch Set 1 #

Total comments: 2

Patch Set 2 : address review comments (garykac) #

Patch Set 3 : Use enum class #

Patch Set 4 : fix macro case KeyX -> KEY_X #

Total comments: 1

Patch Set 5 : separate code and key tables #

Patch Set 6 : use native_codes table to define |code| #

Patch Set 7 : update tests, add codes #

Patch Set 8 : fix duplicate code for Windows #

Patch Set 9 : remove generator script #

Total comments: 4

Patch Set 10 : fix lookup test #

Patch Set 11 : convert to macro-based tables #

Patch Set 12 : add code for unicode keys #

Total comments: 1

Patch Set 13 : Wrap or trim lines to appease presubmit. #

Patch Set 14 : fix accidental deletion when wrapping lines #

Unified diffs Side-by-side diffs Delta from patch set Stats (+955 lines, -280 lines) Patch
M ui/events/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +3 lines, -0 lines 0 comments Download
M ui/events/events.gyp View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +3 lines, -0 lines 0 comments Download
A ui/events/keycodes/dom3/dom_code.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +18 lines, -0 lines 0 comments Download
A ui/events/keycodes/dom3/dom_key.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +18 lines, -0 lines 0 comments Download
A ui/events/keycodes/dom3/dom_key_data.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +376 lines, -0 lines 0 comments Download
M ui/events/keycodes/dom4/keycode_converter.h View 1 2 3 4 5 6 7 8 9 10 4 chunks +24 lines, -1 line 0 comments Download
M ui/events/keycodes/dom4/keycode_converter.cc View 1 2 3 4 5 6 7 8 9 10 4 chunks +98 lines, -4 lines 0 comments Download
M ui/events/keycodes/dom4/keycode_converter_data.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 4 chunks +369 lines, -274 lines 0 comments Download
M ui/events/keycodes/dom4/keycode_converter_unittest.cc View 1 2 3 4 5 6 7 8 9 10 3 chunks +46 lines, -1 line 0 comments Download

Messages

Total messages: 39 (9 generated)
kpschoedel
6 years, 2 months ago (2014-10-08 21:43:08 UTC) #1
garykac
A general comment before digging into anything else. The 'dom4' directory name was poorly chosen ...
6 years, 2 months ago (2014-10-14 00:25:04 UTC) #2
garykac
https://codereview.chromium.org/641753003/diff/1/ui/events/keycodes/dom4/keycode_converter.h File ui/events/keycodes/dom4/keycode_converter.h (right): https://codereview.chromium.org/641753003/diff/1/ui/events/keycodes/dom4/keycode_converter.h#newcode33 ui/events/keycodes/dom4/keycode_converter.h:33: // https://dvcs.w3.org/hg/d4e/raw-file/tip/source_respec.htm // The DOM3 Events |code| values as ...
6 years, 2 months ago (2014-10-14 00:25:21 UTC) #3
kpschoedel
New files moved to dom3/ Looks like 'enum class' will be available soon, so I'm ...
6 years, 2 months ago (2014-10-20 17:54:05 UTC) #4
kpschoedel
C++11 enum class is now permitted in Chromium. http://chromium-cpp.appspot.com/
6 years, 2 months ago (2014-10-20 18:23:39 UTC) #5
Wez
https://codereview.chromium.org/641753003/diff/60001/ui/events/keycodes/dom3/dom_values.txt File ui/events/keycodes/dom3/dom_values.txt (right): https://codereview.chromium.org/641753003/diff/60001/ui/events/keycodes/dom3/dom_values.txt#newcode63 ui/events/keycodes/dom3/dom_values.txt:63: 0x000 -None -None "No value" Putting code and key ...
6 years, 2 months ago (2014-10-22 21:29:32 UTC) #7
kpschoedel
On 2014/10/22 21:29:32, Wez wrote: > Putting code and key in the same table implies ...
6 years, 2 months ago (2014-10-22 21:58:17 UTC) #8
kpschoedel
Version with independent .code and .key definitions.
6 years, 2 months ago (2014-10-23 21:07:22 UTC) #9
Wez
On 2014/10/23 21:07:22, kpschoedel wrote: > Version with independent .code and .key definitions. We already ...
6 years, 2 months ago (2014-10-23 21:14:39 UTC) #10
kpschoedel
On 2014/10/23 21:14:39, Wez wrote: > We already have a table w/ native<->code mappings in ...
6 years, 2 months ago (2014-10-23 21:29:29 UTC) #11
kpschoedel
This version builds the ui::DomCode enum with USB values from the native_code table. I haven't ...
6 years, 2 months ago (2014-10-23 22:20:22 UTC) #12
kpschoedel
This should be up-to-date with review requests now. For the DOM3 .code names that were ...
6 years, 1 month ago (2014-10-24 17:31:49 UTC) #13
Wez
Are the .txt tables sufficiently more readable to justify the extra complexity of the generator.py ...
6 years, 1 month ago (2014-10-24 23:41:00 UTC) #15
kpschoedel
On 2014/10/24 23:41:00, Wez wrote: > Are the .txt tables sufficiently more readable to justify ...
6 years, 1 month ago (2014-10-25 00:41:26 UTC) #16
kpschoedel
Dropped the generator script.
6 years, 1 month ago (2014-10-28 19:44:20 UTC) #17
kpschoedel
Ping.
6 years, 1 month ago (2014-10-29 21:48:13 UTC) #18
Wez
https://codereview.chromium.org/641753003/diff/180001/ui/events/keycodes/dom3/dom_key.h File ui/events/keycodes/dom3/dom_key.h (right): https://codereview.chromium.org/641753003/diff/180001/ui/events/keycodes/dom3/dom_key.h#newcode47 ui/events/keycodes/dom3/dom_key.h:47: enum class DomKey { As for the keycode conversion ...
6 years, 1 month ago (2014-10-31 21:12:52 UTC) #19
kpschoedel
https://codereview.chromium.org/641753003/diff/180001/ui/events/keycodes/dom3/dom_key.h File ui/events/keycodes/dom3/dom_key.h (right): https://codereview.chromium.org/641753003/diff/180001/ui/events/keycodes/dom3/dom_key.h#newcode47 ui/events/keycodes/dom3/dom_key.h:47: enum class DomKey { Sure; I had included explicit ...
6 years, 1 month ago (2014-10-31 21:36:52 UTC) #20
kpschoedel
Switched to macro-based tables: use keycode_converter_data.h for DomCode, and added dom_key_data.h in the same style ...
6 years, 1 month ago (2014-11-03 16:39:50 UTC) #22
alexst (slow to review)
Reviewer ping, it was almost 3 weeks since the last update. Please don't neglect this, ...
6 years, 1 month ago (2014-11-20 15:36:39 UTC) #24
garykac
Overall lgtm. Thanks for doing this. https://codereview.chromium.org/641753003/diff/260001/ui/events/keycodes/dom4/keycode_converter_data.h File ui/events/keycodes/dom4/keycode_converter_data.h (right): https://codereview.chromium.org/641753003/diff/260001/ui/events/keycodes/dom4/keycode_converter_data.h#newcode12 ui/events/keycodes/dom4/keycode_converter_data.h:12: // [1] DOM ...
6 years, 1 month ago (2014-11-20 21:57:56 UTC) #25
Wez
LGTM ++
6 years, 1 month ago (2014-11-20 22:06:34 UTC) #26
sadrul
rubberstamp lgtm
6 years, 1 month ago (2014-11-21 18:26:05 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/641753003/260001
6 years, 1 month ago (2014-11-21 18:27:19 UTC) #29
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/25908)
6 years, 1 month ago (2014-11-21 18:32:17 UTC) #31
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/641753003/280001
6 years, 1 month ago (2014-11-21 20:30:49 UTC) #33
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel_ng on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_ng/builds/8144)
6 years, 1 month ago (2014-11-21 21:25:49 UTC) #35
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/641753003/300001
6 years, 1 month ago (2014-11-21 21:35:11 UTC) #37
commit-bot: I haz the power
Committed patchset #14 (id:300001)
6 years, 1 month ago (2014-11-21 22:32:14 UTC) #38
commit-bot: I haz the power
6 years, 1 month ago (2014-11-21 22:32:57 UTC) #39
Message was sent while issue was closed.
Patchset 14 (id:??) landed as
https://crrev.com/b0eefc502609ba8060df6c8e71123adeeb9fcf83
Cr-Commit-Position: refs/heads/master@{#305306}

Powered by Google App Engine
This is Rietveld 408576698