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

Issue 2561543003: Move call path for resetInputMethod (Closed)

Created:
4 years ago by Changwan Ryu
Modified:
4 years ago
CC:
blink-reviews, chromium-reviews, darin-cc_chromium.org, jam, kinuko+watch, mlamouri+watch-content_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Move call path for resetInputMethod This is mostly about mechanical changes such as: - Move InputMethodController-related logic inside InputMethodController and call it first - such that we can expand the logic there. - Rename method name for better readability. Also, there are subtle logical changes: 1) Try finishComposingText() even when the current input type is NONE. This should not have any effect. 2) When finishComposingText() returns false, we no longer call UpdateTextInputState(). This should not have any effect. 3) When finishComposingText() returns false, we no long call UpdateCompositionInfo(). This is used by Android and Mac. Previously, there was a chance that we propagate InvalidRange() all the way up to the keyboard app. Now ShouldUpdateCompositionInfo() returns false to make it clear. This is originally found in resolving crbug.com/664317, but is also needed for crbug.com/630137 because if we no longer cancel composition on selection change, then WebViewTest may fail because it uses TestWebViewClient which does not implement resetInputMethod(). BUG=664317, 630137 Committed: https://crrev.com/2418e1b631787f3a9fed9a6aad0d53e11e467e5b Cr-Commit-Position: refs/heads/master@{#437854}

Patch Set 1 #

Total comments: 9

Patch Set 2 : addressed nits, still investigating NONE check #

Patch Set 3 : fix build #

Patch Set 4 : removed NONE check #

Patch Set 5 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+18 lines, -15 lines) Patch
M content/renderer/render_widget.cc View 1 2 3 4 2 chunks +3 lines, -11 lines 0 comments Download
M third_party/WebKit/Source/core/editing/InputMethodController.h View 1 1 chunk +3 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/editing/InputMethodController.cpp View 1 1 chunk +6 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/page/ChromeClient.h View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/page/FocusController.cpp View 1 2 2 chunks +3 lines, -1 line 0 comments Download
M third_party/WebKit/Source/web/ChromeClientImpl.h View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/web/ChromeClientImpl.cpp View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 49 (28 generated)
Changwan Ryu
PTAL
4 years ago (2016-12-07 08:09:26 UTC) #4
yosin_UTC9
https://codereview.chromium.org/2561543003/diff/1/third_party/WebKit/Source/core/editing/InputMethodController.cpp File third_party/WebKit/Source/core/editing/InputMethodController.cpp (right): https://codereview.chromium.org/2561543003/diff/1/third_party/WebKit/Source/core/editing/InputMethodController.cpp#newcode1196 third_party/WebKit/Source/core/editing/InputMethodController.cpp:1196: void InputMethodController::willChangeFocusTo(Element* newElement) { Q: Do we need to ...
4 years ago (2016-12-07 09:38:19 UTC) #5
yosin_UTC9
https://codereview.chromium.org/2561543003/diff/1/content/renderer/render_widget.cc File content/renderer/render_widget.cc (right): https://codereview.chromium.org/2561543003/diff/1/content/renderer/render_widget.cc#newcode2140 content/renderer/render_widget.cc:2140: if (text_input_type_ != ui::TEXT_INPUT_TYPE_NONE) Q: What is happened when ...
4 years ago (2016-12-07 09:46:00 UTC) #6
yosin_UTC9
BTW, to live with state mismatch between IME in browser process and Blink in renderer ...
4 years ago (2016-12-07 10:01:19 UTC) #7
yosin_UTC9
lgtm about code changes since it is just re-structuring. My questions are regarding to improving ...
4 years ago (2016-12-07 10:17:58 UTC) #10
Changwan Ryu
https://codereview.chromium.org/2561543003/diff/1/content/renderer/render_widget.cc File content/renderer/render_widget.cc (right): https://codereview.chromium.org/2561543003/diff/1/content/renderer/render_widget.cc#newcode2140 content/renderer/render_widget.cc:2140: if (text_input_type_ != ui::TEXT_INPUT_TYPE_NONE) On 2016/12/07 09:46:00, Yosi_UTC9 wrote: ...
4 years ago (2016-12-08 01:16:30 UTC) #12
yosin_UTC9
On 2016/12/08 at 01:16:30, changwan wrote: > - willChangeFocusTo() finishes the current composition. > - ...
4 years ago (2016-12-08 05:04:48 UTC) #20
essayspecialist11
Reset input method creates logical changes inside the Input output method.The input method can be ...
4 years ago (2016-12-08 05:09:30 UTC) #21
Changwan Ryu
https://codereview.chromium.org/2561543003/diff/1/content/renderer/render_widget.cc File content/renderer/render_widget.cc (right): https://codereview.chromium.org/2561543003/diff/1/content/renderer/render_widget.cc#newcode2140 content/renderer/render_widget.cc:2140: if (text_input_type_ != ui::TEXT_INPUT_TYPE_NONE) On 2016/12/08 01:16:29, Changwan Ryu ...
4 years ago (2016-12-08 09:56:07 UTC) #24
Changwan Ryu
bokan@chromium.org: Please review changes in third_party/WebKit/Source/core/page aelias@chromium.org: could you review the rest? Thanks!
4 years ago (2016-12-09 00:48:33 UTC) #28
aelias_OOO_until_Jul13
lgtm
4 years ago (2016-12-09 01:44:59 UTC) #29
Changwan Ryu
On 2016/12/07 10:01:19, Yosi_UTC9 wrote: > BTW, to live with state mismatch between IME in ...
4 years ago (2016-12-09 01:54:40 UTC) #30
aelias_OOO_until_Jul13
On 2016/12/09 at 01:54:40, changwan wrote: > On 2016/12/07 10:01:19, Yosi_UTC9 wrote: > > BTW, ...
4 years ago (2016-12-09 02:00:04 UTC) #31
bokan
Source/core/page lgtm
4 years ago (2016-12-09 17:05:43 UTC) #32
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/2561543003/60001
4 years ago (2016-12-09 23:49:34 UTC) #35
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_compile_dbg_ng on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_compile_dbg_ng/builds/321232) mac_chromium_rel_ng on master.tryserver.chromium.mac (JOB_FAILED, ...
4 years ago (2016-12-09 23:54:18 UTC) #37
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/2561543003/80001
4 years ago (2016-12-12 08:42:48 UTC) #40
commit-bot: I haz the power
Try jobs failed on following builders: linux_android_rel_ng on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/linux_android_rel_ng/builds/196969)
4 years ago (2016-12-12 10:20:50 UTC) #42
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/2561543003/80001
4 years ago (2016-12-12 12:07:55 UTC) #44
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years ago (2016-12-12 12:43:41 UTC) #47
commit-bot: I haz the power
4 years ago (2016-12-12 15:11:43 UTC) #49
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/2418e1b631787f3a9fed9a6aad0d53e11e467e5b
Cr-Commit-Position: refs/heads/master@{#437854}

Powered by Google App Engine
This is Rietveld 408576698