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

Issue 189663009: cros: Simplify chromeos::input_method::XKeyboard interface. (Closed)

Created:
6 years, 9 months ago by sadrul
Modified:
6 years, 9 months ago
CC:
chromium-reviews, yusukes+watch_chromium.org, yukishiino+watch_chromium.org, nona+watch_chromium.org, oshima+watch_chromium.org, stevenjb+watch_chromium.org, davemoore+watch_chromium.org, nkostylev+watch_chromium.org
Visibility:
Public.

Description

chromeos: Simplify chromeos::input_method::XKeyboard interface. Notable changes: * Replace the num-lock related methods with a single DisableNumLock(), since num-lock LED is always turned off in chromeos (more details at crbug.com/124189) * Remove SetLockedModifiers(), since DisableNumLock() and SetCapsLockEnabled() are sufficient. * Remove GetLockedModifiers(), since only CapsLockIsEnabled() is useful. BUG=none R=derat@chromium.org, yukishiino@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=255943

Patch Set 1 #

Patch Set 2 : . #

Total comments: 4

Patch Set 3 : . #

Total comments: 2

Patch Set 4 : . #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+74 lines, -261 lines) Patch
M chrome/browser/chromeos/chrome_browser_main_chromeos.cc View 1 chunk +1 line, -2 lines 0 comments Download
M chrome/browser/chromeos/events/system_key_event_listener.h View 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/chromeos/events/system_key_event_listener.cc View 2 chunks +2 lines, -6 lines 0 comments Download
M chromeos/ime/fake_xkeyboard.h View 1 chunk +1 line, -9 lines 0 comments Download
M chromeos/ime/fake_xkeyboard.cc View 2 chunks +1 line, -27 lines 0 comments Download
M chromeos/ime/xkeyboard.h View 2 chunks +2 lines, -31 lines 0 comments Download
M chromeos/ime/xkeyboard.cc View 1 2 3 6 chunks +67 lines, -106 lines 1 comment Download
M chromeos/ime/xkeyboard_unittest.cc View 1 chunk +0 lines, -79 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
sadrul
6 years, 9 months ago (2014-03-08 07:16:17 UTC) #1
satorux1
nona@ and yukishiino@ would be better reviewers.
6 years, 9 months ago (2014-03-09 02:02:50 UTC) #2
sadrul
+derat@ for chrome/browser/chromeos owner
6 years, 9 months ago (2014-03-09 03:45:16 UTC) #3
Daniel Erat
rubberstamp lgtm for c/b/chromeos https://codereview.chromium.org/189663009/diff/20001/chromeos/ime/xkeyboard.cc File chromeos/ime/xkeyboard.cc (right): https://codereview.chromium.org/189663009/diff/20001/chromeos/ime/xkeyboard.cc#newcode84 chromeos/ime/xkeyboard.cc:84: unsigned int GetNumLockMask(); nit: add ...
6 years, 9 months ago (2014-03-09 04:17:55 UTC) #4
sadrul
https://codereview.chromium.org/189663009/diff/20001/chromeos/ime/xkeyboard.cc File chromeos/ime/xkeyboard.cc (right): https://codereview.chromium.org/189663009/diff/20001/chromeos/ime/xkeyboard.cc#newcode84 chromeos/ime/xkeyboard.cc:84: unsigned int GetNumLockMask(); On 2014/03/09 04:17:55, Daniel Erat wrote: ...
6 years, 9 months ago (2014-03-09 04:52:25 UTC) #5
Yuki
lgtm with only a nit. https://codereview.chromium.org/189663009/diff/40001/chromeos/ime/xkeyboard.cc File chromeos/ime/xkeyboard.cc (right): https://codereview.chromium.org/189663009/diff/40001/chromeos/ime/xkeyboard.cc#newcode194 chromeos/ime/xkeyboard.cc:194: if (affect_mask) I think ...
6 years, 9 months ago (2014-03-10 03:53:49 UTC) #6
sadrul
https://codereview.chromium.org/189663009/diff/40001/chromeos/ime/xkeyboard.cc File chromeos/ime/xkeyboard.cc (right): https://codereview.chromium.org/189663009/diff/40001/chromeos/ime/xkeyboard.cc#newcode194 chromeos/ime/xkeyboard.cc:194: if (affect_mask) On 2014/03/10 03:53:49, Yuki wrote: > I ...
6 years, 9 months ago (2014-03-10 04:00:46 UTC) #7
Yuki
lgtm
6 years, 9 months ago (2014-03-10 04:04:58 UTC) #8
sadrul
Committed patchset #4 manually as r255943 (presubmit successful).
6 years, 9 months ago (2014-03-10 15:16:50 UTC) #9
Nico
https://codereview.chromium.org/189663009/diff/2/chromeos/ime/xkeyboard.cc File chromeos/ime/xkeyboard.cc (right): https://codereview.chromium.org/189663009/diff/2/chromeos/ime/xkeyboard.cc#newcode156 chromeos/ime/xkeyboard.cc:156: if (xkb_desc->dpy && xkb_desc->names && xkb_desc->names->vmods) { A recent ...
6 years, 9 months ago (2014-03-14 07:31:01 UTC) #10
Nico
On 2014/03/14 07:31:01, Nico (on GMT time Mar 15 - 24) wrote: > https://codereview.chromium.org/189663009/diff/2/chromeos/ime/xkeyboard.cc > ...
6 years, 9 months ago (2014-03-18 10:56:32 UTC) #11
sadrul
6 years, 9 months ago (2014-03-18 11:36:42 UTC) #12
Message was sent while issue was closed.
On 2014/03/18 10:56:32, Nico (on GMT time Mar 15 - 24) wrote:
> On 2014/03/14 07:31:01, Nico (on GMT time Mar 15 - 24) wrote:
> > https://codereview.chromium.org/189663009/diff/2/chromeos/ime/xkeyboard.cc
> > File chromeos/ime/xkeyboard.cc (right):
> > 
> >
>
https://codereview.chromium.org/189663009/diff/2/chromeos/ime/xkeyboard.cc#ne...
> > chromeos/ime/xkeyboard.cc:156: if (xkb_desc->dpy && xkb_desc->names &&
> > xkb_desc->names->vmods) {
> > A recent clang remarks:
> > 
> > ../../chromeos/ime/xkeyboard.cc:156:60:error: address of array
> > 'xkb_desc->names->vmods' will always evaluate to 'true'
> > [-Werror,-Wbool-conversion]
> >   if (xkb_desc->dpy && xkb_desc->names && xkb_desc->names->vmods) {
> >                                        ~~ ~~~~~~~~~~~~~~~~~^~~~~
> > 1 error generated.
> > 
> > 
> > 
> > Do you mean vmods[0]?
> 
> Ping. I now accidentally landed my local workaround with the clang roll:
>
https://codereview.chromium.org/195623002/diff/370001/chromeos/ime/xkeyboard.cc
> :-/ Can you land some fix for this please?

Put up https://codereview.chromium.org/197513004/ (this patch moves the code
around. It was added back in https://codereview.chromium.org/8356040)

Powered by Google App Engine
This is Rietveld 408576698