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

Issue 2645703005: Add a KeyboardLayoutEngine::SetCurrentLayoutFromBuffer implementation (Closed)

Created:
3 years, 11 months ago by tonikitoo
Modified:
3 years, 11 months ago
CC:
chromium-reviews, kalyank, ozone-reviews_chromium.org, tdresser+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add a KeyboardLayoutEngine::SetCurrentLayoutFromBuffer implementation Some servers (read Wayland here) do the XKB initialization and provide clients with a file descriptor that can be mmap'ed in order to retrieve the keyboard layout string. Today the method XkbKeyboardLayoutEngine::SetCurrentLayoutByName is (ab)used to support this case (where the client provides the keyboard layout string not the name), which is not ideal. CL adds a method that solely handles this case, cleaning up XkbKeyboardLayoutEngine::SetCurrentLayoutByName. The method will be used later on when the CL that adds keyboard/wayland support lands. BUG=578890 Review-Url: https://codereview.chromium.org/2645703005 Cr-Commit-Position: refs/heads/master@{#445171} Committed: https://chromium.googlesource.com/chromium/src/+/e5a535bb5a2fc99a090f81bde71ed50e974efa60

Patch Set 1 #

Patch Set 2 : . #

Patch Set 3 : . #

Patch Set 4 : . #

Total comments: 4

Patch Set 5 : . #

Patch Set 6 : Add a KeyboardLayoutEngine::SetCurrentLayoutFromBuffer implementation #

Total comments: 6

Patch Set 7 : addressed forney's feedback #

Patch Set 8 : for landing #

Unified diffs Side-by-side diffs Delta from patch set Stats (+39 lines, -21 lines) Patch
M ui/events/ozone/layout/keyboard_layout_engine.h View 1 2 3 4 5 6 1 chunk +6 lines, -0 lines 0 comments Download
M ui/events/ozone/layout/keyboard_layout_engine_unittest.cc View 1 2 3 4 5 1 chunk +2 lines, -1 line 0 comments Download
M ui/events/ozone/layout/no/no_keyboard_layout_engine.h View 1 2 3 4 5 6 1 chunk +2 lines, -0 lines 0 comments Download
M ui/events/ozone/layout/no/no_keyboard_layout_engine.cc View 1 2 3 4 5 6 1 chunk +5 lines, -0 lines 0 comments Download
M ui/events/ozone/layout/stub/stub_keyboard_layout_engine.h View 1 2 3 4 5 6 1 chunk +2 lines, -0 lines 0 comments Download
M ui/events/ozone/layout/stub/stub_keyboard_layout_engine.cc View 1 2 3 4 5 6 2 chunks +6 lines, -2 lines 0 comments Download
M ui/events/ozone/layout/xkb/xkb_keyboard_layout_engine.h View 1 2 3 4 5 6 1 chunk +4 lines, -2 lines 0 comments Download
M ui/events/ozone/layout/xkb/xkb_keyboard_layout_engine.cc View 1 2 3 4 5 6 7 2 chunks +12 lines, -16 lines 0 comments Download

Messages

Total messages: 38 (29 generated)
fwang
informal l g t m
3 years, 11 months ago (2017-01-20 14:11:33 UTC) #6
tonikitoo
PTAL
3 years, 11 months ago (2017-01-20 15:27:54 UTC) #12
spang
https://codereview.chromium.org/2645703005/diff/60001/ui/events/ozone/layout/no/no_keyboard_layout_engine.h File ui/events/ozone/layout/no/no_keyboard_layout_engine.h (right): https://codereview.chromium.org/2645703005/diff/60001/ui/events/ozone/layout/no/no_keyboard_layout_engine.h#newcode22 ui/events/ozone/layout/no/no_keyboard_layout_engine.h:22: bool SetCurrentLayoutFromString(const std::string& keymap_str) override; Can you not say ...
3 years, 11 months ago (2017-01-20 17:41:14 UTC) #21
tonikitoo
https://codereview.chromium.org/2645703005/diff/60001/ui/events/ozone/layout/no/no_keyboard_layout_engine.h File ui/events/ozone/layout/no/no_keyboard_layout_engine.h (right): https://codereview.chromium.org/2645703005/diff/60001/ui/events/ozone/layout/no/no_keyboard_layout_engine.h#newcode22 ui/events/ozone/layout/no/no_keyboard_layout_engine.h:22: bool SetCurrentLayoutFromString(const std::string& keymap_str) override; On 2017/01/20 17:41:14, spang ...
3 years, 11 months ago (2017-01-20 18:58:11 UTC) #24
spang
lgtm
3 years, 11 months ago (2017-01-20 19:00:28 UTC) #27
Michael Forney
https://codereview.chromium.org/2645703005/diff/100001/ui/events/ozone/layout/keyboard_layout_engine.h File ui/events/ozone/layout/keyboard_layout_engine.h (right): https://codereview.chromium.org/2645703005/diff/100001/ui/events/ozone/layout/keyboard_layout_engine.h#newcode42 ui/events/ozone/layout/keyboard_layout_engine.h:42: // that represent keyboard mapping description; returns true on ...
3 years, 11 months ago (2017-01-20 19:31:43 UTC) #29
tonikitoo
https://codereview.chromium.org/2645703005/diff/100001/ui/events/ozone/layout/keyboard_layout_engine.h File ui/events/ozone/layout/keyboard_layout_engine.h (right): https://codereview.chromium.org/2645703005/diff/100001/ui/events/ozone/layout/keyboard_layout_engine.h#newcode42 ui/events/ozone/layout/keyboard_layout_engine.h:42: // that represent keyboard mapping description; returns true on ...
3 years, 11 months ago (2017-01-20 20:01:13 UTC) #32
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2645703005/140001
3 years, 11 months ago (2017-01-20 20:33:19 UTC) #35
commit-bot: I haz the power
3 years, 11 months ago (2017-01-20 21:30:21 UTC) #38
Message was sent while issue was closed.
Committed patchset #8 (id:140001) as
https://chromium.googlesource.com/chromium/src/+/e5a535bb5a2fc99a090f81bde71e...

Powered by Google App Engine
This is Rietveld 408576698