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

Issue 2436723002: Override keyset with the IME layout info. (Closed)

Created:
4 years, 2 months ago by Azure Wei
Modified:
4 years, 1 month ago
Reviewers:
Shu Chen
CC:
chromium-reviews, nona+watch_chromium.org, oshima+watch_chromium.org, shuchen+watch_chromium.org, yusukes+watch_chromium.org, davemoore+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Override keyset with the IME layout info. For system IME extension, the default input view url is: chrome-extension://${extension_id}/inputview.html#id=us.compact.qwerty&language=en-US&passwordLayout=us.compact.qwerty&name=keyboard_us To show the keyboard with emoji/handwriting keyset directly, we used to override the default input view url as "id=emoji/hwt" directly. While, the keyboard needs to know the default keyset to get the right 'back to main layout' behavior. Thus, we override the url as id=${keyset}.emoji/hwt to pass the default keyset and specific keyset info together. Reload the keyset to notify the hash changed when hide keyboard. Thus the VK will get the onhashchange event when show with from clicking voice button for many times. BUG=654247, 654248 TEST=InputMethodManagerImplTest.Override* Committed: https://crrev.com/9abb3ee29957feee6fa1eacb407238fbc9b48a6e Cr-Commit-Position: refs/heads/master@{#427637}

Patch Set 1 #

Patch Set 2 : No need to reload. #

Patch Set 3 : Add call of Reload() back. #

Total comments: 2

Patch Set 4 : Make safer replacement. #

Total comments: 1

Patch Set 5 : Addressed comments. #

Patch Set 6 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+19 lines, -21 lines) Patch
M chrome/browser/chromeos/input_method/input_method_manager_impl.cc View 1 2 3 4 1 chunk +12 lines, -7 lines 0 comments Download
M chrome/browser/chromeos/input_method/input_method_manager_impl_unittest.cc View 2 chunks +7 lines, -14 lines 0 comments Download

Messages

Total messages: 30 (16 generated)
Azure Wei
Please review this CL. Thanks!
4 years, 2 months ago (2016-10-19 12:05:35 UTC) #3
Azure Wei
On 2016/10/19 12:05:35, Azure Wei wrote: > Please review this CL. Thanks! Removed the calling ...
4 years, 2 months ago (2016-10-21 07:06:58 UTC) #4
Azure Wei
On 2016/10/21 07:06:58, Azure Wei wrote: > On 2016/10/19 12:05:35, Azure Wei wrote: > > ...
4 years, 2 months ago (2016-10-22 05:09:19 UTC) #10
Shu Chen
https://codereview.chromium.org/2436723002/diff/30001/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/2436723002/diff/30001/chrome/browser/chromeos/input_method/input_method_manager_impl.cc#newcode1248 chrome/browser/chromeos/input_method/input_method_manager_impl.cc:1248: overridden_ref.replace(j, 0, "." + keyset); To reduce the risk ...
4 years, 2 months ago (2016-10-24 01:30:47 UTC) #11
Azure Wei
https://codereview.chromium.org/2436723002/diff/30001/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/2436723002/diff/30001/chrome/browser/chromeos/input_method/input_method_manager_impl.cc#newcode1248 chrome/browser/chromeos/input_method/input_method_manager_impl.cc:1248: overridden_ref.replace(j, 0, "." + keyset); On 2016/10/24 01:30:47, Shu ...
4 years, 2 months ago (2016-10-24 08:11:09 UTC) #12
Shu Chen
lgtm https://codereview.chromium.org/2436723002/diff/50001/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/2436723002/diff/50001/chrome/browser/chromeos/input_method/input_method_manager_impl.cc#newcode1248 chrome/browser/chromeos/input_method/input_method_manager_impl.cc:1248: if (j == std::string::npos) if (j == std::string::npos) ...
4 years, 1 month ago (2016-10-25 13:24:59 UTC) #13
Azure Wei
On 2016/10/25 13:24:59, Shu Chen wrote: > lgtm > > https://codereview.chromium.org/2436723002/diff/50001/chrome/browser/chromeos/input_method/input_method_manager_impl.cc > File chrome/browser/chromeos/input_method/input_method_manager_impl.cc (right): ...
4 years, 1 month ago (2016-10-26 02:06:12 UTC) #14
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/2436723002/70001
4 years, 1 month ago (2016-10-26 02:06:51 UTC) #17
commit-bot: I haz the power
Try jobs failed on following builders: chromeos_daisy_chromium_compile_only_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromeos_daisy_chromium_compile_only_ng/builds/223391) linux_chromium_chromeos_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, ...
4 years, 1 month ago (2016-10-26 02:22:09 UTC) #19
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/2436723002/70001
4 years, 1 month ago (2016-10-26 04:42:45 UTC) #21
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_ozone_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_ozone_rel_ng/builds/260301)
4 years, 1 month ago (2016-10-26 04:52:57 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/2436723002/90001
4 years, 1 month ago (2016-10-26 08:07:32 UTC) #26
commit-bot: I haz the power
Committed patchset #6 (id:90001)
4 years, 1 month ago (2016-10-26 08:39:08 UTC) #28
commit-bot: I haz the power
4 years, 1 month ago (2016-10-26 08:42:08 UTC) #30
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/9abb3ee29957feee6fa1eacb407238fbc9b48a6e
Cr-Commit-Position: refs/heads/master@{#427637}

Powered by Google App Engine
This is Rietveld 408576698