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

Issue 2230393002: IME for Mus: Make InputMethodMus use the IME Mojo API. (Closed)

Created:
4 years, 4 months ago by Hadi
Modified:
4 years, 3 months ago
CC:
chromium-reviews, tfarina
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

IME for Mus: Make InputMethodMus use the IME Mojo API. This CL: * Uses Mus' IMEServer to do the IME logic in InputMethodMus. * Adds unittests to test InputMethodMus. * Starts test_ime_driver on mus+ash session startup. * Modifies test_ime_driver to not-handle non character events. BUG=548407 Committed: https://crrev.com/aa4f90ab72b60fd90e048b1e18193c30f0462d77 Committed: https://crrev.com/b26c35f30555178bfea1c07b47801fb58222fb0f Cr-Original-Commit-Position: refs/heads/master@{#414748} Cr-Commit-Position: refs/heads/master@{#415646}

Patch Set 1 #

Patch Set 2 : basic structure - not working yet. #

Patch Set 3 : It works. #

Patch Set 4 : Implement most of InputMethodMus. #

Patch Set 5 : Tests pass. #

Patch Set 6 : Cleanup. #

Total comments: 16

Patch Set 7 : Addressed feedback. #

Patch Set 8 : Fix dependencies #

Total comments: 1

Patch Set 9 : Send all key events to IME. #

Patch Set 10 : Modify unittests to cover non-char events. #

Total comments: 3

Patch Set 11 : Addressed feedback. #

Patch Set 12 : Rebased. #

Total comments: 17

Patch Set 13 : Addressed feedback. #

Patch Set 14 : reformat a comment. #

Patch Set 15 : Fix dependencies. #

Total comments: 4

Patch Set 16 : . #

Patch Set 17 : Enable running on "chrome --mash". #

Patch Set 18 : Update mash_browser_tests_manifest. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+458 lines, -82 lines) Patch
M chrome/app/mash/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/test/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 2 chunks +2 lines, -0 lines 0 comments Download
M mash/package/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +1 line, -0 lines 0 comments Download
M mash/package/DEPS View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +1 line, -0 lines 0 comments Download
M mash/package/mash_packaged_service.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 2 chunks +3 lines, -0 lines 0 comments Download
M services/ui/ime/ime_server_impl.h View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +5 lines, -0 lines 0 comments Download
M services/ui/ime/ime_server_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +7 lines, -0 lines 0 comments Download
M services/ui/ime/ime_unittest.cc View 1 2 3 4 5 6 7 8 9 3 chunks +36 lines, -10 lines 0 comments Download
M services/ui/ime/test_ime_driver/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 2 chunks +17 lines, -3 lines 0 comments Download
M services/ui/ime/test_ime_driver/main.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +2 lines, -29 lines 0 comments Download
A services/ui/ime/test_ime_driver/test_ime_application.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +30 lines, -0 lines 0 comments Download
A services/ui/ime/test_ime_driver/test_ime_application.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +33 lines, -0 lines 0 comments Download
M services/ui/ime/test_ime_driver/test_ime_driver.cc View 1 2 3 4 5 6 7 8 1 chunk +9 lines, -5 lines 0 comments Download
M services/ui/public/interfaces/ime.mojom View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +9 lines, -0 lines 0 comments Download
M services/ui/service.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +2 lines, -0 lines 0 comments Download
M ui/views/mus/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 3 chunks +4 lines, -0 lines 0 comments Download
M ui/views/mus/input_method_mus.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 3 chunks +20 lines, -6 lines 0 comments Download
M ui/views/mus/input_method_mus.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 3 chunks +60 lines, -26 lines 0 comments Download
A ui/views/mus/input_method_mus_unittest.cc View 1 2 3 4 5 6 7 8 9 1 chunk +99 lines, -0 lines 0 comments Download
M ui/views/mus/native_widget_mus.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 2 chunks +8 lines, -0 lines 0 comments Download
A ui/views/mus/text_input_client_impl.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +43 lines, -0 lines 0 comments Download
A ui/views/mus/text_input_client_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +55 lines, -0 lines 0 comments Download
M ui/views/mus/window_tree_host_mus.h View 1 4 chunks +5 lines, -2 lines 0 comments Download
M ui/views/mus/window_tree_host_mus.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 2 chunks +5 lines, -1 line 0 comments Download

Messages

Total messages: 63 (37 generated)
Hadi
PTAL.
4 years, 4 months ago (2016-08-12 21:35:53 UTC) #3
Hadi
sadrul@ how does this look?
4 years, 4 months ago (2016-08-16 14:33:18 UTC) #4
sadrul
https://codereview.chromium.org/2230393002/diff/100001/ui/views/mus/input_method_mus.cc File ui/views/mus/input_method_mus.cc (right): https://codereview.chromium.org/2230393002/diff/100001/ui/views/mus/input_method_mus.cc#newcode122 ui/views/mus/input_method_mus.cc:122: ime_server_->StartSession(std::move(client_ptr), GetProxy(&input_method_)); Maybe this is simpler as: text_input_client_.reset(new ClientImpl(focused)); ...
4 years, 4 months ago (2016-08-16 20:01:52 UTC) #5
Hadi
https://codereview.chromium.org/2230393002/diff/100001/ui/views/mus/input_method_mus.cc File ui/views/mus/input_method_mus.cc (right): https://codereview.chromium.org/2230393002/diff/100001/ui/views/mus/input_method_mus.cc#newcode122 ui/views/mus/input_method_mus.cc:122: ime_server_->StartSession(std::move(client_ptr), GetProxy(&input_method_)); On 2016/08/16 20:01:51, sadrul wrote: > Maybe ...
4 years, 4 months ago (2016-08-16 20:18:25 UTC) #6
sadrul
https://codereview.chromium.org/2230393002/diff/140001/ui/views/mus/input_method_mus.cc File ui/views/mus/input_method_mus.cc (right): https://codereview.chromium.org/2230393002/diff/140001/ui/views/mus/input_method_mus.cc#newcode67 ui/views/mus/input_method_mus.cc:67: input_method_->ProcessKeyEvent(ui::Event::Clone(*event)); Wait, this seems backwards. We are supposed to ...
4 years, 4 months ago (2016-08-16 22:32:02 UTC) #13
Hadi
PTAL. Now InputMethodMus sends all char and non-char key events to IME driver. test_ime_driver sends ...
4 years, 4 months ago (2016-08-17 21:41:13 UTC) #16
sadrul
https://codereview.chromium.org/2230393002/diff/180001/services/ui/public/interfaces/ime.mojom File services/ui/public/interfaces/ime.mojom (right): https://codereview.chromium.org/2230393002/diff/180001/services/ui/public/interfaces/ime.mojom#newcode105 services/ui/public/interfaces/ime.mojom:105: OnUnhandledEvent(ui.mojom.Event key_event); Document. https://codereview.chromium.org/2230393002/diff/180001/ui/views/mus/text_input_client_impl.cc File ui/views/mus/text_input_client_impl.cc (right): https://codereview.chromium.org/2230393002/diff/180001/ui/views/mus/text_input_client_impl.cc#newcode29 ui/views/mus/text_input_client_impl.cc:29: ...
4 years, 4 months ago (2016-08-18 03:57:58 UTC) #18
Hadi
Addressed feedback. PTAL.
4 years, 4 months ago (2016-08-18 14:07:56 UTC) #20
sadrul
lgtm
4 years, 4 months ago (2016-08-18 20:31:52 UTC) #24
Hadi
sky@ can you please provide OWNERS for mash/* and services/ui/*? tsepez@ can you please review ...
4 years, 4 months ago (2016-08-18 22:36:22 UTC) #26
sky
https://codereview.chromium.org/2230393002/diff/220001/mash/session/session.cc File mash/session/session.cc (right): https://codereview.chromium.org/2230393002/diff/220001/mash/session/session.cc#newcode114 mash/session/session.cc:114: StartRestartableService( Do we really need the Ime service to ...
4 years, 4 months ago (2016-08-18 23:43:08 UTC) #27
Tom Sepez
Mojom LGTM after updating comment per Sky's suggestion.
4 years, 4 months ago (2016-08-19 17:36:42 UTC) #28
Hadi
sky@: Addressed feedback. PTAL. https://codereview.chromium.org/2230393002/diff/220001/mash/session/session.cc File mash/session/session.cc (right): https://codereview.chromium.org/2230393002/diff/220001/mash/session/session.cc#newcode114 mash/session/session.cc:114: StartRestartableService( On 2016/08/18 23:43:07, sky ...
4 years, 3 months ago (2016-08-25 18:06:06 UTC) #29
sky
https://codereview.chromium.org/2230393002/diff/220001/ui/views/mus/input_method_mus.cc File ui/views/mus/input_method_mus.cc (right): https://codereview.chromium.org/2230393002/diff/220001/ui/views/mus/input_method_mus.cc#newcode67 ui/views/mus/input_method_mus.cc:67: event->StopPropagation(); On 2016/08/25 18:06:06, Hadi wrote: > On 2016/08/18 ...
4 years, 3 months ago (2016-08-25 20:17:53 UTC) #30
Hadi
https://codereview.chromium.org/2230393002/diff/280001/ui/views/mus/input_method_mus.h File ui/views/mus/input_method_mus.h (right): https://codereview.chromium.org/2230393002/diff/280001/ui/views/mus/input_method_mus.h#newcode54 ui/views/mus/input_method_mus.h:54: // The toplevel window which is not owned by ...
4 years, 3 months ago (2016-08-26 15:57:07 UTC) #31
sky
LGTM
4 years, 3 months ago (2016-08-26 16:02:38 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/2230393002/300001
4 years, 3 months ago (2016-08-26 17:35:40 UTC) #39
commit-bot: I haz the power
Committed patchset #16 (id:300001)
4 years, 3 months ago (2016-08-26 18:23:14 UTC) #41
commit-bot: I haz the power
Patchset 16 (id:??) landed as https://crrev.com/aa4f90ab72b60fd90e048b1e18193c30f0462d77 Cr-Commit-Position: refs/heads/master@{#414748}
4 years, 3 months ago (2016-08-26 18:25:32 UTC) #43
Elliot Glaysher
A revert of this CL (patchset #16 id:300001) has been created in https://codereview.chromium.org/2284003002/ by erg@chromium.org. ...
4 years, 3 months ago (2016-08-26 20:49:52 UTC) #44
sadrul
lgtm after the packaging change.
4 years, 3 months ago (2016-08-30 19:29:31 UTC) #46
Hadi
erg@ can you please try PS #17 on your side to make sure it fixes ...
4 years, 3 months ago (2016-08-30 19:35:24 UTC) #48
sky
On 2016/08/30 19:35:24, Hadi wrote: > erg@ can you please try PS #17 on your ...
4 years, 3 months ago (2016-08-30 22:15:28 UTC) #53
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/2230393002/340001
4 years, 3 months ago (2016-08-31 14:04:10 UTC) #59
commit-bot: I haz the power
Committed patchset #18 (id:340001)
4 years, 3 months ago (2016-08-31 16:17:15 UTC) #61
commit-bot: I haz the power
4 years, 3 months ago (2016-08-31 16:19:49 UTC) #63
Message was sent while issue was closed.
Patchset 18 (id:??) landed as
https://crrev.com/b26c35f30555178bfea1c07b47801fb58222fb0f
Cr-Commit-Position: refs/heads/master@{#415646}

Powered by Google App Engine
This is Rietveld 408576698