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

Issue 742103002: Ozone keyboard layout (Closed)

Created:
6 years, 1 month ago by kpschoedel
Modified:
6 years ago
Reviewers:
sadrul, Wez, spang
CC:
chromium-reviews, kalyank, ozone-reviews_chromium.org, tdresser+watch_chromium.org, alexst (slow to review), Shu Chen, FengYuan, garykac, kelvinp
Base URL:
https://chromium.googlesource.com/chromium/src.git@lite-code
Project:
chromium
Visibility:
Public.

Description

Ozone keyboard layout This replaces core X11 XKB on Ozone, providing a platform-independent interface mapping (DomCode, EventFlags) to (DomKey, character) and KeyboardCode, and a layout set/property interface equivalent to ImeKeyboard. BUG=430194 Committed: https://crrev.com/763ff21d56e31d5b18a43c635f233de89a2ad9f0 Cr-Commit-Position: refs/heads/master@{#308390}

Patch Set 1 #

Total comments: 12

Patch Set 2 : KeyEvent builder #

Patch Set 3 : rebase #

Patch Set 4 : refactor per review comments #

Patch Set 5 : fixes; missed reuploading layout/ #

Patch Set 6 : gyp #

Patch Set 7 : gn #

Patch Set 8 : factor into separate component #

Patch Set 9 : works on link #

Total comments: 12

Patch Set 10 : address review comments (Wez) + cleanup #

Total comments: 8

Patch Set 11 : address review comments (spang) #

Total comments: 5

Patch Set 12 : address review comments (spang, 2) #

Patch Set 13 : rebase #

Patch Set 14 : fix Windows build #

Patch Set 15 : rrrebase #

Total comments: 2

Patch Set 16 : rebase 2014/12/08 #

Total comments: 34

Patch Set 17 : address review comments (Wez, 2) #

Total comments: 13

Patch Set 18 : address review comments (Wez, 3) #

Patch Set 19 : reeeeebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1549 lines, -280 lines) Patch
M ui/events/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 2 chunks +2 lines, -0 lines 0 comments Download
M ui/events/event.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 6 chunks +51 lines, -8 lines 0 comments Download
M ui/events/event.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 8 chunks +52 lines, -23 lines 0 comments Download
M ui/events/events.gyp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 2 chunks +6 lines, -0 lines 0 comments Download
M ui/events/keycodes/keyboard_code_conversion.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +10 lines, -4 lines 0 comments Download
M ui/events/keycodes/keyboard_code_conversion.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +215 lines, -68 lines 0 comments Download
M ui/events/keycodes/keyboard_codes_posix.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +0 lines, -2 lines 0 comments Download
M ui/events/ozone/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 2 chunks +20 lines, -0 lines 0 comments Download
M ui/events/ozone/evdev/event_converter_evdev_impl_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 2 chunks +3 lines, -1 line 0 comments Download
M ui/events/ozone/evdev/event_factory_evdev.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +2 lines, -1 line 0 comments Download
M ui/events/ozone/evdev/event_factory_evdev.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +3 lines, -2 lines 0 comments Download
M ui/events/ozone/evdev/input_injector_evdev_unittest.cc View 1 2 3 4 5 6 7 8 9 10 3 chunks +5 lines, -2 lines 0 comments Download
M ui/events/ozone/evdev/keyboard_evdev.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 3 chunks +5 lines, -1 line 0 comments Download
M ui/events/ozone/evdev/keyboard_evdev.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 4 chunks +21 lines, -148 lines 0 comments Download
M ui/events/ozone/events_ozone.gyp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 2 chunks +20 lines, -0 lines 0 comments Download
A ui/events/ozone/layout/events_ozone_layout_export.h View 3 4 1 chunk +29 lines, -0 lines 0 comments Download
A ui/events/ozone/layout/keyboard_layout_engine.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +73 lines, -0 lines 0 comments Download
A ui/events/ozone/layout/keyboard_layout_engine_manager.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +33 lines, -0 lines 0 comments Download
A ui/events/ozone/layout/keyboard_layout_engine_manager.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +41 lines, -0 lines 0 comments Download
A ui/events/ozone/layout/no/no_keyboard_layout_engine.h View 1 2 3 4 5 6 7 1 chunk +33 lines, -0 lines 0 comments Download
A ui/events/ozone/layout/no/no_keyboard_layout_engine.cc View 1 2 3 4 5 6 7 1 chunk +34 lines, -0 lines 0 comments Download
A ui/events/ozone/layout/stub/stub_keyboard_layout_engine.h View 1 2 3 4 5 6 7 1 chunk +33 lines, -0 lines 0 comments Download
A ui/events/ozone/layout/stub/stub_keyboard_layout_engine.cc View 1 2 3 4 5 6 7 8 9 1 chunk +803 lines, -0 lines 0 comments Download
M ui/ozone/platform/caca/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +1 line, -0 lines 0 comments Download
M ui/ozone/platform/caca/caca.gypi View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -0 lines 0 comments Download
M ui/ozone/platform/caca/ozone_platform_caca.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 3 chunks +7 lines, -1 line 0 comments Download
M ui/ozone/platform/dri/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +1 line, -0 lines 0 comments Download
M ui/ozone/platform/dri/dri.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +1 line, -0 lines 0 comments Download
M ui/ozone/platform/dri/gbm.gypi View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -0 lines 0 comments Download
M ui/ozone/platform/dri/ozone_platform_dri.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 3 chunks +10 lines, -3 lines 0 comments Download
M ui/ozone/platform/dri/ozone_platform_gbm.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 3 chunks +12 lines, -7 lines 0 comments Download
M ui/ozone/platform/egltest/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +1 line, -0 lines 0 comments Download
M ui/ozone/platform/egltest/egltest.gypi View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M ui/ozone/platform/egltest/ozone_platform_egltest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 4 chunks +13 lines, -9 lines 0 comments Download
M ui/ozone/platform/test/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -0 lines 0 comments Download
M ui/ozone/platform/test/ozone_platform_test.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 2 chunks +4 lines, -0 lines 0 comments Download
M ui/ozone/platform/test/test.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 38 (8 generated)
kpschoedel
This is not landable yet (dependencies notwithstanding), as more gyp/gn files need to change, plus ...
6 years, 1 month ago (2014-11-20 16:18:38 UTC) #2
sadrul
https://codereview.chromium.org/742103002/diff/1/ui/events/event.cc File ui/events/event.cc (right): https://codereview.chromium.org/742103002/diff/1/ui/events/event.cc#newcode34 ui/events/event.cc:34: #include "ui/ozone/public/ozone_platform.h" On 2014/11/20 16:18:38, kpschoedel wrote: > Will ...
6 years, 1 month ago (2014-11-21 21:25:25 UTC) #3
kpschoedel
https://codereview.chromium.org/742103002/diff/1/ui/events/event.cc File ui/events/event.cc (right): https://codereview.chromium.org/742103002/diff/1/ui/events/event.cc#newcode34 ui/events/event.cc:34: #include "ui/ozone/public/ozone_platform.h" On 2014/11/21 21:25:25, sadrul wrote: > //ui/ozone ...
6 years, 1 month ago (2014-11-21 21:43:34 UTC) #4
spang
https://codereview.chromium.org/742103002/diff/1/ui/events/event.cc File ui/events/event.cc (right): https://codereview.chromium.org/742103002/diff/1/ui/events/event.cc#newcode34 ui/events/event.cc:34: #include "ui/ozone/public/ozone_platform.h" On 2014/11/21 21:43:33, kpschoedel wrote: > On ...
6 years, 1 month ago (2014-11-21 21:58:52 UTC) #5
kpschoedel
On 2014/11/21 21:58:52, spang wrote: > Can we really say it is orthogonal? In the ...
6 years, 1 month ago (2014-11-21 22:47:23 UTC) #6
spang
On 2014/11/21 22:47:23, kpschoedel wrote: > On 2014/11/21 21:58:52, spang wrote: > > Can we ...
6 years, 1 month ago (2014-11-21 22:53:49 UTC) #7
kpschoedel
On 2014/11/21 22:53:49, spang wrote: > I think places we want layout to happen can ...
6 years, 1 month ago (2014-11-21 23:03:00 UTC) #8
kpschoedel
Rearranged in light of the comments above. This remains a non-committable prototype, as some tests ...
6 years ago (2014-11-26 20:32:25 UTC) #9
kpschoedel
On 2014/11/21 21:25:25, sadrul wrote: > On 2014/11/20 16:18:38, kpschoedel wrote: > > Will need ...
6 years ago (2014-11-27 23:27:21 UTC) #10
spang
On 2014/11/27 23:27:21, kpschoedel wrote: > On 2014/11/21 21:25:25, sadrul wrote: > > On 2014/11/20 ...
6 years ago (2014-11-28 19:35:28 UTC) #11
kpschoedel
Works on link_freon, using the hard-coded 'stub' layout. A little cleanup left to do.
6 years ago (2014-12-01 22:44:02 UTC) #15
Wez
https://codereview.chromium.org/742103002/diff/220001/ui/events/event.cc File ui/events/event.cc (right): https://codereview.chromium.org/742103002/diff/220001/ui/events/event.cc#newcode636 ui/events/event.cc:636: character_(0) { Does Blink allow delegated constructors yet? https://codereview.chromium.org/742103002/diff/220001/ui/events/event.cc#newcode739 ...
6 years ago (2014-12-02 05:45:08 UTC) #17
kpschoedel
https://codereview.chromium.org/742103002/diff/220001/ui/events/event.cc File ui/events/event.cc (right): https://codereview.chromium.org/742103002/diff/220001/ui/events/event.cc#newcode636 ui/events/event.cc:636: character_(0) { On 2014/12/02 05:45:07, Wez wrote: > Does ...
6 years ago (2014-12-02 16:45:45 UTC) #18
spang
https://codereview.chromium.org/742103002/diff/240001/ui/events/ozone/evdev/keyboard_evdev.cc File ui/events/ozone/evdev/keyboard_evdev.cc (right): https://codereview.chromium.org/742103002/diff/240001/ui/events/ozone/evdev/keyboard_evdev.cc#newcode101 ui/events/ozone/evdev/keyboard_evdev.cc:101: if (!KeyboardLayoutEngineManager::GetKeyboardLayoutEngine()->Lookup( Can you add a KeyboardLayoutEngineManager* member variable ...
6 years ago (2014-12-02 18:38:26 UTC) #19
kpschoedel
https://codereview.chromium.org/742103002/diff/240001/ui/events/ozone/evdev/keyboard_evdev.cc File ui/events/ozone/evdev/keyboard_evdev.cc (right): https://codereview.chromium.org/742103002/diff/240001/ui/events/ozone/evdev/keyboard_evdev.cc#newcode101 ui/events/ozone/evdev/keyboard_evdev.cc:101: if (!KeyboardLayoutEngineManager::GetKeyboardLayoutEngine()->Lookup( On 2014/12/02 18:38:26, spang wrote: > Can ...
6 years ago (2014-12-02 19:34:20 UTC) #22
spang
lgtm https://codereview.chromium.org/742103002/diff/240001/ui/events/ozone/layout/keyboard_layout_engine_manager.cc File ui/events/ozone/layout/keyboard_layout_engine_manager.cc (right): https://codereview.chromium.org/742103002/diff/240001/ui/events/ozone/layout/keyboard_layout_engine_manager.cc#newcode36 ui/events/ozone/layout/keyboard_layout_engine_manager.cc:36: if (!instance_) On 2014/12/02 19:34:20, kpschoedel wrote: > ...
6 years ago (2014-12-02 20:28:00 UTC) #23
kpschoedel
https://codereview.chromium.org/742103002/diff/240001/ui/events/ozone/layout/keyboard_layout_engine_manager.cc File ui/events/ozone/layout/keyboard_layout_engine_manager.cc (right): https://codereview.chromium.org/742103002/diff/240001/ui/events/ozone/layout/keyboard_layout_engine_manager.cc#newcode36 ui/events/ozone/layout/keyboard_layout_engine_manager.cc:36: if (!instance_) On 2014/12/02 20:27:59, spang wrote: > On ...
6 years ago (2014-12-02 21:52:35 UTC) #24
kpschoedel
sadrul@, wez@ — please take another look
6 years ago (2014-12-03 19:14:36 UTC) #25
sadrul
On 2014/12/03 19:14:36, kpschoedel wrote: > sadrul@, wez@ — please take another look wez@ Please ...
6 years ago (2014-12-03 21:46:33 UTC) #26
kpschoedel
wez@ PTAL - despite Reitveld keeping the old email subject, this is ready to go.
6 years ago (2014-12-05 17:49:31 UTC) #27
Wez
On 2014/12/05 17:49:31, kpschoedel wrote: > wez@ PTAL - despite Reitveld keeping the old email ...
6 years ago (2014-12-09 01:39:10 UTC) #28
Wez
https://codereview.chromium.org/742103002/diff/380001/ui/events/ozone/layout/keyboard_layout_engine.h File ui/events/ozone/layout/keyboard_layout_engine.h (right): https://codereview.chromium.org/742103002/diff/380001/ui/events/ozone/layout/keyboard_layout_engine.h#newcode25 ui/events/ozone/layout/keyboard_layout_engine.h:25: // system layout, so there is no standalone 'KeyboardLayout' ...
6 years ago (2014-12-09 07:00:34 UTC) #29
kpschoedel
https://codereview.chromium.org/742103002/diff/380001/ui/events/ozone/layout/keyboard_layout_engine.h File ui/events/ozone/layout/keyboard_layout_engine.h (right): https://codereview.chromium.org/742103002/diff/380001/ui/events/ozone/layout/keyboard_layout_engine.h#newcode25 ui/events/ozone/layout/keyboard_layout_engine.h:25: // system layout, so there is no standalone 'KeyboardLayout' ...
6 years ago (2014-12-09 19:58:44 UTC) #30
Wez
lgtm https://codereview.chromium.org/742103002/diff/400001/ui/events/ozone/layout/keyboard_layout_engine.h File ui/events/ozone/layout/keyboard_layout_engine.h (right): https://codereview.chromium.org/742103002/diff/400001/ui/events/ozone/layout/keyboard_layout_engine.h#newcode35 ui/events/ozone/layout/keyboard_layout_engine.h:35: virtual bool SetCurrentLayoutByName(const std::string& layout_name) = 0; On ...
6 years ago (2014-12-12 20:04:18 UTC) #31
kpschoedel
https://codereview.chromium.org/742103002/diff/400001/ui/events/ozone/layout/keyboard_layout_engine.h File ui/events/ozone/layout/keyboard_layout_engine.h (right): https://codereview.chromium.org/742103002/diff/400001/ui/events/ozone/layout/keyboard_layout_engine.h#newcode35 ui/events/ozone/layout/keyboard_layout_engine.h:35: virtual bool SetCurrentLayoutByName(const std::string& layout_name) = 0; On 2014/12/12 ...
6 years ago (2014-12-12 21:20:39 UTC) #32
sadrul
lgtm
6 years ago (2014-12-15 17:29:20 UTC) #33
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/742103002/460001
6 years ago (2014-12-15 17:31:59 UTC) #35
commit-bot: I haz the power
Committed patchset #19 (id:460001)
6 years ago (2014-12-15 19:35:16 UTC) #36
commit-bot: I haz the power
Patchset 19 (id:??) landed as https://crrev.com/763ff21d56e31d5b18a43c635f233de89a2ad9f0 Cr-Commit-Position: refs/heads/master@{#308390}
6 years ago (2014-12-15 19:36:02 UTC) #37
spang
6 years ago (2014-12-16 04:05:20 UTC) #38
Message was sent while issue was closed.
https://codereview.chromium.org/742103002/diff/300001/ui/events/ozone/events_...
File ui/events/ozone/events_ozone.gyp (right):

https://codereview.chromium.org/742103002/diff/300001/ui/events/ozone/events_...
ui/events/ozone/events_ozone.gyp:123: '../../../base/base.gyp:base',
On 2014/12/02 21:52:34, kpschoedel wrote:
> On 2014/12/02 20:28:00, spang wrote:
> > I think there's some missing deps here. Should go through and add everything
> you
> > have an #include for.
> 
> Done; also ran component and GN builds.

They seem to have gotten lost.

Powered by Google App Engine
This is Rietveld 408576698