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

Issue 1523593002: Add an option in language settings for activating the IME menu. (Closed)

Created:
5 years ago by Azure Wei
Modified:
4 years, 11 months ago
CC:
chromium-reviews, dbeam+watch-options_chromium.org, michaelpg+watch-options_chromium.org, yusukes+watch_chromium.org, shuchen+watch_chromium.org, asvitkine+watch_chromium.org, nona+watch_chromium.org, arv+watch_chromium.org, oshima+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add an option in language settings for activating the IME menu on the shelf. A flag "enable-ime-menu" is added to turn on this feature. When building Chrome OS with the command line flag: --enable-ime-menu, the div section 'language-options-ime-menu-template' in language settings page will show. Otherwise, this section will be hidden. Once the checkbox 'activate-ime-menu' is checked by users, the preference value pref::kLanguageImeMenuActivated will be set to be true. BUG=570761 TEST=Verified bug not repro on local build. Committed: https://crrev.com/103ed21273e49ddff067a378d0eed30a816bd1b4 Cr-Commit-Position: refs/heads/master@{#368529}

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : #

Total comments: 12

Patch Set 5 : Add enable-ime-menu flag #

Total comments: 18

Patch Set 6 : Remove pref kLangugaeImeMenuFlagEnabled #

Total comments: 2

Patch Set 7 : #

Patch Set 8 : Rename function ImeMenuEnabled() as IsImeMenuEnabled() #

Total comments: 4

Patch Set 9 : Address michaelpg's commments #

Patch Set 10 : Add isChromeOS conditions for menu related functions in language_options.js #

Patch Set 11 : Fix test failure. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+95 lines, -1 line) Patch
M chrome/app/chromeos_strings.grdp View 1 2 3 4 5 6 7 8 9 10 1 chunk +8 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/preferences.h View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/chromeos/preferences.cc View 1 2 3 4 5 3 chunks +13 lines, -0 lines 0 comments Download
M chrome/browser/resources/options/language_options.css View 1 2 3 4 5 6 7 8 9 10 1 chunk +7 lines, -0 lines 0 comments Download
M chrome/browser/resources/options/language_options.html View 1 2 3 4 5 6 7 8 9 10 1 chunk +11 lines, -0 lines 0 comments Download
M chrome/browser/resources/options/language_options.js View 1 2 3 4 5 6 7 8 9 10 3 chunks +32 lines, -0 lines 0 comments Download
M chrome/browser/ui/webui/options/browser_options_handler.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/ui/webui/options/chromeos/cros_language_options_handler.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/chrome_browser_chromeos.gypi View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -1 line 0 comments Download
M chrome/common/pref_names.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/pref_names.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +3 lines, -0 lines 0 comments Download
M chromeos/chromeos_switches.h View 1 2 3 4 5 6 7 2 chunks +3 lines, -0 lines 0 comments Download
M chromeos/chromeos_switches.cc View 1 2 3 4 5 6 7 2 chunks +7 lines, -0 lines 0 comments Download

Messages

Total messages: 50 (24 generated)
Azure Wei
Hi Shu Chen, stevenjb and Ilya Sherman, can you please help review this cl? Thanks!
5 years ago (2015-12-23 08:12:56 UTC) #6
Ilya Sherman
histograms.xml lgtm
5 years ago (2015-12-23 09:31:40 UTC) #7
stevenjb
+michaelpg@ for chrome/browser/resources/options/
4 years, 12 months ago (2015-12-28 16:33:28 UTC) #10
Shu Chen
https://codereview.chromium.org/1523593002/diff/60001/chrome/browser/chromeos/extensions/ime_menu_event_router.cc File chrome/browser/chromeos/extensions/ime_menu_event_router.cc (right): https://codereview.chromium.org/1523593002/diff/60001/chrome/browser/chromeos/extensions/ime_menu_event_router.cc#newcode27 chrome/browser/chromeos/extensions/ime_menu_event_router.cc:27: input_method::InputMethodManager* manager) { Unused |manager| param. https://codereview.chromium.org/1523593002/diff/60001/chrome/browser/chromeos/extensions/ime_menu_event_router.cc#newcode46 chrome/browser/chromeos/extensions/ime_menu_event_router.cc:46: input_method::InputMethodManager* ...
4 years, 12 months ago (2015-12-28 16:41:47 UTC) #11
stevenjb
Renamed this because it has nothing directly to do with the Ash Shelf (that is ...
4 years, 12 months ago (2015-12-28 17:36:11 UTC) #12
stevenjb
4 years, 12 months ago (2015-12-28 17:36:28 UTC) #14
Azure Wei
On 2015/12/28 17:36:11, stevenjb wrote: > Renamed this because it has nothing directly to do ...
4 years, 11 months ago (2016-01-04 06:30:13 UTC) #15
Azure Wei
https://codereview.chromium.org/1523593002/diff/60001/chrome/app/chromeos_strings.grdp File chrome/app/chromeos_strings.grdp (right): https://codereview.chromium.org/1523593002/diff/60001/chrome/app/chromeos_strings.grdp#newcode3555 chrome/app/chromeos_strings.grdp:3555: Activate the IME Menu on the system tray. On ...
4 years, 11 months ago (2016-01-04 06:30:38 UTC) #16
michaelpg
https://codereview.chromium.org/1523593002/diff/80001/chrome/browser/chromeos/preferences.cc File chrome/browser/chromeos/preferences.cc (right): https://codereview.chromium.org/1523593002/diff/80001/chrome/browser/chromeos/preferences.cc#newcode289 chrome/browser/chromeos/preferences.cc:289: registry->RegisterBooleanPref(prefs::kLangugaeImeMenuFlagEnabled, why is the flag also preference? do any ...
4 years, 11 months ago (2016-01-04 16:37:37 UTC) #17
stevenjb
https://codereview.chromium.org/1523593002/diff/80001/chrome/app/chromeos_strings.grdp File chrome/app/chromeos_strings.grdp (right): https://codereview.chromium.org/1523593002/diff/80001/chrome/app/chromeos_strings.grdp#newcode3555 chrome/app/chromeos_strings.grdp:3555: Show the input method menu on shelf. s/on shelf/on ...
4 years, 11 months ago (2016-01-04 17:58:10 UTC) #18
Azure Wei
https://codereview.chromium.org/1523593002/diff/80001/chrome/app/chromeos_strings.grdp File chrome/app/chromeos_strings.grdp (right): https://codereview.chromium.org/1523593002/diff/80001/chrome/app/chromeos_strings.grdp#newcode3555 chrome/app/chromeos_strings.grdp:3555: Show the input method menu on shelf. On 2016/01/04 ...
4 years, 11 months ago (2016-01-05 06:48:04 UTC) #19
stevenjb
lgtm https://codereview.chromium.org/1523593002/diff/100001/chrome/browser/resources/options/language_options.js File chrome/browser/resources/options/language_options.js (right): https://codereview.chromium.org/1523593002/diff/100001/chrome/browser/resources/options/language_options.js#newcode1444 chrome/browser/resources/options/language_options.js:1444: checkbox.checked, true); The preferred format is to align ...
4 years, 11 months ago (2016-01-05 17:31:13 UTC) #20
Shu Chen
lgtm
4 years, 11 months ago (2016-01-06 04:42:32 UTC) #21
Azure Wei
https://codereview.chromium.org/1523593002/diff/100001/chrome/browser/resources/options/language_options.js File chrome/browser/resources/options/language_options.js (right): https://codereview.chromium.org/1523593002/diff/100001/chrome/browser/resources/options/language_options.js#newcode1444 chrome/browser/resources/options/language_options.js:1444: checkbox.checked, true); On 2016/01/05 17:31:13, stevenjb wrote: > The ...
4 years, 11 months ago (2016-01-07 03:04:58 UTC) #22
michaelpg
thanks for removing the flag pref! just a couple style nits. https://codereview.chromium.org/1523593002/diff/140001/chrome/browser/resources/options/language_options.js File chrome/browser/resources/options/language_options.js (right): ...
4 years, 11 months ago (2016-01-08 02:43:40 UTC) #23
Azure Wei
https://codereview.chromium.org/1523593002/diff/140001/chrome/browser/resources/options/language_options.js File chrome/browser/resources/options/language_options.js (right): https://codereview.chromium.org/1523593002/diff/140001/chrome/browser/resources/options/language_options.js#newcode281 chrome/browser/resources/options/language_options.js:281: if (loadTimeData.getBoolean('enableLanguageOptionsImeMenu')) { On 2016/01/08 02:43:40, michaelpg wrote: > ...
4 years, 11 months ago (2016-01-08 03:02:38 UTC) #24
michaelpg
lgtm
4 years, 11 months ago (2016-01-08 03:09:49 UTC) #25
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1523593002/160001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1523593002/160001
4 years, 11 months ago (2016-01-08 03:11:19 UTC) #30
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: win_chromium_x64_rel_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_x64_rel_ng/builds/151593)
4 years, 11 months ago (2016-01-08 03:47:45 UTC) #32
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1523593002/180001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1523593002/180001
4 years, 11 months ago (2016-01-08 07:40:03 UTC) #34
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_chromium_chromeos_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_rel_ng/builds/149698)
4 years, 11 months ago (2016-01-08 08:49:18 UTC) #36
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1523593002/200001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1523593002/200001
4 years, 11 months ago (2016-01-10 06:12:28 UTC) #38
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 11 months ago (2016-01-10 06:55:03 UTC) #43
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1523593002/200001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1523593002/200001
4 years, 11 months ago (2016-01-10 06:56:56 UTC) #46
commit-bot: I haz the power
Committed patchset #11 (id:200001)
4 years, 11 months ago (2016-01-10 07:01:26 UTC) #48
commit-bot: I haz the power
4 years, 11 months ago (2016-01-10 07:02:29 UTC) #50
Message was sent while issue was closed.
Patchset 11 (id:??) landed as
https://crrev.com/103ed21273e49ddff067a378d0eed30a816bd1b4
Cr-Commit-Position: refs/heads/master@{#368529}

Powered by Google App Engine
This is Rietveld 408576698