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

Issue 2925353002: Implement sync of keyboard layout between Ozone and Wayland clients (Closed)

Created:
3 years, 6 months ago by Jason D. Clinton
Modified:
3 years, 6 months ago
CC:
achuith+watch_chromium.org, alemate+watch_chromium.org, chromium-reviews, kalyank, nona+watch_chromium.org, oshima+watch_chromium.org, shuchen+watch_chromium.org, sjg, James Su, yusukes+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Implement sync of keyboard layout between Ozone and Wayland clients BUG=chromium:707429, b:27877642 TEST=install Crouton environment, run gtk3 apps with GDK Wayland backend, confirmed layout is correct at first launch and after toggling layout, confirmed no new crashes introduced (tried US, US Dvorak and Latin American layouts). toggling layout after closing Wayland app doesn't crash Chrome (observer released). Review-Url: https://codereview.chromium.org/2925353002 Cr-Commit-Position: refs/heads/master@{#479825} Committed: https://chromium.googlesource.com/chromium/src/+/2870fad48915fa547f6653e7cdd7afd04cada8fa

Patch Set 1 #

Total comments: 50

Patch Set 2 : Address reveman comments #

Total comments: 20

Patch Set 3 : Address reveman comments round 2 #

Total comments: 16

Patch Set 4 : Address reveman comments round 3 #

Total comments: 4

Patch Set 5 : Address final comments #

Total comments: 8

Patch Set 6 : Rebase on master #

Patch Set 7 : Address final comments round 2 #

Patch Set 8 : Add unittest for observer functionality #

Patch Set 9 : Fix -Wall build failure #

Total comments: 16

Patch Set 10 : Remove comments #

Patch Set 11 : Fix potential nullptr deref #

Patch Set 12 : Rebase on master #

Unified diffs Side-by-side diffs Delta from patch set Stats (+155 lines, -22 lines) Patch
M ash/system/tray_caps_lock.h View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/ui/webui/chromeos/login/signin_screen_handler.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -0 lines 0 comments Download
M components/exo/wayland/BUILD.gn View 1 2 1 chunk +4 lines, -0 lines 0 comments Download
M components/exo/wayland/server.cc View 1 2 3 4 5 6 7 8 9 10 4 chunks +72 lines, -19 lines 0 comments Download
M ui/base/BUILD.gn View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M ui/base/ime/chromeos/fake_ime_keyboard.cc View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M ui/base/ime/chromeos/ime_keyboard.h View 1 2 3 4 5 6 7 2 chunks +9 lines, -2 lines 0 comments Download
M ui/base/ime/chromeos/ime_keyboard.cc View 1 2 3 1 chunk +7 lines, -0 lines 0 comments Download
M ui/base/ime/chromeos/ime_keyboard_mus.cc View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
A ui/base/ime/chromeos/ime_keyboard_unittest.cc View 1 2 3 4 5 6 7 8 1 chunk +57 lines, -0 lines 0 comments Download

Messages

Total messages: 85 (46 generated)
jclinton
3 years, 6 months ago (2017-06-08 22:22:45 UTC) #2
reveman
https://codereview.chromium.org/2925353002/diff/1/ash/system/tray_caps_lock.h File ash/system/tray_caps_lock.h (right): https://codereview.chromium.org/2925353002/diff/1/ash/system/tray_caps_lock.h#newcode30 ash/system/tray_caps_lock.h:30: // input_method::ImeKeyboard::Observer: we are not interested in layout: Simply ...
3 years, 6 months ago (2017-06-09 14:53:19 UTC) #4
jclinton
Addressed all comments and manually re-ran test cases. https://codereview.chromium.org/2925353002/diff/1/ash/system/tray_caps_lock.h File ash/system/tray_caps_lock.h (right): https://codereview.chromium.org/2925353002/diff/1/ash/system/tray_caps_lock.h#newcode30 ash/system/tray_caps_lock.h:30: // ...
3 years, 6 months ago (2017-06-09 16:36:04 UTC) #5
reveman
https://codereview.chromium.org/2925353002/diff/1/components/exo/wayland/server.cc File components/exo/wayland/server.cc (right): https://codereview.chromium.org/2925353002/diff/1/components/exo/wayland/server.cc#newcode2768 components/exo/wayland/server.cc:2768: if (keyboard) { On 2017/06/09 at 16:36:03, jclinton wrote: ...
3 years, 6 months ago (2017-06-09 16:50:13 UTC) #8
jclinton
Addressed all comments and re-ran manual tests. https://codereview.chromium.org/2925353002/diff/20001/ash/system/tray_caps_lock.h File ash/system/tray_caps_lock.h (right): https://codereview.chromium.org/2925353002/diff/20001/ash/system/tray_caps_lock.h#newcode30 ash/system/tray_caps_lock.h:30: // Overriden ...
3 years, 6 months ago (2017-06-09 20:24:23 UTC) #11
reveman
https://codereview.chromium.org/2925353002/diff/40001/components/exo/wayland/server.cc File components/exo/wayland/server.cc (right): https://codereview.chromium.org/2925353002/diff/40001/components/exo/wayland/server.cc#newcode2747 components/exo/wayland/server.cc:2747: #if defined(OS_CHROMEOS) #if defined(USE_OZONE) && defined(OS_CHROMEOS) as chromeos can ...
3 years, 6 months ago (2017-06-09 21:15:18 UTC) #14
jclinton
Addressed all comments and re-ran manual tests. https://codereview.chromium.org/2925353002/diff/40001/components/exo/wayland/server.cc File components/exo/wayland/server.cc (right): https://codereview.chromium.org/2925353002/diff/40001/components/exo/wayland/server.cc#newcode2747 components/exo/wayland/server.cc:2747: #if defined(OS_CHROMEOS) ...
3 years, 6 months ago (2017-06-09 22:17:59 UTC) #17
reveman
lgtm % nits https://codereview.chromium.org/2925353002/diff/60001/components/exo/wayland/server.cc File components/exo/wayland/server.cc (right): https://codereview.chromium.org/2925353002/diff/60001/components/exo/wayland/server.cc#newcode2877 components/exo/wayland/server.cc:2877: // Send the keyboard layout named ...
3 years, 6 months ago (2017-06-09 22:59:11 UTC) #20
jclinton
https://codereview.chromium.org/2925353002/diff/60001/components/exo/wayland/server.cc File components/exo/wayland/server.cc (right): https://codereview.chromium.org/2925353002/diff/60001/components/exo/wayland/server.cc#newcode2877 components/exo/wayland/server.cc:2877: // Send the keyboard layout named to the client. ...
3 years, 6 months ago (2017-06-10 01:07:29 UTC) #23
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/2925353002/80001
3 years, 6 months ago (2017-06-10 01:08:33 UTC) #26
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/460789)
3 years, 6 months ago (2017-06-10 01:17:27 UTC) #28
Shu Chen
Forgot to change ime_keyboard_x11 & fake_ime_keyboard? With the update of fake_ime_keyboard, please add test to ...
3 years, 6 months ago (2017-06-10 04:58:55 UTC) #32
reveman
a few more nits, sorry I missed these the first time https://codereview.chromium.org/2925353002/diff/80001/components/exo/wayland/server.cc File components/exo/wayland/server.cc (right): ...
3 years, 6 months ago (2017-06-10 12:33:55 UTC) #33
jclinton
On 2017/06/10 04:58:55, Shu Chen wrote: > Forgot to change ime_keyboard_x11 No, ime_keyboard_x11 is dead ...
3 years, 6 months ago (2017-06-12 03:32:57 UTC) #34
jclinton
https://codereview.chromium.org/2925353002/diff/80001/components/exo/wayland/server.cc File components/exo/wayland/server.cc (right): https://codereview.chromium.org/2925353002/diff/80001/components/exo/wayland/server.cc#newcode2760 components/exo/wayland/server.cc:2760: std::string layout_name = keyboard->GetCurrentKeyboardLayoutName(); On 2017/06/10 12:33:55, reveman wrote: ...
3 years, 6 months ago (2017-06-12 03:33:09 UTC) #35
jclinton
On 2017/06/12 03:32:57, jclinton wrote: > On 2017/06/10 04:58:55, Shu Chen wrote: > > With ...
3 years, 6 months ago (2017-06-12 23:45:53 UTC) #44
jclinton
Friendly ping. Submitting this CL is blocked on OWNERS for minor changes to directories outside ...
3 years, 6 months ago (2017-06-13 16:14:36 UTC) #47
reveman
On 2017/06/13 at 16:14:36, jclinton wrote: > Friendly ping. Submitting this CL is blocked on ...
3 years, 6 months ago (2017-06-13 16:22:11 UTC) #48
jclinton
On 2017/06/13 16:22:11, reveman wrote: > On 2017/06/13 at 16:14:36, jclinton wrote: > > Friendly ...
3 years, 6 months ago (2017-06-13 16:30:02 UTC) #49
jclinton
On 2017/06/13 16:30:02, jclinton wrote: > On 2017/06/13 16:22:11, reveman wrote: > > On 2017/06/13 ...
3 years, 6 months ago (2017-06-14 00:22:32 UTC) #51
sadrul
https://codereview.chromium.org/2925353002/diff/160001/ash/system/tray_caps_lock.h File ash/system/tray_caps_lock.h (right): https://codereview.chromium.org/2925353002/diff/160001/ash/system/tray_caps_lock.h#newcode30 ash/system/tray_caps_lock.h:30: // Overridden from chromeos::input_method::ImeKeyboard::Observer: You don't need this comment ...
3 years, 6 months ago (2017-06-14 03:16:54 UTC) #52
Nico
What do you want the people you added to look at? On Tue, Jun 13, ...
3 years, 6 months ago (2017-06-14 14:25:01 UTC) #53
jclinton
On 2017/06/14 14:25:01, Nico wrote: > What do you want the people you added to ...
3 years, 6 months ago (2017-06-14 15:35:01 UTC) #54
Nico
Cool; which one is my directory? On Wed, Jun 14, 2017 at 11:35 AM, <jclinton@google.com> ...
3 years, 6 months ago (2017-06-14 15:35:42 UTC) #55
jclinton
On 2017/06/14 15:35:42, Nico wrote: > Cool; which one is my directory? chrome/browser/ui/webui/chromeos/login/signin_screen_handler.h
3 years, 6 months ago (2017-06-14 15:38:25 UTC) #56
Nico
chrome/browser/ui/webui/chromeos/login/signin_screen_handler.h lgtm (note that i'm an ui/owner but didn't look at the ui/ stuff, so ...
3 years, 6 months ago (2017-06-14 15:40:15 UTC) #57
jclinton
https://codereview.chromium.org/2925353002/diff/160001/ash/system/tray_caps_lock.h File ash/system/tray_caps_lock.h (right): https://codereview.chromium.org/2925353002/diff/160001/ash/system/tray_caps_lock.h#newcode30 ash/system/tray_caps_lock.h:30: // Overridden from chromeos::input_method::ImeKeyboard::Observer: On 2017/06/14 03:16:53, sadrul wrote: ...
3 years, 6 months ago (2017-06-14 15:49:04 UTC) #58
jclinton
On 2017/06/14 00:22:32, jclinton wrote: > Added more specific subdirectory reviewers because it's been 3 ...
3 years, 6 months ago (2017-06-14 22:11:35 UTC) #63
Nico
Please prefix what you're saying with the username of the person you're talking to, else ...
3 years, 6 months ago (2017-06-14 22:14:18 UTC) #64
sadrul
https://codereview.chromium.org/2925353002/diff/160001/components/exo/wayland/server.cc File components/exo/wayland/server.cc (right): https://codereview.chromium.org/2925353002/diff/160001/components/exo/wayland/server.cc#newcode88 components/exo/wayland/server.cc:88: #if defined(OS_CHROMEOS) On 2017/06/14 15:49:04, jclinton wrote: > On ...
3 years, 6 months ago (2017-06-15 06:45:21 UTC) #65
sadrul
https://codereview.chromium.org/2925353002/diff/160001/components/exo/wayland/server.cc File components/exo/wayland/server.cc (right): https://codereview.chromium.org/2925353002/diff/160001/components/exo/wayland/server.cc#newcode2747 components/exo/wayland/server.cc:2747: #if defined(USE_OZONE) && defined(OS_CHROMEOS) On 2017/06/14 15:49:04, jclinton wrote: ...
3 years, 6 months ago (2017-06-15 06:57:27 UTC) #66
reveman
https://codereview.chromium.org/2925353002/diff/160001/components/exo/wayland/server.cc File components/exo/wayland/server.cc (right): https://codereview.chromium.org/2925353002/diff/160001/components/exo/wayland/server.cc#newcode2747 components/exo/wayland/server.cc:2747: #if defined(USE_OZONE) && defined(OS_CHROMEOS) On 2017/06/15 at 06:57:27, sadrul ...
3 years, 6 months ago (2017-06-15 11:44:15 UTC) #67
sadrul
https://codereview.chromium.org/2925353002/diff/160001/components/exo/wayland/server.cc File components/exo/wayland/server.cc (right): https://codereview.chromium.org/2925353002/diff/160001/components/exo/wayland/server.cc#newcode2747 components/exo/wayland/server.cc:2747: #if defined(USE_OZONE) && defined(OS_CHROMEOS) On 2017/06/15 11:44:15, reveman wrote: ...
3 years, 6 months ago (2017-06-15 13:18:11 UTC) #68
sadrul
> https://codereview.chromium.org/2925353002/diff/160001/components/exo/wayland/server.cc#newcode2760 > components/exo/wayland/server.cc:2760: > SendNamedLayout(keyboard->GetCurrentKeyboardLayoutName()); > On 2017/06/14 15:49:04, jclinton wrote: > > On ...
3 years, 6 months ago (2017-06-15 13:23:45 UTC) #69
jclinton
https://codereview.chromium.org/2925353002/diff/160001/components/exo/wayland/server.cc File components/exo/wayland/server.cc (right): https://codereview.chromium.org/2925353002/diff/160001/components/exo/wayland/server.cc#newcode2760 components/exo/wayland/server.cc:2760: SendNamedLayout(keyboard->GetCurrentKeyboardLayoutName()); On 2017/06/15 13:18:11, sadrul wrote: > On 2017/06/14 ...
3 years, 6 months ago (2017-06-15 15:46:47 UTC) #70
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/2925353002/200001
3 years, 6 months ago (2017-06-15 17:24:01 UTC) #77
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_ng/builds/479783)
3 years, 6 months ago (2017-06-15 18:49:33 UTC) #79
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/2925353002/220001
3 years, 6 months ago (2017-06-15 19:27:48 UTC) #82
commit-bot: I haz the power
3 years, 6 months ago (2017-06-15 21:01:28 UTC) #85
Message was sent while issue was closed.
Committed patchset #12 (id:220001) as
https://chromium.googlesource.com/chromium/src/+/2870fad48915fa547f6653e7cdd7...

Powered by Google App Engine
This is Rietveld 408576698