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

Issue 1209913002: InputMethod should stop TextInputClient::InsertChar/InsertText calls when the event is stopped prop… (Closed)

Created:
5 years, 6 months ago by Shu Chen
Modified:
5 years, 5 months ago
Reviewers:
sadrul, James Su, oshima
CC:
chromium-reviews, sadrul, yusukes+watch_chromium.org, shuchen+watch_chromium.org, penghuang+watch_chromium.org, nona+watch_chromium.org, kalyank, yukawa
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

InputMethod should stop TextInputClient::InsertChar/InsertText calls when the event is stopped propagation after DispatchKeyEventPostIME(). BUG=502113, 476893 TEST=Verified on pixel device. Committed: https://crrev.com/dea2093b666c5a28af5b2128f999c54c6fb79bd3 Cr-Commit-Position: refs/heads/master@{#338657}

Patch Set 1 #

Total comments: 6

Patch Set 2 : per comments. #

Total comments: 2

Patch Set 3 : . #

Total comments: 2

Patch Set 4 : nits. #

Patch Set 5 : fixed test failures. #

Patch Set 6 : rebased & fixed test failures. #

Patch Set 7 : fixed test failures. #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+70 lines, -34 lines) Patch
M ash/host/ash_remote_window_tree_host_win.cc View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M ash/host/ash_window_tree_host_ozone.cc View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M ash/host/ash_window_tree_host_unified.cc View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M ash/host/ash_window_tree_host_win.cc View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M ash/host/ash_window_tree_host_x11.cc View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M ash/ime/input_method_event_handler.cc View 1 2 3 4 5 1 chunk +6 lines, -3 lines 2 comments Download
M ui/aura/window_tree_host.cc View 1 2 3 4 5 6 2 chunks +6 lines, -8 lines 0 comments Download
M ui/base/ime/input_method_chromeos.h View 1 1 chunk +4 lines, -2 lines 0 comments Download
M ui/base/ime/input_method_chromeos.cc View 1 2 3 4 5 3 chunks +18 lines, -13 lines 0 comments Download
M ui/base/ime/input_method_chromeos_unittest.cc View 1 2 3 4 chunks +31 lines, -3 lines 0 comments Download

Messages

Total messages: 41 (14 generated)
Shu Chen
5 years, 6 months ago (2015-06-25 08:30:27 UTC) #2
Shu Chen
+yukawa@.
5 years, 6 months ago (2015-06-25 08:50:34 UTC) #4
James Su
Better add a unit test.
5 years, 6 months ago (2015-06-25 09:45:30 UTC) #5
James Su
https://codereview.chromium.org/1209913002/diff/1/ui/aura/window_tree_host.cc File ui/aura/window_tree_host.cc (right): https://codereview.chromium.org/1209913002/diff/1/ui/aura/window_tree_host.cc#newcode200 ui/aura/window_tree_host.cc:200: bool WindowTreeHost::DispatchKeyEventPostIME(const ui::KeyEvent& event) { I'd still prefer to ...
5 years, 6 months ago (2015-06-25 13:38:23 UTC) #6
Shu Chen
https://codereview.chromium.org/1209913002/diff/1/ui/aura/window_tree_host.cc File ui/aura/window_tree_host.cc (right): https://codereview.chromium.org/1209913002/diff/1/ui/aura/window_tree_host.cc#newcode200 ui/aura/window_tree_host.cc:200: bool WindowTreeHost::DispatchKeyEventPostIME(const ui::KeyEvent& event) { On 2015/06/25 13:38:23, James ...
5 years, 6 months ago (2015-06-26 02:05:20 UTC) #7
Shu Chen
On 2015/06/25 09:45:30, James Su wrote: > Better add a unit test. Done.
5 years, 6 months ago (2015-06-26 03:36:56 UTC) #8
James Su
LGTM https://codereview.chromium.org/1209913002/diff/20001/ui/base/ime/input_method_chromeos.cc File ui/base/ime/input_method_chromeos.cc (right): https://codereview.chromium.org/1209913002/diff/20001/ui/base/ime/input_method_chromeos.cc#newcode411 ui/base/ime/input_method_chromeos.cc:411: prev_client->InsertChar(ch, event.flags()); this change is not necessary.
5 years, 6 months ago (2015-06-26 03:41:26 UTC) #9
Shu Chen
https://codereview.chromium.org/1209913002/diff/20001/ui/base/ime/input_method_chromeos.cc File ui/base/ime/input_method_chromeos.cc (right): https://codereview.chromium.org/1209913002/diff/20001/ui/base/ime/input_method_chromeos.cc#newcode411 ui/base/ime/input_method_chromeos.cc:411: prev_client->InsertChar(ch, event.flags()); On 2015/06/26 03:41:26, James Su wrote: > ...
5 years, 6 months ago (2015-06-26 04:00:00 UTC) #10
Shu Chen
Pinging... Sadrul/Yohei, can you please take a look? Thanks
5 years, 6 months ago (2015-06-26 06:22:53 UTC) #11
yukawa
Hmm, I'm not familiar with Chrome OS IME handling. I'm fine as long as James ...
5 years, 6 months ago (2015-06-26 06:30:23 UTC) #12
Shu Chen
On 2015/06/26 06:30:23, yukawa wrote: > Hmm, I'm not familiar with Chrome OS IME handling. ...
5 years, 6 months ago (2015-06-26 06:36:02 UTC) #13
Shu Chen
https://codereview.chromium.org/1209913002/diff/40001/ui/base/ime/input_method_chromeos_unittest.cc File ui/base/ime/input_method_chromeos_unittest.cc (right): https://codereview.chromium.org/1209913002/diff/40001/ui/base/ime/input_method_chromeos_unittest.cc#newcode333 ui/base/ime/input_method_chromeos_unittest.cc:333: bool stop_propagation_post_ime; On 2015/06/26 06:30:23, yukawa wrote: > nit: ...
5 years, 6 months ago (2015-06-26 06:37:41 UTC) #14
sadrul
lgtm https://codereview.chromium.org/1209913002/diff/1/ui/aura/window_tree_host.cc File ui/aura/window_tree_host.cc (right): https://codereview.chromium.org/1209913002/diff/1/ui/aura/window_tree_host.cc#newcode205 ui/aura/window_tree_host.cc:205: return copied_event.stopped_propagation(); On 2015/06/26 02:05:20, Shu Chen wrote: ...
5 years, 6 months ago (2015-06-27 03:06:29 UTC) #15
Shu Chen
https://codereview.chromium.org/1209913002/diff/1/ui/aura/window_tree_host.cc File ui/aura/window_tree_host.cc (right): https://codereview.chromium.org/1209913002/diff/1/ui/aura/window_tree_host.cc#newcode205 ui/aura/window_tree_host.cc:205: return copied_event.stopped_propagation(); On 2015/06/27 03:06:28, sadrul wrote: > On ...
5 years, 6 months ago (2015-06-27 09:43:56 UTC) #16
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1209913002/80001
5 years, 6 months ago (2015-06-27 10:31:41 UTC) #20
commit-bot: I haz the power
Dry run: Exceeded global retry quota
5 years, 5 months ago (2015-06-27 11:13:35 UTC) #22
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1209913002/100001
5 years, 5 months ago (2015-06-27 15:54:53 UTC) #25
Shu Chen
+oshima@ for new Ash changes to fix test failures. Note that the return value of ...
5 years, 5 months ago (2015-06-27 16:24:16 UTC) #27
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: win_chromium_rel_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/74679)
5 years, 5 months ago (2015-06-27 17:20:50 UTC) #29
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1209913002/120001
5 years, 5 months ago (2015-06-29 04:57:33 UTC) #32
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 5 months ago (2015-06-29 05:34:21 UTC) #34
oshima
https://codereview.chromium.org/1209913002/diff/120001/ash/ime/input_method_event_handler.cc File ash/ime/input_method_event_handler.cc (right): https://codereview.chromium.org/1209913002/diff/120001/ash/ime/input_method_event_handler.cc#newcode35 ash/ime/input_method_event_handler.cc:35: input_method_->DispatchKeyEvent(*event); Why we're ignoring the result now? Looks like ...
5 years, 5 months ago (2015-06-30 15:15:50 UTC) #35
Shu Chen
https://codereview.chromium.org/1209913002/diff/120001/ash/ime/input_method_event_handler.cc File ash/ime/input_method_event_handler.cc (right): https://codereview.chromium.org/1209913002/diff/120001/ash/ime/input_method_event_handler.cc#newcode35 ash/ime/input_method_event_handler.cc:35: input_method_->DispatchKeyEvent(*event); On 2015/06/30 15:15:50, oshima (OOO until July 6th) ...
5 years, 5 months ago (2015-07-01 02:02:42 UTC) #36
oshima
sorry for delay. lgtm
5 years, 5 months ago (2015-07-09 19:42:03 UTC) #37
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1209913002/120001
5 years, 5 months ago (2015-07-14 07:36:41 UTC) #39
commit-bot: I haz the power
Committed patchset #7 (id:120001)
5 years, 5 months ago (2015-07-14 08:26:12 UTC) #40
commit-bot: I haz the power
5 years, 5 months ago (2015-07-14 08:27:09 UTC) #41
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/dea2093b666c5a28af5b2128f999c54c6fb79bd3
Cr-Commit-Position: refs/heads/master@{#338657}

Powered by Google App Engine
This is Rietveld 408576698