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

Issue 822383002: Ozone: Add KeyMap support on Non-ChromeOS builds. (Closed)

Created:
5 years, 12 months ago by kalyank
Modified:
5 years, 11 months ago
Reviewers:
spang, kpschoedel
CC:
chromium-reviews, tdresser+watch_chromium.org, 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

Ozone: Add KeyMap support on Non-ChromeOS builds. SetCurrentLayoutByName has needed support for ChromeOS. It would be nice to have needed non-ChromeOS support, so that other Ozone implementations can re-use all this work. This patch adds needed support for retrieving Key maps from the passed string. Committed: https://crrev.com/c288ff747a395a18dc0103561c29f08c7d8de9ce Cr-Commit-Position: refs/heads/master@{#310110}

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+14 lines, -8 lines) Patch
M ui/events/ozone/layout/xkb/xkb_keyboard_layout_engine.cc View 2 chunks +14 lines, -8 lines 2 comments Download

Messages

Total messages: 16 (4 generated)
kalyank
5 years, 12 months ago (2014-12-26 06:26:33 UTC) #2
spang
lgtm
5 years, 11 months ago (2015-01-02 16:35:49 UTC) #3
kalyank
On 2015/01/02 16:35:49, spang wrote: > lgtm The build failures don't seem to be related, ...
5 years, 11 months ago (2015-01-05 20:33:34 UTC) #4
spang
On 2015/01/05 20:33:34, kalyank wrote: > On 2015/01/02 16:35:49, spang wrote: > > lgtm > ...
5 years, 11 months ago (2015-01-06 00:33:38 UTC) #5
kalyank
On 2015/01/06 00:33:38, spang wrote: > On 2015/01/05 20:33:34, kalyank wrote: > > On 2015/01/02 ...
5 years, 11 months ago (2015-01-06 10:54:15 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/822383002/1
5 years, 11 months ago (2015-01-06 18:01:16 UTC) #9
commit-bot: I haz the power
Committed patchset #1 (id:1)
5 years, 11 months ago (2015-01-06 18:13:19 UTC) #10
spang
On 2015/01/06 18:13:19, I haz the power (commit-bot) wrote: > Committed patchset #1 (id:1) Landed ...
5 years, 11 months ago (2015-01-06 18:14:39 UTC) #11
commit-bot: I haz the power
Patchset 1 (id:??) landed as https://crrev.com/c288ff747a395a18dc0103561c29f08c7d8de9ce Cr-Commit-Position: refs/heads/master@{#310110}
5 years, 11 months ago (2015-01-06 18:15:07 UTC) #12
spang
https://codereview.chromium.org/822383002/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/822383002/diff/1/ui/events/ozone/layout/xkb/xkb_keyboard_layout_engine.cc#newcode678 ui/events/ozone/layout/xkb/xkb_keyboard_layout_engine.cc:678: layout_name.c_str(), How did you test this? I'm now confused.. ...
5 years, 11 months ago (2015-01-07 18:09:05 UTC) #14
spang
On 2015/01/07 18:09:05, spang wrote: > https://codereview.chromium.org/822383002/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/822383002/diff/1/ui/events/ozone/layout/xkb/xkb_keyboard_layout_engine.cc#newcode678 > ...
5 years, 11 months ago (2015-01-07 18:10:16 UTC) #15
kpschoedel
5 years, 11 months ago (2015-01-07 18:17:08 UTC) #16
Message was sent while issue was closed.
https://codereview.chromium.org/822383002/diff/1/ui/events/ozone/layout/xkb/x...
File ui/events/ozone/layout/xkb/xkb_keyboard_layout_engine.cc (right):

https://codereview.chromium.org/822383002/diff/1/ui/events/ozone/layout/xkb/x...
ui/events/ozone/layout/xkb/xkb_keyboard_layout_engine.cc:678:
layout_name.c_str(),
On 2015/01/07 18:09:05, spang wrote:
> How did you test this? I'm now confused.. xkb_map_new_from_string needs a
keymap
> file, not a name, right?

xkb_map_new_from_string() takes a layout description (like the output of
`setxkbmap -print | xkbcomp -xkb - -`). We don't currently have a spec for what
the ‘name’ in KeyboardLayoutEngine::SetCurrentLayoutByName() is, so for the
present it's functionally the same as IME SetCurrentKeyboardLayoutByName().

Powered by Google App Engine
This is Rietveld 408576698