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

Issue 2020973002: Reland: Fix setComposingText with empty text when newCursorPosition != 1 (Closed)

Created:
4 years, 6 months ago by yabinh
Modified:
4 years, 4 months ago
CC:
blink-reviews, chromium-reviews, darin-cc_chromium.org, jam
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Reland: Fix setComposingText with empty text when newCursorPosition != 1 setComposingText("", newCursorPosition) should cancel the composition (if any), and move the cursor according to |newCursorPosition|. Note that we shouldn't close typing when moving the cursor in this case. In other cases, like in InputMethodController::confirmCompositionOrInsertText, we should close typing when moving the cursor. Thus, we need an extra parameter. This is a reland CL. The previous CL caused a bug crbug.com/633840. BUG=570920, 633840 Committed: https://crrev.com/dd6d1b62de7b449d997d159d63207abe87d3cb46 Cr-Commit-Position: refs/heads/master@{#413683}

Patch Set 1 #

Total comments: 2

Patch Set 2 : remove InputMethodController::setEditableSelectionOffsets #

Patch Set 3 : sync, try again. #

Patch Set 4 : remove some tests. #

Patch Set 5 : Fixed a unit test. #

Total comments: 1

Patch Set 6 : Use a different method to get the right boundary #

Total comments: 4

Patch Set 7 : handle the boundary in render_widget #

Patch Set 8 : for tyrbot failure #

Total comments: 4

Patch Set 9 : change for yosin's review #

Patch Set 10 : For multi-code text #

Total comments: 1

Patch Set 11 : rebase #

Total comments: 3

Patch Set 12 : change for tkent@'s review #

Patch Set 13 : check the boundary in WebViewImpl instead of render_widget #

Total comments: 4

Patch Set 14 : check the boundary in InputMethodController. Almost the same with patch set 6. #

Total comments: 1

Patch Set 15 : change for yosin@'s review #

Patch Set 16 : add null check, and sync. #

Patch Set 17 : Reland. Add a parameter. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+152 lines, -41 lines) Patch
M components/test_runner/text_input_controller.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +10 lines, -6 lines 0 comments Download
M content/public/android/javatests/src/org/chromium/content/browser/input/ImeTest.java View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +20 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/editing/InputMethodController.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 3 chunks +4 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/editing/InputMethodController.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 5 chunks +49 lines, -33 lines 0 comments Download
M third_party/WebKit/Source/core/editing/InputMethodControllerTest.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 2 chunks +69 lines, -0 lines 0 comments Download

Messages

Total messages: 92 (36 generated)
yabinh
changwan@, can you take a look at this patch?
4 years, 6 months ago (2016-05-30 08:04:45 UTC) #3
Changwan Ryu
https://codereview.chromium.org/2020973002/diff/1/third_party/WebKit/Source/core/editing/InputMethodController.cpp File third_party/WebKit/Source/core/editing/InputMethodController.cpp (right): https://codereview.chromium.org/2020973002/diff/1/third_party/WebKit/Source/core/editing/InputMethodController.cpp#newcode500 third_party/WebKit/Source/core/editing/InputMethodController.cpp:500: bool InputMethodController::setEditableSelectionOffsetsWithBoundaryCheck(int start, int end) could you check if ...
4 years, 6 months ago (2016-05-30 08:18:23 UTC) #4
yabinh
https://codereview.chromium.org/2020973002/diff/1/third_party/WebKit/Source/core/editing/InputMethodController.cpp File third_party/WebKit/Source/core/editing/InputMethodController.cpp (right): https://codereview.chromium.org/2020973002/diff/1/third_party/WebKit/Source/core/editing/InputMethodController.cpp#newcode500 third_party/WebKit/Source/core/editing/InputMethodController.cpp:500: bool InputMethodController::setEditableSelectionOffsetsWithBoundaryCheck(int start, int end) On 2016/05/30 08:18:22, Changwan ...
4 years, 6 months ago (2016-05-31 01:53:59 UTC) #5
yabinh
Changwan@, can you take another look at this patch?
4 years, 6 months ago (2016-06-02 01:52:56 UTC) #6
Changwan Ryu
On 2016/06/02 01:52:56, yabinh wrote: > Changwan@, can you take another look at this patch? ...
4 years, 6 months ago (2016-06-02 02:19:39 UTC) #7
yabinh
Changwan@, can you take a look at patch set 4?
4 years, 6 months ago (2016-06-02 04:54:02 UTC) #8
Changwan Ryu
lgtm
4 years, 6 months ago (2016-06-02 09:57:35 UTC) #10
aelias_OOO_until_Jul13
Source/web lgtm, adding yosin@ for Source/core/editing OWNERS.
4 years, 6 months ago (2016-06-02 22:25:20 UTC) #12
yosin_UTC9
https://codereview.chromium.org/2020973002/diff/80001/third_party/WebKit/Source/core/editing/InputMethodController.h File third_party/WebKit/Source/core/editing/InputMethodController.h (right): https://codereview.chromium.org/2020973002/diff/80001/third_party/WebKit/Source/core/editing/InputMethodController.h#newcode79 third_party/WebKit/Source/core/editing/InputMethodController.h:79: bool setEditableSelectionOffsets(int start, int end); Could you explain benefit ...
4 years, 6 months ago (2016-06-03 07:16:11 UTC) #13
yabinh
On 2016/06/03 07:16:11, Yosi_UTC9 wrote: > https://codereview.chromium.org/2020973002/diff/80001/third_party/WebKit/Source/core/editing/InputMethodController.h > File third_party/WebKit/Source/core/editing/InputMethodController.h (right): > > https://codereview.chromium.org/2020973002/diff/80001/third_party/WebKit/Source/core/editing/InputMethodController.h#newcode79 > ...
4 years, 6 months ago (2016-06-03 07:58:22 UTC) #14
yosin_UTC9
On 2016/06/03 at 07:58:22, yabinh wrote: > On 2016/06/03 07:16:11, Yosi_UTC9 wrote: > > https://codereview.chromium.org/2020973002/diff/80001/third_party/WebKit/Source/core/editing/InputMethodController.h ...
4 years, 6 months ago (2016-06-03 09:41:05 UTC) #15
yabinh
yosin@, can you take another look of this patch?
4 years, 6 months ago (2016-06-07 07:32:46 UTC) #16
yosin_UTC9
Could you explain when caller pass start < 0, start > end? I'm still not ...
4 years, 6 months ago (2016-06-07 08:11:20 UTC) #17
yabinh
https://codereview.chromium.org/2020973002/diff/100001/third_party/WebKit/Source/core/editing/InputMethodController.cpp File third_party/WebKit/Source/core/editing/InputMethodController.cpp (right): https://codereview.chromium.org/2020973002/diff/100001/third_party/WebKit/Source/core/editing/InputMethodController.cpp#newcode506 third_party/WebKit/Source/core/editing/InputMethodController.cpp:506: start = std::max(start, 0); On 2016/06/07 08:11:20, Yosi_UTC9 wrote: ...
4 years, 6 months ago (2016-06-07 08:47:50 UTC) #18
yosin_UTC9
On 2016/06/07 at 08:47:50, yabinh wrote: > https://codereview.chromium.org/2020973002/diff/100001/third_party/WebKit/Source/core/editing/InputMethodController.cpp > File third_party/WebKit/Source/core/editing/InputMethodController.cpp (right): > > https://codereview.chromium.org/2020973002/diff/100001/third_party/WebKit/Source/core/editing/InputMethodController.cpp#newcode506 ...
4 years, 6 months ago (2016-06-07 10:07:13 UTC) #19
yabinh
On 2016/06/07 10:07:13, Yosi_UTC9 wrote: > On 2016/06/07 at 08:47:50, yabinh wrote: > > > ...
4 years, 6 months ago (2016-06-07 10:14:28 UTC) #20
Changwan Ryu
On 2016/06/07 10:07:13, Yosi_UTC9 wrote: > On 2016/06/07 at 08:47:50, yabinh wrote: > > > ...
4 years, 6 months ago (2016-06-08 02:25:19 UTC) #21
yosin_UTC9
On 2016/06/07 at 10:14:28, yabinh wrote: > On 2016/06/07 10:07:13, Yosi_UTC9 wrote: > > On ...
4 years, 6 months ago (2016-06-08 04:23:59 UTC) #22
yosin_UTC9
On 2016/06/08 at 02:25:19, changwan wrote: > On 2016/06/07 10:07:13, Yosi_UTC9 wrote: > > On ...
4 years, 6 months ago (2016-06-08 05:25:02 UTC) #23
Changwan Ryu
On 2016/06/08 05:25:02, Yosi_UTC9 wrote: > On 2016/06/08 at 02:25:19, changwan wrote: > > On ...
4 years, 6 months ago (2016-06-08 05:44:25 UTC) #24
yabinh
Hi, yosin@, just want to make sure, is that OK to do the boundary-checking in ...
4 years, 6 months ago (2016-06-13 06:07:07 UTC) #25
yosin_UTC9
On 2016/06/13 at 06:07:07, yabinh wrote: > Hi, yosin@, just want to make sure, is ...
4 years, 6 months ago (2016-06-13 07:26:50 UTC) #26
yabinh
On 2016/06/13 07:26:50, Yosi_UTC9 wrote: > On 2016/06/13 at 06:07:07, yabinh wrote: > > Hi, ...
4 years, 6 months ago (2016-06-14 05:43:32 UTC) #27
yosin_UTC9
https://codereview.chromium.org/2020973002/diff/140001/content/renderer/render_widget.cc File content/renderer/render_widget.cc (right): https://codereview.chromium.org/2020973002/diff/140001/content/renderer/render_widget.cc#newcode1511 content/renderer/render_widget.cc:1511: void RenderWidget::adjustSelectionForBoundary(int& selectionStart, Please follow Chromimum coding style: http://dev.chromium.org/developers/coding-style ...
4 years, 6 months ago (2016-06-15 05:34:41 UTC) #28
yabinh
On 2016/06/15 05:34:41, Yosi_BlinkOn_UTC2 wrote: > https://codereview.chromium.org/2020973002/diff/140001/content/renderer/render_widget.cc > File content/renderer/render_widget.cc (right): > > https://codereview.chromium.org/2020973002/diff/140001/content/renderer/render_widget.cc#newcode1511 > ...
4 years, 6 months ago (2016-06-15 06:27:50 UTC) #29
yosin_UTC9
https://codereview.chromium.org/2020973002/diff/140001/third_party/WebKit/Source/core/editing/InputMethodController.cpp File third_party/WebKit/Source/core/editing/InputMethodController.cpp (right): https://codereview.chromium.org/2020973002/diff/140001/third_party/WebKit/Source/core/editing/InputMethodController.cpp#newcode327 third_party/WebKit/Source/core/editing/InputMethodController.cpp:327: On 2016/06/15 at 05:34:41, Yosi_BlinkOn_UTC2 wrote: > Could you ...
4 years, 6 months ago (2016-06-15 19:00:21 UTC) #30
yabinh
yosin@, can you take another look of this patch? Thanks.
4 years, 6 months ago (2016-06-16 06:42:16 UTC) #31
yabinh
https://codereview.chromium.org/2020973002/diff/180001/components/test_runner/text_input_controller.cc File components/test_runner/text_input_controller.cc (right): https://codereview.chromium.org/2020973002/diff/180001/components/test_runner/text_input_controller.cc#newcode262 components/test_runner/text_input_controller.cc:262: // variable-length characters. Some test will fail because of ...
4 years, 6 months ago (2016-06-17 06:15:10 UTC) #32
yabinh
On 2016/06/17 06:15:10, yabinh wrote: > https://codereview.chromium.org/2020973002/diff/180001/components/test_runner/text_input_controller.cc > File components/test_runner/text_input_controller.cc (right): > > https://codereview.chromium.org/2020973002/diff/180001/components/test_runner/text_input_controller.cc#newcode262 > ...
4 years, 6 months ago (2016-06-17 06:22:24 UTC) #33
yabinh
On 2016/06/17 06:15:10, yabinh wrote: > https://codereview.chromium.org/2020973002/diff/180001/components/test_runner... > File components/test_runner/text_input_controller.cc (right): > > https://codereview.chromium.org/2020973002/diff/180001/components/test_runner... > ...
4 years, 6 months ago (2016-06-17 06:26:34 UTC) #34
yabinh
Patch set 13 is just rebasing.
4 years, 5 months ago (2016-06-30 11:03:54 UTC) #35
yosin_UTC9
lgtm Sorry for slow response. m(_ _)m
4 years, 5 months ago (2016-07-01 09:23:38 UTC) #36
yabinh
On 2016/07/01 09:23:38, Yosi_UTC9 wrote: > lgtm > > Sorry for slow response. m(_ _)m ...
4 years, 5 months ago (2016-07-01 09:26:23 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/2020973002/200001
4 years, 5 months ago (2016-07-01 09:27:34 UTC) #40
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/211229)
4 years, 5 months ago (2016-07-01 09:34:11 UTC) #42
yabinh
Add tkent@ for the owner of text_input_controller.cc, esprehn@ for the owner of render_widget. Can you ...
4 years, 5 months ago (2016-07-01 09:53:04 UTC) #44
tkent
https://codereview.chromium.org/2020973002/diff/200001/components/test_runner/text_input_controller.cc File components/test_runner/text_input_controller.cc (right): https://codereview.chromium.org/2020973002/diff/200001/components/test_runner/text_input_controller.cc#newcode264 components/test_runner/text_input_controller.cc:264: size_t textLength = base::string16(newText).length(); Doesn't newText.length() work?
4 years, 5 months ago (2016-07-04 00:51:49 UTC) #45
yabinh
https://codereview.chromium.org/2020973002/diff/200001/components/test_runner/text_input_controller.cc File components/test_runner/text_input_controller.cc (right): https://codereview.chromium.org/2020973002/diff/200001/components/test_runner/text_input_controller.cc#newcode264 components/test_runner/text_input_controller.cc:264: size_t textLength = base::string16(newText).length(); On 2016/07/04 00:51:49, tkent wrote: ...
4 years, 5 months ago (2016-07-04 01:03:22 UTC) #46
tkent
https://codereview.chromium.org/2020973002/diff/200001/components/test_runner/text_input_controller.cc File components/test_runner/text_input_controller.cc (right): https://codereview.chromium.org/2020973002/diff/200001/components/test_runner/text_input_controller.cc#newcode264 components/test_runner/text_input_controller.cc:264: size_t textLength = base::string16(newText).length(); On 2016/07/04 at 01:03:22, yabinh ...
4 years, 5 months ago (2016-07-04 01:08:16 UTC) #47
yabinh
On 2016/07/04 01:08:16, tkent wrote: > https://codereview.chromium.org/2020973002/diff/200001/components/test_runner/text_input_controller.cc > File components/test_runner/text_input_controller.cc (right): > > https://codereview.chromium.org/2020973002/diff/200001/components/test_runner/text_input_controller.cc#newcode264 > ...
4 years, 5 months ago (2016-07-04 04:33:42 UTC) #48
tkent
test_runner lgtm
4 years, 5 months ago (2016-07-04 04:36:23 UTC) #49
yabinh
https://codereview.chromium.org/2020973002/diff/240001/content/public/android/javatests/src/org/chromium/content/browser/input/ImeTest.java File content/public/android/javatests/src/org/chromium/content/browser/input/ImeTest.java (left): https://codereview.chromium.org/2020973002/diff/240001/content/public/android/javatests/src/org/chromium/content/browser/input/ImeTest.java#oldcode142 content/public/android/javatests/src/org/chromium/content/browser/input/ImeTest.java:142: I checked, and found it works for ReplicaInputConnection now. ...
4 years, 5 months ago (2016-07-06 11:53:55 UTC) #50
Changwan Ryu
https://codereview.chromium.org/2020973002/diff/240001/third_party/WebKit/Source/web/WebViewImpl.cpp File third_party/WebKit/Source/web/WebViewImpl.cpp (right): https://codereview.chromium.org/2020973002/diff/240001/third_party/WebKit/Source/web/WebViewImpl.cpp#newcode2318 third_party/WebKit/Source/web/WebViewImpl.cpp:2318: { On 2016/07/06 11:53:55, yabinh wrote: > textInputInfo() is ...
4 years, 5 months ago (2016-07-07 09:09:33 UTC) #51
yabinh
Based on the previous discussion, it seems that we'd better do the check in InputMethodController. ...
4 years, 5 months ago (2016-07-22 01:44:01 UTC) #52
yabinh
Due to changwan@'s comment, we check the boundary in InputMethodController in the latest patch(set 14). ...
4 years, 4 months ago (2016-07-29 01:58:03 UTC) #55
yosin_UTC9
https://codereview.chromium.org/2020973002/diff/260001/third_party/WebKit/Source/core/editing/InputMethodController.cpp File third_party/WebKit/Source/core/editing/InputMethodController.cpp (right): https://codereview.chromium.org/2020973002/diff/260001/third_party/WebKit/Source/core/editing/InputMethodController.cpp#newcode533 third_party/WebKit/Source/core/editing/InputMethodController.cpp:533: rightBoundary -= (compositionRange()->endOffset() - compositionRange()->startOffset()); nit: We don't need ...
4 years, 4 months ago (2016-07-29 05:38:32 UTC) #58
yabinh
On 2016/07/29 05:38:32, Yosi_UTC9 wrote: > https://codereview.chromium.org/2020973002/diff/260001/third_party/WebKit/Source/core/editing/InputMethodController.cpp > File third_party/WebKit/Source/core/editing/InputMethodController.cpp (right): > > https://codereview.chromium.org/2020973002/diff/260001/third_party/WebKit/Source/core/editing/InputMethodController.cpp#newcode533 > ...
4 years, 4 months ago (2016-07-29 05:57:40 UTC) #61
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/2020973002/300001
4 years, 4 months ago (2016-08-02 09:58:06 UTC) #69
commit-bot: I haz the power
Committed patchset #16 (id:300001)
4 years, 4 months ago (2016-08-02 10:55:02 UTC) #71
commit-bot: I haz the power
Patchset 16 (id:??) landed as https://crrev.com/f22aa57c3e53c94264b0a0ac6e556ac03b89f372 Cr-Commit-Position: refs/heads/master@{#409169}
4 years, 4 months ago (2016-08-02 10:58:06 UTC) #73
Changwan Ryu
A revert of this CL (patchset #16 id:300001) has been created in https://codereview.chromium.org/2233573002/ by changwan@chromium.org. ...
4 years, 4 months ago (2016-08-10 00:54:58 UTC) #74
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/2020973002/320001
4 years, 4 months ago (2016-08-23 01:12:01 UTC) #80
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/278774)
4 years, 4 months ago (2016-08-23 05:43:57 UTC) #82
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/2020973002/320001
4 years, 4 months ago (2016-08-23 07:05:32 UTC) #88
commit-bot: I haz the power
Committed patchset #17 (id:320001)
4 years, 4 months ago (2016-08-23 07:09:20 UTC) #90
commit-bot: I haz the power
4 years, 4 months ago (2016-08-23 07:10:47 UTC) #92
Message was sent while issue was closed.
Patchset 17 (id:??) landed as
https://crrev.com/dd6d1b62de7b449d997d159d63207abe87d3cb46
Cr-Commit-Position: refs/heads/master@{#413683}

Powered by Google App Engine
This is Rietveld 408576698