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

Issue 1072193004: Take GetCharacterFromKeyCode() out behind the barn. (Closed)

Created:
5 years, 8 months ago by kpschoedel
Modified:
5 years, 3 months ago
Reviewers:
sadrul, jam, Wez
CC:
chromium-reviews, mlamouri+watch-content_chromium.org, creis+watch_chromium.org, tdresser+watch_chromium.org, tfarina, nasko+codewatch_chromium.org, darin-cc_chromium.org, mkwst+moarreviews-renderer_chromium.org, kalyank, jdduke+watch_chromium.org, ozone-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Remove GetCharacterFromKeyCode(). Remaining uses of GetCharacterFromKeyCode() are replaced with DomCodeToUsLayoutMeaning() to make explicit that the mapping uses a fixed US English layout and not the user's current layout, and to use ui::DomCode in preference to the legacy Windows-based ui::KeyboardCode. BUG=444048 Committed: https://crrev.com/121b8680676123f617ebc69770cbb114c030fbd3 Cr-Commit-Position: refs/heads/master@{#326553} Committed: https://crrev.com/db1a9b2be68e046fdad81b4f17deb9fdc515e94e Cr-Commit-Position: refs/heads/master@{#347147}

Patch Set 1 #

Total comments: 6

Patch Set 2 : address review comments (Wez) #

Patch Set 3 : cleanup #

Patch Set 4 : fix test #

Patch Set 5 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+23 lines, -218 lines) Patch
M content/renderer/render_view_browsertest.cc View 1 2 3 4 3 chunks +8 lines, -6 lines 0 comments Download
M ui/base/accelerators/accelerator.cc View 1 2 3 4 1 chunk +2 lines, -1 line 0 comments Download
M ui/events/keycodes/keyboard_code_conversion.h View 1 2 3 4 3 chunks +3 lines, -9 lines 0 comments Download
M ui/events/keycodes/keyboard_code_conversion.cc View 1 2 3 4 2 chunks +7 lines, -200 lines 0 comments Download
M ui/events/test/event_generator.cc View 1 2 3 4 1 chunk +2 lines, -1 line 0 comments Download
M ui/views/controls/menu/menu_event_dispatcher.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 40 (15 generated)
kpschoedel
5 years, 8 months ago (2015-04-21 21:22:33 UTC) #2
tfarina
Could you explain in your CL description, what are you doing in this change? From ...
5 years, 8 months ago (2015-04-21 21:39:00 UTC) #3
Wez
Great to get rid of this, but it seems we're using these US-layout hard-coded APIs ...
5 years, 8 months ago (2015-04-21 22:08:46 UTC) #4
kpschoedel
On 2015/04/21 22:08:46, Wez wrote: > Great to get rid of this, but it seems ...
5 years, 8 months ago (2015-04-21 22:15:26 UTC) #5
Wez
lgtm
5 years, 8 months ago (2015-04-21 22:19:37 UTC) #6
kpschoedel
https://codereview.chromium.org/1072193004/diff/1/ui/events/ozone/layout/xkb/xkb_keyboard_layout_engine.cc File ui/events/ozone/layout/xkb/xkb_keyboard_layout_engine.cc (right): https://codereview.chromium.org/1072193004/diff/1/ui/events/ozone/layout/xkb/xkb_keyboard_layout_engine.cc#newcode791 ui/events/ozone/layout/xkb/xkb_keyboard_layout_engine.cc:791: // If the Control key is down, only allow ...
5 years, 8 months ago (2015-04-21 22:36:38 UTC) #7
sadrul
rs lgtm
5 years, 8 months ago (2015-04-21 22:38:58 UTC) #8
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1072193004/20001
5 years, 8 months ago (2015-04-22 14:18:39 UTC) #11
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: ios_dbg_simulator_ninja on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios_dbg_simulator_ninja/builds/17273) ios_rel_device_ninja on ...
5 years, 8 months ago (2015-04-22 14:26:16 UTC) #13
kpschoedel
There are two instances where the DomCodeToUsLayoutCharacter(UsLayoutKeyboardCodeToDomCode()) combination differs from GetCharacterFromKeyCode(). First, for VKEY_DELETE, GetCharacterFromKeyCode() ...
5 years, 8 months ago (2015-04-22 16:06:59 UTC) #14
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1072193004/40001
5 years, 8 months ago (2015-04-22 16:07:41 UTC) #17
kpschoedel
+jam@ for content/renderer/render_view_browsertest.cc (Reassign if desired; you appear most often in the files' commit log.)
5 years, 8 months ago (2015-04-22 17:43:30 UTC) #19
Wez
On 2015/04/22 16:06:59, kpschoedel wrote: > There are two instances where the > DomCodeToUsLayoutCharacter(UsLayoutKeyboardCodeToDomCode()) combination ...
5 years, 8 months ago (2015-04-22 21:29:27 UTC) #20
jam
On 2015/04/22 17:43:30, kpschoedel wrote: > +jam@ for content/renderer/render_view_browsertest.cc > (Reassign if desired; you appear ...
5 years, 8 months ago (2015-04-22 22:35:27 UTC) #21
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1072193004/60001
5 years, 8 months ago (2015-04-23 14:48:42 UTC) #24
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 8 months ago (2015-04-23 16:41:35 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1072193004/60001
5 years, 8 months ago (2015-04-23 17:07:58 UTC) #28
commit-bot: I haz the power
Committed patchset #4 (id:60001)
5 years, 8 months ago (2015-04-23 17:09:55 UTC) #29
commit-bot: I haz the power
Patchset 4 (id:??) landed as https://crrev.com/121b8680676123f617ebc69770cbb114c030fbd3 Cr-Commit-Position: refs/heads/master@{#326553}
5 years, 8 months ago (2015-04-23 17:10:50 UTC) #30
kpschoedel
A revert of this CL (patchset #4 id:60001) has been created in https://codereview.chromium.org/1085733007/ by kpschoedel@chromium.org. ...
5 years, 8 months ago (2015-04-24 15:13:23 UTC) #31
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1072193004/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1072193004/80001
5 years, 3 months ago (2015-09-02 16:06:15 UTC) #33
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 3 months ago (2015-09-02 17:55:29 UTC) #35
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1072193004/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1072193004/80001
5 years, 3 months ago (2015-09-03 13:40:48 UTC) #38
commit-bot: I haz the power
Committed patchset #5 (id:80001)
5 years, 3 months ago (2015-09-03 13:45:20 UTC) #39
commit-bot: I haz the power
5 years, 3 months ago (2015-09-03 13:46:09 UTC) #40
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/db1a9b2be68e046fdad81b4f17deb9fdc515e94e
Cr-Commit-Position: refs/heads/master@{#347147}

Powered by Google App Engine
This is Rietveld 408576698