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

Issue 2557493002: IME for Mus: Use ui::InputMethodChromeOS to provide logic for ime driver. (Closed)

Created:
4 years ago by Hadi
Modified:
4 years ago
Reviewers:
Shu Chen, sadrul, sky
CC:
chromium-reviews, sadrul, yusukes+watch_chromium.org, tfarina, shuchen+watch_chromium.org, nona+watch_chromium.org, kalyank, James Su
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

IME for Mus: Use ui::InputMethodChromeOS to provide logic for ime driver. The goal of this CL is to modify content_browser's IMEDriver so we have access to ui::InputMethodChromeOS's functionality in mus+ash. This CL: - Modifies ui::InputMethodChromeOS so it can call an ack callback after processing events. - Introduces InputMethodBridge to acts as a bridge between ui::mojom::InputMethod and ui::InputMethodChromeOS. - Introduces RemoteTextInputClient to send commands received from ui::InputMethodChromeOS to a remote client over mojo IPC. - Modifies content_browser's IMEDriver implementation to use ui::InputMethodChromeOS via InputMethodBridge. - Some unittests to verify that InputMethodBridge works correctly. BUG=665981 Committed: https://crrev.com/b171ff9c2c408898b6678001574019efefc42b09 Cr-Commit-Position: refs/heads/master@{#437955}

Patch Set 1 #

Patch Set 2 : . #

Patch Set 3 : Unittest works. #

Patch Set 4 : Works. #

Patch Set 5 : Cleanup. #

Patch Set 6 : Cleanup. #

Patch Set 7 : Cleanup and more unittests. #

Patch Set 8 : Small fix. #

Patch Set 9 : . #

Total comments: 15

Patch Set 10 : Addressed feedback. #

Patch Set 11 : a bit more comment. #

Patch Set 12 : More cleanup. #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+652 lines, -203 lines) Patch
M chrome/browser/ui/BUILD.gn View 1 2 3 4 5 6 7 8 9 1 chunk +8 lines, -2 lines 0 comments Download
M chrome/browser/ui/views/chrome_browser_main_extra_parts_views.cc View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -1 line 0 comments Download
A + chrome/browser/ui/views/ime_driver/ime_driver_mus.h View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +4 lines, -5 lines 0 comments Download
A + chrome/browser/ui/views/ime_driver/ime_driver_mus.cc View 1 2 3 4 5 6 7 8 9 10 11 4 chunks +19 lines, -38 lines 0 comments Download
A chrome/browser/ui/views/ime_driver/input_method_bridge_chromeos.h View 1 2 3 4 5 6 1 chunk +35 lines, -0 lines 0 comments Download
A chrome/browser/ui/views/ime_driver/input_method_bridge_chromeos.cc View 1 2 3 4 5 6 7 8 9 1 chunk +48 lines, -0 lines 0 comments Download
A chrome/browser/ui/views/ime_driver/input_method_bridge_chromeos_unittest.cc View 1 2 3 4 5 6 7 8 9 1 chunk +200 lines, -0 lines 0 comments Download
A chrome/browser/ui/views/ime_driver/remote_text_input_client.h View 1 2 3 4 5 6 7 8 9 1 chunk +55 lines, -0 lines 0 comments Download
A chrome/browser/ui/views/ime_driver/remote_text_input_client.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +163 lines, -0 lines 0 comments Download
A chrome/browser/ui/views/ime_driver/simple_input_method.h View 1 2 3 4 5 6 7 8 9 1 chunk +33 lines, -0 lines 0 comments Download
A chrome/browser/ui/views/ime_driver/simple_input_method.cc View 1 2 3 4 5 6 7 8 9 1 chunk +25 lines, -0 lines 0 comments Download
D chrome/browser/ui/views/ime_driver_mus.h View 1 chunk +0 lines, -39 lines 0 comments Download
D chrome/browser/ui/views/ime_driver_mus.cc View 1 chunk +0 lines, -77 lines 0 comments Download
M chrome/test/BUILD.gn View 1 2 3 4 5 6 7 8 9 1 chunk +3 lines, -0 lines 0 comments Download
M ui/aura/mus/text_input_client_impl.cc View 1 chunk +1 line, -3 lines 1 comment Download
M ui/base/ime/input_method_chromeos.h View 2 chunks +7 lines, -1 line 0 comments Download
M ui/base/ime/input_method_chromeos.cc View 1 2 3 4 2 chunks +49 lines, -34 lines 0 comments Download
M ui/views/mus/text_input_client_impl.cc View 1 chunk +1 line, -3 lines 1 comment Download

Messages

Total messages: 41 (26 generated)
Hadi
After this CL, CharacterComposer works in mus+ash, and at least one input method extension works ...
4 years ago (2016-12-07 20:05:02 UTC) #6
Shu Chen
https://codereview.chromium.org/2557493002/diff/160001/ui/base/ime/input_method_chromeos.cc File ui/base/ime/input_method_chromeos.cc (right): https://codereview.chromium.org/2557493002/diff/160001/ui/base/ime/input_method_chromeos.cc#newcode142 ui/base/ime/input_method_chromeos.cc:142: ack_callback->Run(is_handled); Not sure whether this has already been considered. ...
4 years ago (2016-12-09 03:30:17 UTC) #15
Hadi
On 2016/12/09 03:30:17, Shu Chen wrote: > https://codereview.chromium.org/2557493002/diff/160001/ui/base/ime/input_method_chromeos.cc > File ui/base/ime/input_method_chromeos.cc (right): > > https://codereview.chromium.org/2557493002/diff/160001/ui/base/ime/input_method_chromeos.cc#newcode142 ...
4 years ago (2016-12-09 04:40:01 UTC) #16
Shu Chen
On 2016/12/09 04:40:01, Hadi wrote: > On 2016/12/09 03:30:17, Shu Chen wrote: > > > ...
4 years ago (2016-12-10 12:38:52 UTC) #17
Shu Chen
lgtm
4 years ago (2016-12-10 12:39:35 UTC) #18
sky
https://codereview.chromium.org/2557493002/diff/160001/chrome/browser/ui/views/ime_driver/input_method_bridge_chromeos.cc File chrome/browser/ui/views/ime_driver/input_method_bridge_chromeos.cc (right): https://codereview.chromium.org/2557493002/diff/160001/chrome/browser/ui/views/ime_driver/input_method_bridge_chromeos.cc#newcode10 chrome/browser/ui/views/ime_driver/input_method_bridge_chromeos.cc:10: : client_(new RemoteTextInputClient(std::move(client))), MakeUnique where possible. https://codereview.chromium.org/2557493002/diff/160001/chrome/browser/ui/views/ime_driver/input_method_bridge_chromeos_unittest.cc File chrome/browser/ui/views/ime_driver/input_method_bridge_chromeos_unittest.cc ...
4 years ago (2016-12-12 02:16:21 UTC) #19
Hadi
Thanks for feedback. All were addressed. https://codereview.chromium.org/2557493002/diff/160001/chrome/browser/ui/views/ime_driver/input_method_bridge_chromeos.cc File chrome/browser/ui/views/ime_driver/input_method_bridge_chromeos.cc (right): https://codereview.chromium.org/2557493002/diff/160001/chrome/browser/ui/views/ime_driver/input_method_bridge_chromeos.cc#newcode10 chrome/browser/ui/views/ime_driver/input_method_bridge_chromeos.cc:10: : client_(new RemoteTextInputClient(std::move(client))), ...
4 years ago (2016-12-12 16:04:58 UTC) #24
sky
LGTM
4 years ago (2016-12-12 16:13:35 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/2557493002/220001
4 years ago (2016-12-12 16:29:31 UTC) #30
sadrul
Would it make sense to move the ime_driver out of chrome, because right now, it ...
4 years ago (2016-12-12 18:50:16 UTC) #31
Hadi
Thanks for comments. On 2016/12/12 18:50:16, sadrul wrote: > Would it make sense to move ...
4 years ago (2016-12-12 19:10:22 UTC) #32
sadrul
sg. lgtm
4 years ago (2016-12-12 19:11:33 UTC) #33
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/2557493002/220001
4 years ago (2016-12-12 21:35:05 UTC) #36
commit-bot: I haz the power
Committed patchset #12 (id:220001)
4 years ago (2016-12-12 23:30:17 UTC) #39
commit-bot: I haz the power
4 years ago (2016-12-12 23:32:08 UTC) #41
Message was sent while issue was closed.
Patchset 12 (id:??) landed as
https://crrev.com/b171ff9c2c408898b6678001574019efefc42b09
Cr-Commit-Position: refs/heads/master@{#437955}

Powered by Google App Engine
This is Rietveld 408576698