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

Issue 2412593002: IME for Mus: Send ack for key events after IME driver processes the event. (Closed)

Created:
4 years, 2 months ago by Hadi
Modified:
4 years, 2 months ago
Reviewers:
Tom Sepez, sadrul, sky
CC:
chromium-reviews, rjkroege, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, tfarina, yzshen+watch_chromium.org, abarth-chromium, Aaron Boodman, darin (slow to review)
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

IME for Mus: Send ack for key events after IME driver processes the event. Before this CL, we sent event ack back to window server without waiting to see if IME could handle the event or not. This caused some problems with post-target accelerators (see bug description for more details). This CL fixes the issue by delaying the ack until IME driver tells the client if it could handle the event or not. BUG=641355 Committed: https://crrev.com/a2a7eed25d00d069b36bba9a91de4e1c1473a62e Cr-Commit-Position: refs/heads/master@{#425701}

Patch Set 1 #

Patch Set 2 : It works. #

Patch Set 3 : Fixed mus_ime_unittests. #

Patch Set 4 : Some cleanup. #

Patch Set 5 : Fixed views_mus_unittests. #

Total comments: 2

Patch Set 6 : Addressed feedback. #

Total comments: 3

Patch Set 7 : Addressed feedback. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+126 lines, -97 lines) Patch
M services/ui/ime/ime_unittest.cc View 1 2 3 4 5 6 4 chunks +29 lines, -27 lines 0 comments Download
M services/ui/ime/test_ime_driver/test_ime_driver.cc View 1 2 3 4 5 6 2 chunks +5 lines, -3 lines 0 comments Download
M services/ui/public/interfaces/ime.mojom View 2 chunks +5 lines, -8 lines 0 comments Download
M ui/views/mus/input_method_mus.h View 1 2 3 4 5 6 3 chunks +13 lines, -1 line 0 comments Download
M ui/views/mus/input_method_mus.cc View 1 2 3 4 5 6 5 chunks +52 lines, -23 lines 0 comments Download
M ui/views/mus/native_widget_mus.h View 2 chunks +3 lines, -0 lines 0 comments Download
M ui/views/mus/native_widget_mus.cc View 1 4 chunks +14 lines, -5 lines 0 comments Download
M ui/views/mus/text_input_client_impl.h View 1 2 3 4 5 2 chunks +1 line, -4 lines 0 comments Download
M ui/views/mus/text_input_client_impl.cc View 2 chunks +2 lines, -11 lines 0 comments Download
M ui/views/mus/window_tree_host_mus.h View 1 2 3 4 5 6 3 chunks +0 lines, -4 lines 0 comments Download
M ui/views/mus/window_tree_host_mus.cc View 1 2 3 4 5 6 2 chunks +2 lines, -11 lines 0 comments Download

Messages

Total messages: 34 (24 generated)
Hadi
PTAL.
4 years, 2 months ago (2016-10-12 15:14:42 UTC) #10
sadrul
https://codereview.chromium.org/2412593002/diff/80001/ui/views/mus/input_method_mus.cc File ui/views/mus/input_method_mus.cc (right): https://codereview.chromium.org/2412593002/diff/80001/ui/views/mus/input_method_mus.cc#newcode64 ui/views/mus/input_method_mus.cc:64: new base::Callback<void(EventResult)>(base::Bind(&DoNothing)))); Send nullptr instead? https://codereview.chromium.org/2412593002/diff/80001/ui/views/mus/text_input_client_impl.h File ui/views/mus/text_input_client_impl.h (right): ...
4 years, 2 months ago (2016-10-13 16:36:29 UTC) #17
Hadi
Addressed both of the points. On 2016/10/13 16:36:29, sadrul wrote: > https://codereview.chromium.org/2412593002/diff/80001/ui/views/mus/input_method_mus.cc > File ui/views/mus/input_method_mus.cc ...
4 years, 2 months ago (2016-10-13 17:35:36 UTC) #18
sadrul
lgtm for now. But I worry that we may be hitting the 1s ack-timeout when ...
4 years, 2 months ago (2016-10-14 17:39:16 UTC) #19
sky
LGTM with the following addressed. https://codereview.chromium.org/2412593002/diff/100001/services/ui/ime/test_ime_driver/test_ime_driver.cc File services/ui/ime/test_ime_driver/test_ime_driver.cc (right): https://codereview.chromium.org/2412593002/diff/100001/services/ui/ime/test_ime_driver/test_ime_driver.cc#newcode37 services/ui/ime/test_ime_driver/test_ime_driver.cc:37: }; no ';' here ...
4 years, 2 months ago (2016-10-14 22:15:52 UTC) #20
Hadi
Addressed feedback. tsepez@ can you please review ime.mojom as SECURITY_OWNERS?
4 years, 2 months ago (2016-10-17 14:56:56 UTC) #24
Tom Sepez
lgtm
4 years, 2 months ago (2016-10-17 16:23:22 UTC) #27
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/2412593002/120001
4 years, 2 months ago (2016-10-17 16:40:42 UTC) #30
commit-bot: I haz the power
Committed patchset #7 (id:120001)
4 years, 2 months ago (2016-10-17 16:45:21 UTC) #32
commit-bot: I haz the power
4 years, 2 months ago (2016-10-17 16:48:04 UTC) #34
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/a2a7eed25d00d069b36bba9a91de4e1c1473a62e
Cr-Commit-Position: refs/heads/master@{#425701}

Powered by Google App Engine
This is Rietveld 408576698