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

Issue 2434433006: MacViews: Implement InputMethodMac::CancelComposition. (Closed)

Created:
4 years, 2 months ago by karandeepb
Modified:
4 years, 1 month ago
Reviewers:
tapted, Shu Chen
CC:
chromium-reviews, nona+watch_chromium.org, James Su, shuchen+watch_chromium.org, yusukes+watch_chromium.org, mac-reviews_chromium.org, chrome-apps-syd-reviews_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

MacViews: Implement InputMethodMac::CancelComposition. Currently, clicking inside a Textfield with an active composition, commits the composition text but does not close the IME candidate window. Hence, while Views::Textfield has committed the composition, the Cocoa text system does not know about it, leading to an incorrect state where the composition text may be committed once more. This CL implements InputMethodMac::CancelComposition which signals the Cocoa text system to close the IME candidate window and discard the composition text. BUG=652957 Committed: https://crrev.com/de65bcf491e13a0a7e0724e8732977561588072e Cr-Commit-Position: refs/heads/master@{#427557}

Patch Set 1 #

Total comments: 3

Patch Set 2 : Address comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+10 lines, -0 lines) Patch
M ui/base/ime/BUILD.gn View 1 chunk +4 lines, -0 lines 0 comments Download
M ui/base/ime/input_method_mac.mm View 1 2 chunks +6 lines, -0 lines 0 comments Download

Messages

Total messages: 20 (12 generated)
karandeepb
PTAL Trent. This still has two minor drawbacks- 1) The candidate window would still not ...
4 years, 2 months ago (2016-10-20 06:14:14 UTC) #5
karandeepb
On 2016/10/20 06:14:14, karandeepb wrote: > PTAL Trent. This still has two minor drawbacks- > ...
4 years, 1 month ago (2016-10-25 02:16:16 UTC) #8
tapted
sorry for the delay. lgtm, but an IME person should take a look too. https://codereview.chromium.org/2434433006/diff/1/ui/base/ime/input_method_mac.mm ...
4 years, 1 month ago (2016-10-25 02:57:57 UTC) #9
karandeepb
PTAL shuchen@. https://codereview.chromium.org/2434433006/diff/1/ui/base/ime/input_method_mac.mm File ui/base/ime/input_method_mac.mm (right): https://codereview.chromium.org/2434433006/diff/1/ui/base/ime/input_method_mac.mm#newcode32 ui/base/ime/input_method_mac.mm:32: [[NSTextInputContext currentInputContext] discardMarkedText]; On 2016/10/25 02:57:57, tapted ...
4 years, 1 month ago (2016-10-25 04:48:59 UTC) #12
Shu Chen
lgtm
4 years, 1 month ago (2016-10-25 13:27:35 UTC) #13
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/2434433006/20001
4 years, 1 month ago (2016-10-25 23:47:39 UTC) #16
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 1 month ago (2016-10-26 00:56:24 UTC) #18
commit-bot: I haz the power
4 years, 1 month ago (2016-10-26 00:58:26 UTC) #20
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/de65bcf491e13a0a7e0724e8732977561588072e
Cr-Commit-Position: refs/heads/master@{#427557}

Powered by Google App Engine
This is Rietveld 408576698