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

Issue 2953033002: Hide handwriting and voice buttons when keyboard is in restricted state (Closed)

Created:
3 years, 6 months ago by Azure Wei
Modified:
3 years, 5 months ago
CC:
chromium-reviews, extensions-reviews_chromium.org, sadrul, yusukes+watch_chromium.org, shuchen+watch_chromium.org, nona+watch_chromium.org, oshima+watch_chromium.org, chromium-apps-reviews_chromium.org, kalyank, James Su, davemoore+watch_chromium.org, sky
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Hide handwriting and voice buttons when keyboard is in restricted state. When the virtual keyboard is in restricted state, some advanced features like handwriting and voice are disabled. We should also hide the handwriting and voice buttons on the opt-in IME menu. Add InputMethodManager::SetImeMenuFeatureEnabled() method to enable or disable of each feature. ImeMenuTray use InputMethodManager::GetImeMenuFeatureEnabled() to make decision whether to show each button when showing tray view. BUG=710242 TEST=Unit test Review-Url: https://codereview.chromium.org/2953033002 Cr-Commit-Position: refs/heads/master@{#483706} Committed: https://chromium.googlesource.com/chromium/src/+/079691f9dc9e49f549fa38132e8c98b69537b2c7

Patch Set 1 #

Patch Set 2 : Add InputMethodManager::FeaturesRestrictedState #

Total comments: 22

Patch Set 3 : addressed reviewer's comments #

Patch Set 4 #

Total comments: 22

Patch Set 5 : Rename Set/GetImeMenuFeatureEnabled #

Total comments: 2

Patch Set 6 : Add FEATURE_ALL #

Unified diffs Side-by-side diffs Delta from patch set Stats (+235 lines, -38 lines) Patch
M ash/system/ime_menu/ime_menu_tray.h View 1 2 2 chunks +4 lines, -1 line 0 comments Download
M ash/system/ime_menu/ime_menu_tray.cc View 1 2 3 4 5 7 chunks +53 lines, -25 lines 0 comments Download
M ash/system/ime_menu/ime_menu_tray_unittest.cc View 1 2 3 4 3 chunks +70 lines, -9 lines 0 comments Download
M chrome/browser/chromeos/input_method/input_method_manager_impl.h View 1 2 3 4 3 chunks +5 lines, -1 line 0 comments Download
M chrome/browser/chromeos/input_method/input_method_manager_impl.cc View 1 2 3 4 5 2 chunks +15 lines, -1 line 0 comments Download
M chrome/browser/chromeos/input_method/input_method_manager_impl_unittest.cc View 1 2 3 4 5 1 chunk +38 lines, -0 lines 0 comments Download
M extensions/browser/api/virtual_keyboard/virtual_keyboard_api.cc View 1 2 3 4 2 chunks +17 lines, -0 lines 0 comments Download
M ui/base/ime/chromeos/input_method_manager.h View 1 2 3 4 5 2 chunks +14 lines, -0 lines 0 comments Download
M ui/base/ime/chromeos/mock_input_method_manager.h View 1 2 3 4 1 chunk +4 lines, -0 lines 0 comments Download
M ui/base/ime/chromeos/mock_input_method_manager.cc View 1 2 3 4 5 2 chunks +15 lines, -1 line 0 comments Download

Messages

Total messages: 47 (27 generated)
Azure Wei
Hi, please review this CL. Thanks!
3 years, 6 months ago (2017-06-22 14:06:38 UTC) #6
Azure Wei
ping~
3 years, 6 months ago (2017-06-24 07:20:05 UTC) #14
sky
+jamescook as he's been working on ime related conversion.
3 years, 5 months ago (2017-06-26 15:52:08 UTC) #16
sky
+bshe for extensions https://codereview.chromium.org/2953033002/diff/20001/chrome/browser/chromeos/input_method/input_method_manager_impl.cc File chrome/browser/chromeos/input_method/input_method_manager_impl.cc (right): https://codereview.chromium.org/2953033002/diff/20001/chrome/browser/chromeos/input_method/input_method_manager_impl.cc#newcode1352 chrome/browser/chromeos/input_method/input_method_manager_impl.cc:1352: if (restricted) { no {} https://codereview.chromium.org/2953033002/diff/20001/ui/base/ime/chromeos/input_method_manager.h ...
3 years, 5 months ago (2017-06-26 15:55:12 UTC) #18
bshe
On 2017/06/26 15:55:12, sky wrote: > +bshe for extensions > > https://codereview.chromium.org/2953033002/diff/20001/chrome/browser/chromeos/input_method/input_method_manager_impl.cc > File chrome/browser/chromeos/input_method/input_method_manager_impl.cc ...
3 years, 5 months ago (2017-06-26 16:22:57 UTC) #19
James Cook
sky, I will take over the review. azurewei, can you try a slightly different way ...
3 years, 5 months ago (2017-06-26 17:21:20 UTC) #21
Azure Wei
On 2017/06/26 17:21:20, James Cook wrote: > sky, I will take over the review. > ...
3 years, 5 months ago (2017-06-27 14:26:56 UTC) #22
Azure Wei
https://codereview.chromium.org/2953033002/diff/20001/ash/system/ime_menu/ime_menu_tray.cc File ash/system/ime_menu/ime_menu_tray.cc (right): https://codereview.chromium.org/2953033002/diff/20001/ash/system/ime_menu/ime_menu_tray.cc#newcode179 ash/system/ime_menu/ime_menu_tray.cc:179: explicit ImeButtonsView(ImeMenuTray* ime_menu_tray, On 2017/06/26 17:21:19, James Cook wrote: ...
3 years, 5 months ago (2017-06-27 14:27:15 UTC) #23
James Cook
Not using mojo is fine for this CL, but you will need to learn at ...
3 years, 5 months ago (2017-06-27 16:31:11 UTC) #24
tbarzic
https://codereview.chromium.org/2953033002/diff/60001/extensions/browser/api/virtual_keyboard/virtual_keyboard_api.cc File extensions/browser/api/virtual_keyboard/virtual_keyboard_api.cc (right): https://codereview.chromium.org/2953033002/diff/60001/extensions/browser/api/virtual_keyboard/virtual_keyboard_api.cc#newcode46 extensions/browser/api/virtual_keyboard/virtual_keyboard_api.cc:46: params->restrictions.voice_input_enabled); On 2017/06/27 16:31:11, James Cook wrote: > Are ...
3 years, 5 months ago (2017-06-27 17:51:19 UTC) #26
Azure Wei
https://codereview.chromium.org/2953033002/diff/60001/ash/system/ime_menu/ime_menu_tray.cc File ash/system/ime_menu/ime_menu_tray.cc (right): https://codereview.chromium.org/2953033002/diff/60001/ash/system/ime_menu/ime_menu_tray.cc#newcode360 ash/system/ime_menu/ime_menu_tray.cc:360: if (show_bottom_buttons) On 2017/06/27 16:31:11, James Cook wrote: > ...
3 years, 5 months ago (2017-06-29 16:37:03 UTC) #27
James Cook
LGTM https://codereview.chromium.org/2953033002/diff/60001/extensions/browser/api/virtual_keyboard/virtual_keyboard_api.cc File extensions/browser/api/virtual_keyboard/virtual_keyboard_api.cc (right): https://codereview.chromium.org/2953033002/diff/60001/extensions/browser/api/virtual_keyboard/virtual_keyboard_api.cc#newcode34 extensions/browser/api/virtual_keyboard/virtual_keyboard_api.cc:34: return RespondNow( On 2017/06/29 16:37:03, Azure Wei wrote: ...
3 years, 5 months ago (2017-06-29 16:48:29 UTC) #28
James Cook
On 2017/06/29 16:48:29, James Cook wrote: > LGTM > > https://codereview.chromium.org/2953033002/diff/60001/extensions/browser/api/virtual_keyboard/virtual_keyboard_api.cc > File extensions/browser/api/virtual_keyboard/virtual_keyboard_api.cc (right): ...
3 years, 5 months ago (2017-06-29 22:47:09 UTC) #29
Azure Wei
https://codereview.chromium.org/2953033002/diff/80001/chrome/browser/chromeos/input_method/input_method_manager_impl.cc File chrome/browser/chromeos/input_method/input_method_manager_impl.cc (right): https://codereview.chromium.org/2953033002/diff/80001/chrome/browser/chromeos/input_method/input_method_manager_impl.cc#newcode863 chrome/browser/chromeos/input_method/input_method_manager_impl.cc:863: features_enabled_state_(~0) { On 2017/06/29 16:48:29, James Cook wrote: > ...
3 years, 5 months ago (2017-06-30 03:09:37 UTC) #31
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/2953033002/100001
3 years, 5 months ago (2017-06-30 03:55:31 UTC) #38
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/478290)
3 years, 5 months ago (2017-06-30 04:01:40 UTC) #40
Shu Chen
lgtm
3 years, 5 months ago (2017-06-30 14:19:13 UTC) #41
James Cook
Because it's late Friday night in China and this is fixing a P0 bug I'm ...
3 years, 5 months ago (2017-06-30 15:00:28 UTC) #42
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/2953033002/100001
3 years, 5 months ago (2017-06-30 15:00:48 UTC) #44
commit-bot: I haz the power
3 years, 5 months ago (2017-06-30 15:04:41 UTC) #47
Message was sent while issue was closed.
Committed patchset #6 (id:100001) as
https://chromium.googlesource.com/chromium/src/+/079691f9dc9e49f549fa38132e8c...

Powered by Google App Engine
This is Rietveld 408576698