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

Issue 2603663002: Make IME extensions decide when to show the keyboard. (Closed)

Created:
3 years, 12 months ago by Azure Wei
Modified:
3 years, 11 months ago
Reviewers:
Shu Chen, bshe, stevenjb
CC:
chromium-reviews, sadrul, yusukes+watch_chromium.org, shuchen+watch_chromium.org, nona+watch_chromium.org, oshima+watch_chromium.org, kalyank, davemoore+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Make IME extensions decide when to show the keyboard. When opening emoji, handwriting or voice input from opt-in IME menu, InputMethodManager overrides the keyboard url to tell the VK to switch keyboard and ImeMenuTray call KeyboardController to show the VK. Since the VK is always back to main keyset when hidden, it will be on main keyset when shown, and get onhashchanged event to switch to e/h/v keyset. Thus, has a flash. To avoid the flash of main keyset, we need to make IME extension decide when to bring up the VK. So if the KeyboardController is initialized, and keyboard has been loaded once, it means IME extension could bring up the VK. Don't show keyboard from ImeMenuTray. BUG=667609 TEST=Verfied on local build. Review-Url: https://codereview.chromium.org/2603663002 Cr-Commit-Position: refs/heads/master@{#442161} Committed: https://chromium.googlesource.com/chromium/src/+/886f64844d90cffa12dbf183eba086becaf819a0

Patch Set 1 #

Total comments: 4

Patch Set 2 : Rename as IsKeyboardWindowCreated(). #

Patch Set 3 #

Total comments: 4

Patch Set 4 : Addressed comments. #

Total comments: 8

Patch Set 5 : Addressed comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+38 lines, -4 lines) Patch
M ash/common/system/chromeos/ime_menu/ime_menu_tray.cc View 1 2 3 4 3 chunks +17 lines, -1 line 0 comments Download
M chrome/browser/chromeos/input_method/input_method_manager_impl.cc View 1 2 4 chunks +14 lines, -3 lines 0 comments Download
M ui/keyboard/keyboard_controller.h View 1 1 chunk +3 lines, -0 lines 0 comments Download
M ui/keyboard/keyboard_controller.cc View 1 2 3 1 chunk +4 lines, -0 lines 0 comments Download

Messages

Total messages: 31 (15 generated)
Azure Wei
Hi Shu, please review this CL. Thanks!
3 years, 12 months ago (2016-12-25 06:08:48 UTC) #3
mcx.dinhof
On 2016/12/25 06:08:48, Azure Wei wrote: > Hi Shu, please review this CL. Thanks!
3 years, 12 months ago (2016-12-25 20:27:15 UTC) #8
Shu Chen
https://codereview.chromium.org/2603663002/diff/1/ash/common/system/chromeos/ime_menu/ime_menu_tray.cc File ash/common/system/chromeos/ime_menu/ime_menu_tray.cc (right): https://codereview.chromium.org/2603663002/diff/1/ash/common/system/chromeos/ime_menu/ime_menu_tray.cc#newcode437 ash/common/system/chromeos/ime_menu/ime_menu_tray.cc:437: // show keyboard, OS need to trigger it. Otherwise, ...
3 years, 12 months ago (2016-12-26 02:16:39 UTC) #9
Azure Wei
https://codereview.chromium.org/2603663002/diff/1/ash/common/system/chromeos/ime_menu/ime_menu_tray.cc File ash/common/system/chromeos/ime_menu/ime_menu_tray.cc (right): https://codereview.chromium.org/2603663002/diff/1/ash/common/system/chromeos/ime_menu/ime_menu_tray.cc#newcode437 ash/common/system/chromeos/ime_menu/ime_menu_tray.cc:437: // show keyboard, OS need to trigger it. Otherwise, ...
3 years, 12 months ago (2016-12-26 06:53:31 UTC) #10
Shu Chen
lgtm
3 years, 12 months ago (2016-12-26 07:06:38 UTC) #11
Azure Wei
+bshe for ui/keyboard
3 years, 12 months ago (2016-12-26 07:22:47 UTC) #13
bshe
ui/keyboard lgtm https://codereview.chromium.org/2603663002/diff/40001/ash/common/system/chromeos/ime_menu/ime_menu_tray.cc File ash/common/system/chromeos/ime_menu/ime_menu_tray.cc (right): https://codereview.chromium.org/2603663002/diff/40001/ash/common/system/chromeos/ime_menu/ime_menu_tray.cc#newcode444 ash/common/system/chromeos/ime_menu/ime_menu_tray.cc:444: // window here (which will cause the ...
3 years, 11 months ago (2016-12-29 19:22:16 UTC) #14
Azure Wei
https://codereview.chromium.org/2603663002/diff/40001/ash/common/system/chromeos/ime_menu/ime_menu_tray.cc File ash/common/system/chromeos/ime_menu/ime_menu_tray.cc (right): https://codereview.chromium.org/2603663002/diff/40001/ash/common/system/chromeos/ime_menu/ime_menu_tray.cc#newcode444 ash/common/system/chromeos/ime_menu/ime_menu_tray.cc:444: // window here (which will cause the keyboard window ...
3 years, 11 months ago (2017-01-03 03:37:40 UTC) #15
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/2603663002/60001
3 years, 11 months ago (2017-01-03 03:38:31 UTC) #18
Azure Wei
+stevenjb for ash/common/system/chromeos/.
3 years, 11 months ago (2017-01-03 03:39:55 UTC) #20
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/333819)
3 years, 11 months ago (2017-01-03 03:46:04 UTC) #22
Azure Wei
ping~
3 years, 11 months ago (2017-01-06 05:01:58 UTC) #23
stevenjb
owner lgtm w/ nits https://codereview.chromium.org/2603663002/diff/60001/ash/common/system/chromeos/ime_menu/ime_menu_tray.cc File ash/common/system/chromeos/ime_menu/ime_menu_tray.cc (right): https://codereview.chromium.org/2603663002/diff/60001/ash/common/system/chromeos/ime_menu/ime_menu_tray.cc#newcode370 ash/common/system/chromeos/ime_menu/ime_menu_tray.cc:370: } nit: no {} https://codereview.chromium.org/2603663002/diff/60001/ash/common/system/chromeos/ime_menu/ime_menu_tray.cc#newcode458 ...
3 years, 11 months ago (2017-01-06 16:59:39 UTC) #24
Azure Wei
Thanks! https://codereview.chromium.org/2603663002/diff/60001/ash/common/system/chromeos/ime_menu/ime_menu_tray.cc File ash/common/system/chromeos/ime_menu/ime_menu_tray.cc (right): https://codereview.chromium.org/2603663002/diff/60001/ash/common/system/chromeos/ime_menu/ime_menu_tray.cc#newcode370 ash/common/system/chromeos/ime_menu/ime_menu_tray.cc:370: } On 2017/01/06 16:59:39, stevenjb wrote: > nit: ...
3 years, 11 months ago (2017-01-07 07:03:32 UTC) #25
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/2603663002/80001
3 years, 11 months ago (2017-01-07 07:03:47 UTC) #28
commit-bot: I haz the power
3 years, 11 months ago (2017-01-07 08:39:16 UTC) #31
Message was sent while issue was closed.
Committed patchset #5 (id:80001) as
https://chromium.googlesource.com/chromium/src/+/886f64844d90cffa12dbf183eba0...

Powered by Google App Engine
This is Rietveld 408576698