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

Issue 1889053003: Fix InputConnection.deleteSurroundingText() (Closed)

Created:
4 years, 8 months ago by yabinh
Modified:
4 years, 2 months ago
CC:
alexmos, blink-reviews, blink-reviews-api_chromium.org, chromium-reviews, creis+watch_chromium.org, darin-cc_chromium.org, dcheng, dglazkov+blink, jam, mkwst+moarreviews-renderer_chromium.org, mlamouri+watch-blink_chromium.org, mlamouri+watch-content_chromium.org, nasko+codewatch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix InputConnection.deleteSurroundingText() According to the Android API documentation, InputConnection.deleteSurroundingText() should delete text before and after the current cursor position, excluding the selection, NOT including the selection. The old implementation reused ExtendSelectionAndDelete which has different semantics and was originally introduced for ChromeOS; this adds a new method and IPC which behaves according to Android requirements. BUG=451027 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_site_isolation Committed: https://crrev.com/90f1be18144ff4106ad203d45915b116938bf13a Cr-Commit-Position: refs/heads/master@{#425244}

Patch Set 1 #

Total comments: 3

Patch Set 2 : Move deleteSurroundingText to WebLocalFrame #

Patch Set 3 : Deal with multi-code-text, and add more tests. #

Total comments: 6

Patch Set 4 : Changed the type of some parameters, and added some comments. #

Total comments: 2

Patch Set 5 : Changed the function for multi-code-text, and added some tests. #

Total comments: 2

Patch Set 6 : Changed the type of some parameters. #

Patch Set 7 : Use ICU to handle multi-code text. #

Patch Set 8 : Try again. #

Total comments: 1

Patch Set 9 : handle multi-code text with BackspaceStateMachine::previousPositionOf #

Total comments: 2

Patch Set 10 : add some comment #

Total comments: 13

Patch Set 11 : For Test. To show that deleteSurroundingText will trigger 2 selectionchange events. #

Patch Set 12 : For test. To show that deleteSurroundingText doesn't trigger select or change event. #

Patch Set 13 : Apply the same logic to |after| text. Add a test. #

Patch Set 14 : Use ReplaceSelectionCommand to delete #

Total comments: 2

Patch Set 15 : deleteContents doesn’t work well for multiple nodes. #

Total comments: 2

Patch Set 16 : Same to patch set 13, except adding a test for multiple nodes. #

Total comments: 6

Patch Set 17 : Change some comments. #

Total comments: 5

Patch Set 18 : change for changwan@'s review #

Total comments: 1

Patch Set 19 : Use a different method to handle "\n" node #

Total comments: 15

Patch Set 20 : Address yosin@'s review #

Patch Set 21 #

Patch Set 22 #

Total comments: 6

Patch Set 23 : Address yosin@'s review #

Total comments: 8

Patch Set 24 : Address yosin@'s review #

Total comments: 2

Patch Set 25 : Address clamy@'s review #

Total comments: 3

Patch Set 26 : change int to size_t #

Total comments: 1

Patch Set 27 #

Patch Set 28 : change back to patch set #25 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+573 lines, -17 lines) Patch
M content/browser/frame_host/render_frame_host_impl.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 1 chunk +4 lines, -0 lines 0 comments Download
M content/browser/frame_host/render_frame_host_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 1 chunk +4 lines, -0 lines 0 comments Download
M content/browser/renderer_host/ime_adapter_android.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 1 chunk +1 line, -1 line 0 comments Download
M content/common/input_messages.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 26 27 1 chunk +6 lines, -0 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 17 18 19 2 chunks +58 lines, -15 lines 0 comments Download
M content/renderer/render_frame_impl.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 26 27 1 chunk +1 line, -0 lines 0 comments Download
M content/renderer/render_frame_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 26 27 2 chunks +9 lines, -0 lines 0 comments Download
M content/renderer/render_view_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 2 chunks +47 lines, -1 line 0 comments Download
M content/test/test_render_frame.h View 1 2 27 1 chunk +1 line, -0 lines 0 comments Download
M content/test/test_render_frame.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 27 1 chunk +4 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 17 18 19 20 21 22 1 chunk +1 line, -0 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 17 18 19 20 21 22 23 1 chunk +63 lines, -0 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 17 18 19 20 21 22 1 chunk +315 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/web/WebLocalFrameImpl.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/web/WebLocalFrameImpl.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 1 chunk +9 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/web/tests/WebViewTest.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 1 chunk +43 lines, -0 lines 0 comments Download
M third_party/WebKit/public/web/WebLocalFrame.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 1 chunk +3 lines, -0 lines 0 comments Download
M third_party/WebKit/public/web/WebPlugin.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 140 (58 generated)
yabinh
This issue is a following of issue 1877243002. As changwan@ said, we delete the text ...
4 years, 8 months ago (2016-04-15 06:52:27 UTC) #4
Changwan Ryu
On 2016/04/15 06:52:27, yabinh wrote: > This issue is a following of issue 1877243002. > ...
4 years, 8 months ago (2016-04-15 06:58:46 UTC) #5
aelias_OOO_until_Jul13
Looks like there's already a primitive for atomically running a series of edit commands, see ...
4 years, 8 months ago (2016-04-16 01:46:24 UTC) #6
dcheng
https://codereview.chromium.org/1889053003/diff/1/third_party/WebKit/public/web/WebFrame.h File third_party/WebKit/public/web/WebFrame.h (right): https://codereview.chromium.org/1889053003/diff/1/third_party/WebKit/public/web/WebFrame.h#newcode462 third_party/WebKit/public/web/WebFrame.h:462: virtual void deleteSurroundingText(int before, int after) = 0; This ...
4 years, 8 months ago (2016-04-16 03:37:07 UTC) #8
aelias_OOO_until_Jul13
https://codereview.chromium.org/1889053003/diff/1/third_party/WebKit/public/web/WebFrame.h File third_party/WebKit/public/web/WebFrame.h (right): https://codereview.chromium.org/1889053003/diff/1/third_party/WebKit/public/web/WebFrame.h#newcode462 third_party/WebKit/public/web/WebFrame.h:462: virtual void deleteSurroundingText(int before, int after) = 0; On ...
4 years, 8 months ago (2016-04-16 03:43:29 UTC) #9
dcheng
https://codereview.chromium.org/1889053003/diff/1/third_party/WebKit/public/web/WebFrame.h File third_party/WebKit/public/web/WebFrame.h (right): https://codereview.chromium.org/1889053003/diff/1/third_party/WebKit/public/web/WebFrame.h#newcode462 third_party/WebKit/public/web/WebFrame.h:462: virtual void deleteSurroundingText(int before, int after) = 0; On ...
4 years, 8 months ago (2016-04-16 03:53:39 UTC) #10
aelias_OOO_until_Jul13
OK, makes sense, but I don't think we should just move this one method piecemeal ...
4 years, 8 months ago (2016-04-18 22:18:34 UTC) #11
yabinh
No problem. By the way, I've verified that this patch doesn't trigger any onselect or ...
4 years, 8 months ago (2016-04-19 00:53:08 UTC) #12
yabinh
I moved deleteSurroundingText to WebLocalFrame in patch set 2. I'll move other IME methods to ...
4 years, 8 months ago (2016-04-19 02:42:19 UTC) #13
Changwan Ryu
On 2016/04/19 02:42:19, yabinh wrote: > I moved deleteSurroundingText to WebLocalFrame in patch set 2. ...
4 years, 8 months ago (2016-04-19 05:55:46 UTC) #14
yabinh
There are 27 functions related to IME in WebFrame, from insertText() to setCaretVisible(). Some of ...
4 years, 8 months ago (2016-04-19 07:55:46 UTC) #15
dcheng
On 2016/04/19 at 07:55:46, yabinh wrote: > There are 27 functions related to IME in ...
4 years, 8 months ago (2016-04-19 08:01:14 UTC) #16
dcheng
I've filed https://crbug.com/604645 to track the focused frame issue.
4 years, 8 months ago (2016-04-19 08:13:19 UTC) #17
yabinh
I see. I'll work on that issue.
4 years, 8 months ago (2016-04-19 08:31:34 UTC) #18
yabinh
For Patch Set 3: I modified InputMethodController#deleteSurroundingText to handle multi-code-text, and added a test for ...
4 years, 8 months ago (2016-04-20 11:42:51 UTC) #19
Changwan Ryu
https://codereview.chromium.org/1889053003/diff/40001/content/browser/frame_host/render_frame_host_impl.cc File content/browser/frame_host/render_frame_host_impl.cc (right): https://codereview.chromium.org/1889053003/diff/40001/content/browser/frame_host/render_frame_host_impl.cc#newcode2163 content/browser/frame_host/render_frame_host_impl.cc:2163: void RenderFrameHostImpl::DeleteSurroundingText(size_t before, size_t after) { This is somewhat ...
4 years, 8 months ago (2016-04-21 01:07:07 UTC) #20
Changwan Ryu
lgtm aelias@, could you take a look at this change? https://codereview.chromium.org/1889053003/diff/40001/third_party/WebKit/Source/core/editing/InputMethodController.cpp File third_party/WebKit/Source/core/editing/InputMethodController.cpp (right): https://codereview.chromium.org/1889053003/diff/40001/third_party/WebKit/Source/core/editing/InputMethodController.cpp#newcode492 ...
4 years, 8 months ago (2016-04-21 01:19:26 UTC) #21
yabinh
https://codereview.chromium.org/1889053003/diff/40001/third_party/WebKit/Source/core/editing/InputMethodController.cpp File third_party/WebKit/Source/core/editing/InputMethodController.cpp (right): https://codereview.chromium.org/1889053003/diff/40001/third_party/WebKit/Source/core/editing/InputMethodController.cpp#newcode492 third_party/WebKit/Source/core/editing/InputMethodController.cpp:492: if (after > 0) { We don't need that. ...
4 years, 8 months ago (2016-04-21 01:24:16 UTC) #22
Changwan Ryu
On 2016/04/21 01:24:16, yabinh wrote: > https://codereview.chromium.org/1889053003/diff/40001/third_party/WebKit/Source/core/editing/InputMethodController.cpp > File third_party/WebKit/Source/core/editing/InputMethodController.cpp (right): > > https://codereview.chromium.org/1889053003/diff/40001/third_party/WebKit/Source/core/editing/InputMethodController.cpp#newcode492 > ...
4 years, 8 months ago (2016-04-21 01:39:57 UTC) #23
aelias_OOO_until_Jul13
https://codereview.chromium.org/1889053003/diff/40001/third_party/WebKit/Source/core/editing/InputMethodController.cpp File third_party/WebKit/Source/core/editing/InputMethodController.cpp (right): https://codereview.chromium.org/1889053003/diff/40001/third_party/WebKit/Source/core/editing/InputMethodController.cpp#newcode492 third_party/WebKit/Source/core/editing/InputMethodController.cpp:492: if (after > 0) { On 2016/04/21 at 01:24:16, ...
4 years, 8 months ago (2016-04-21 04:01:29 UTC) #24
yabinh
changwan@, I uploaded a new patch. Please take another look. aelias@, As for the ICU ...
4 years, 8 months ago (2016-04-22 01:26:16 UTC) #25
yabinh
https://codereview.chromium.org/1889053003/diff/60001/third_party/WebKit/Source/core/editing/InputMethodController.cpp File third_party/WebKit/Source/core/editing/InputMethodController.cpp (right): https://codereview.chromium.org/1889053003/diff/60001/third_party/WebKit/Source/core/editing/InputMethodController.cpp#newcode467 third_party/WebKit/Source/core/editing/InputMethodController.cpp:467: int selectionStart = static_cast<int>(selectionOffsets.start()); Since we use "std::min(selectionStart, before)", ...
4 years, 8 months ago (2016-04-22 01:26:49 UTC) #26
Changwan Ryu
https://codereview.chromium.org/1889053003/diff/80001/third_party/WebKit/Source/core/editing/InputMethodController.cpp File third_party/WebKit/Source/core/editing/InputMethodController.cpp (right): https://codereview.chromium.org/1889053003/diff/80001/third_party/WebKit/Source/core/editing/InputMethodController.cpp#newcode500 third_party/WebKit/Source/core/editing/InputMethodController.cpp:500: } while (frame().selection().start().computeOffsetInContainerNode() + before > frame().selection().end().computeOffsetInContainerNode() && before ...
4 years, 8 months ago (2016-04-22 02:16:09 UTC) #27
yabinh
aelias@, I talked with changwan@, and now I think size_t is better than int. I'll ...
4 years, 8 months ago (2016-04-22 02:51:53 UTC) #28
aelias_OOO_until_Jul13
https://codereview.chromium.org/1889053003/diff/40001/third_party/WebKit/Source/core/editing/InputMethodController.cpp File third_party/WebKit/Source/core/editing/InputMethodController.cpp (right): https://codereview.chromium.org/1889053003/diff/40001/third_party/WebKit/Source/core/editing/InputMethodController.cpp#newcode492 third_party/WebKit/Source/core/editing/InputMethodController.cpp:492: if (after > 0) { I suggest looking in ...
4 years, 8 months ago (2016-04-22 08:18:29 UTC) #29
Changwan Ryu
https://codereview.chromium.org/1889053003/diff/140001/third_party/WebKit/Source/core/editing/InputMethodController.cpp File third_party/WebKit/Source/core/editing/InputMethodController.cpp (right): https://codereview.chromium.org/1889053003/diff/140001/third_party/WebKit/Source/core/editing/InputMethodController.cpp#newcode493 third_party/WebKit/Source/core/editing/InputMethodController.cpp:493: U8_SET_CP_START(text, 0, adjustedStart); This is incorrect if the given ...
4 years, 8 months ago (2016-04-25 10:21:08 UTC) #30
yabinh
changwan@, aelias@, I uploaded a new patch. Could you take another look?
4 years, 8 months ago (2016-04-26 05:08:39 UTC) #31
Changwan Ryu
my lgtm is still valid w/ nits https://codereview.chromium.org/1889053003/diff/160001/third_party/WebKit/Source/core/editing/InputMethodController.cpp File third_party/WebKit/Source/core/editing/InputMethodController.cpp (right): https://codereview.chromium.org/1889053003/diff/160001/third_party/WebKit/Source/core/editing/InputMethodController.cpp#newcode486 third_party/WebKit/Source/core/editing/InputMethodController.cpp:486: if (before ...
4 years, 8 months ago (2016-04-26 05:36:30 UTC) #32
yabinh
OK. Comment has been added to patch set 10.
4 years, 8 months ago (2016-04-26 06:48:04 UTC) #36
aelias_OOO_until_Jul13
Non-core/ parts lgtm, adding yosin@ for core/editing/ OWNERS. https://codereview.chromium.org/1889053003/diff/180001/third_party/WebKit/Source/core/editing/InputMethodController.cpp File third_party/WebKit/Source/core/editing/InputMethodController.cpp (right): https://codereview.chromium.org/1889053003/diff/180001/third_party/WebKit/Source/core/editing/InputMethodController.cpp#newcode487 third_party/WebKit/Source/core/editing/InputMethodController.cpp:487: before ...
4 years, 8 months ago (2016-04-26 07:29:33 UTC) #38
yabinh
https://codereview.chromium.org/1889053003/diff/180001/third_party/WebKit/Source/core/editing/InputMethodController.cpp File third_party/WebKit/Source/core/editing/InputMethodController.cpp (right): https://codereview.chromium.org/1889053003/diff/180001/third_party/WebKit/Source/core/editing/InputMethodController.cpp#newcode487 third_party/WebKit/Source/core/editing/InputMethodController.cpp:487: before = std::min(selectionStart, before); It's for boundary checking. In ...
4 years, 8 months ago (2016-04-26 08:05:16 UTC) #39
yosin_UTC9
+nona@ as emoji expert. It seems we need to handle grapheme cluster in DeleteSurroundingText(). At ...
4 years, 8 months ago (2016-04-26 08:18:54 UTC) #41
Seigo Nonaka
On 2016/04/26 08:18:54, Yosi_UTC9 wrote: > +nona@ as emoji expert. > It seems we need ...
4 years, 8 months ago (2016-04-26 08:33:34 UTC) #42
Seigo Nonaka
https://codereview.chromium.org/1889053003/diff/180001/third_party/WebKit/Source/core/editing/InputMethodControllerTest.cpp File third_party/WebKit/Source/core/editing/InputMethodControllerTest.cpp (right): https://codereview.chromium.org/1889053003/diff/180001/third_party/WebKit/Source/core/editing/InputMethodControllerTest.cpp#newcode355 third_party/WebKit/Source/core/editing/InputMethodControllerTest.cpp:355: // "trophy" + "trophy". On 2016/04/26 08:18:54, Yosi_UTC9 wrote: ...
4 years, 8 months ago (2016-04-26 08:48:39 UTC) #43
yosin_UTC9
https://codereview.chromium.org/1889053003/diff/180001/third_party/WebKit/Source/core/editing/InputMethodController.cpp File third_party/WebKit/Source/core/editing/InputMethodController.cpp (right): https://codereview.chromium.org/1889053003/diff/180001/third_party/WebKit/Source/core/editing/InputMethodController.cpp#newcode500 third_party/WebKit/Source/core/editing/InputMethodController.cpp:500: TypingCommand::deleteSelection(*frame().document()); On 2016/04/26 at 08:05:16, yabinh wrote: > I've ...
4 years, 8 months ago (2016-04-26 09:12:29 UTC) #44
yabinh
> How did you check these events? Did you check with event loop? I checked ...
4 years, 8 months ago (2016-04-27 02:30:33 UTC) #45
yosin_UTC9
On 2016/04/27 at 02:30:33, yabinh wrote: > > How did you check these events? Did ...
4 years, 8 months ago (2016-04-27 03:29:52 UTC) #46
yosin_UTC9
https://codereview.chromium.org/1889053003/diff/180001/third_party/WebKit/Source/core/editing/InputMethodController.cpp File third_party/WebKit/Source/core/editing/InputMethodController.cpp (right): https://codereview.chromium.org/1889053003/diff/180001/third_party/WebKit/Source/core/editing/InputMethodController.cpp#newcode487 third_party/WebKit/Source/core/editing/InputMethodController.cpp:487: before = std::min(selectionStart, before); On 2016/04/26 at 08:05:15, yabinh ...
4 years, 7 months ago (2016-04-27 08:21:16 UTC) #47
yabinh
In this patch, deleteSurroundingText doesn't trigger select or change event, but it can trigger selectionchange ...
4 years, 7 months ago (2016-04-27 12:50:37 UTC) #48
yabinh
> When |selectionStart|=0 and |before|=2, |before| goes to |0|. You are right. It should goes ...
4 years, 7 months ago (2016-04-28 07:53:29 UTC) #49
Changwan Ryu
not lgtm https://codereview.chromium.org/1889053003/diff/260001/third_party/WebKit/Source/core/editing/InputMethodController.cpp File third_party/WebKit/Source/core/editing/InputMethodController.cpp (right): https://codereview.chromium.org/1889053003/diff/260001/third_party/WebKit/Source/core/editing/InputMethodController.cpp#newcode492 third_party/WebKit/Source/core/editing/InputMethodController.cpp:492: before = std::min(selectionStart, before); This should be ...
4 years, 7 months ago (2016-05-02 05:58:29 UTC) #50
yabinh
deleteContents doesn’t work well for multiple nodes. Please see the comments in the code. In ...
4 years, 7 months ago (2016-05-23 10:25:00 UTC) #51
Changwan Ryu
On 2016/05/23 10:25:00, yabinh wrote: > deleteContents doesn’t work well for multiple nodes. Please see ...
4 years, 7 months ago (2016-05-24 05:50:21 UTC) #52
yabinh
changwan@, can you take a look at the latest patch? It's similar to patch set ...
4 years, 6 months ago (2016-06-20 06:48:51 UTC) #53
Changwan Ryu
lgtm https://codereview.chromium.org/1889053003/diff/300001/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 (right): https://codereview.chromium.org/1889053003/diff/300001/content/public/android/javatests/src/org/chromium/content/browser/input/ImeTest.java#newcode1254 content/public/android/javatests/src/org/chromium/content/browser/input/ImeTest.java:1254: // TODO(yabinh): It should only fire 1 input ...
4 years, 6 months ago (2016-06-20 10:03:25 UTC) #54
yabinh
https://codereview.chromium.org/1889053003/diff/300001/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 (right): https://codereview.chromium.org/1889053003/diff/300001/content/public/android/javatests/src/org/chromium/content/browser/input/ImeTest.java#newcode1254 content/public/android/javatests/src/org/chromium/content/browser/input/ImeTest.java:1254: // TODO(yabinh): It should only fire 1 input and ...
4 years, 6 months ago (2016-06-20 10:22:23 UTC) #55
Changwan Ryu
https://codereview.chromium.org/1889053003/diff/320001/third_party/WebKit/Source/core/editing/InputMethodController.cpp File third_party/WebKit/Source/core/editing/InputMethodController.cpp (right): https://codereview.chromium.org/1889053003/diff/320001/third_party/WebKit/Source/core/editing/InputMethodController.cpp#newcode571 third_party/WebKit/Source/core/editing/InputMethodController.cpp:571: Position position(frame().selection().start().anchorNode(), selectionStart - before + 1); On a ...
4 years, 5 months ago (2016-07-05 15:47:36 UTC) #56
yabinh
https://codereview.chromium.org/1889053003/diff/320001/third_party/WebKit/Source/core/editing/InputMethodController.cpp File third_party/WebKit/Source/core/editing/InputMethodController.cpp (right): https://codereview.chromium.org/1889053003/diff/320001/third_party/WebKit/Source/core/editing/InputMethodController.cpp#newcode571 third_party/WebKit/Source/core/editing/InputMethodController.cpp:571: Position position(frame().selection().start().anchorNode(), selectionStart - before + 1); On 2016/07/05 ...
4 years, 5 months ago (2016-07-06 02:15:02 UTC) #57
Changwan Ryu
https://codereview.chromium.org/1889053003/diff/320001/third_party/WebKit/Source/core/editing/InputMethodController.cpp File third_party/WebKit/Source/core/editing/InputMethodController.cpp (right): https://codereview.chromium.org/1889053003/diff/320001/third_party/WebKit/Source/core/editing/InputMethodController.cpp#newcode571 third_party/WebKit/Source/core/editing/InputMethodController.cpp:571: Position position(frame().selection().start().anchorNode(), selectionStart - before + 1); On 2016/07/06 ...
4 years, 5 months ago (2016-07-06 04:20:19 UTC) #58
yabinh
https://codereview.chromium.org/1889053003/diff/340001/third_party/WebKit/Source/core/editing/InputMethodControllerTest.cpp File third_party/WebKit/Source/core/editing/InputMethodControllerTest.cpp (right): https://codereview.chromium.org/1889053003/diff/340001/third_party/WebKit/Source/core/editing/InputMethodControllerTest.cpp#newcode441 third_party/WebKit/Source/core/editing/InputMethodControllerTest.cpp:441: Add test for multiple nodes, especially for line break. ...
4 years, 5 months ago (2016-07-06 11:55:10 UTC) #59
commit-bot: I haz the power
Your CL relies on deprecated CQ feature(s): * Specifying master names in CQ_INCLUDE_TRYBOTS part of ...
4 years, 5 months ago (2016-07-20 07:19:11 UTC) #62
yabinh
changwan@, can you take another look?
4 years, 5 months ago (2016-07-20 07:33:06 UTC) #63
Changwan Ryu
https://codereview.chromium.org/1889053003/diff/360001/third_party/WebKit/Source/core/editing/InputMethodController.cpp File third_party/WebKit/Source/core/editing/InputMethodController.cpp (right): https://codereview.chromium.org/1889053003/diff/360001/third_party/WebKit/Source/core/editing/InputMethodController.cpp#newcode591 third_party/WebKit/Source/core/editing/InputMethodController.cpp:591: int diff = adjustedPosition.computeOffsetInContainerNode() - position.computeOffsetInContainerNode(); what should happen ...
4 years, 5 months ago (2016-07-20 08:37:42 UTC) #64
yabinh
https://codereview.chromium.org/1889053003/diff/360001/third_party/WebKit/Source/core/editing/InputMethodController.cpp File third_party/WebKit/Source/core/editing/InputMethodController.cpp (right): https://codereview.chromium.org/1889053003/diff/360001/third_party/WebKit/Source/core/editing/InputMethodController.cpp#newcode591 third_party/WebKit/Source/core/editing/InputMethodController.cpp:591: int diff = adjustedPosition.computeOffsetInContainerNode() - position.computeOffsetInContainerNode(); On 2016/07/20 08:37:42, ...
4 years, 5 months ago (2016-07-20 11:49:16 UTC) #65
Changwan Ryu
yukawa@, is it ok to delete by graphme clusters, not by code points for deleteSurroundingText()? ...
4 years, 5 months ago (2016-07-21 02:33:09 UTC) #69
yukawa
On 2016/07/21 02:33:09, Changwan Ryu wrote: > yukawa@, is it ok to delete by graphme ...
4 years, 5 months ago (2016-07-21 20:48:15 UTC) #70
Changwan Ryu
On 2016/07/21 20:48:15, yukawa wrote: > On 2016/07/21 02:33:09, Changwan Ryu wrote: > > yukawa@, ...
4 years, 5 months ago (2016-07-22 00:11:48 UTC) #71
yukawa
On 2016/07/22 00:11:48, Changwan Ryu wrote: > The question here is whether it should be ...
4 years, 5 months ago (2016-07-22 02:29:29 UTC) #72
Changwan Ryu
On 2016/07/22 02:29:29, yukawa wrote: > On 2016/07/22 00:11:48, Changwan Ryu wrote: > > The ...
4 years, 5 months ago (2016-07-22 02:44:43 UTC) #73
Changwan Ryu
On 2016/07/22 02:44:43, Changwan Ryu wrote: > On 2016/07/22 02:29:29, yukawa wrote: > > On ...
4 years, 2 months ago (2016-10-04 08:26:51 UTC) #74
yosin_UTC9
https://codereview.chromium.org/1889053003/diff/360001/third_party/WebKit/Source/core/editing/InputMethodController.cpp File third_party/WebKit/Source/core/editing/InputMethodController.cpp (right): https://codereview.chromium.org/1889053003/diff/360001/third_party/WebKit/Source/core/editing/InputMethodController.cpp#newcode583 third_party/WebKit/Source/core/editing/InputMethodController.cpp:583: // For multi-code text, we can't select it successfully ...
4 years, 2 months ago (2016-10-04 09:59:55 UTC) #75
yabinh
https://codereview.chromium.org/1889053003/diff/360001/third_party/WebKit/Source/core/editing/InputMethodController.cpp File third_party/WebKit/Source/core/editing/InputMethodController.cpp (right): https://codereview.chromium.org/1889053003/diff/360001/third_party/WebKit/Source/core/editing/InputMethodController.cpp#newcode583 third_party/WebKit/Source/core/editing/InputMethodController.cpp:583: // For multi-code text, we can't select it successfully ...
4 years, 2 months ago (2016-10-11 03:16:57 UTC) #83
yosin_UTC9
https://codereview.chromium.org/1889053003/diff/420001/third_party/WebKit/Source/core/editing/InputMethodController.cpp File third_party/WebKit/Source/core/editing/InputMethodController.cpp (right): https://codereview.chromium.org/1889053003/diff/420001/third_party/WebKit/Source/core/editing/InputMethodController.cpp#newcode716 third_party/WebKit/Source/core/editing/InputMethodController.cpp:716: const Position& adjustedPosition = previousPositionOf( I saw this pattern ...
4 years, 2 months ago (2016-10-12 08:34:17 UTC) #93
yabinh
https://codereview.chromium.org/1889053003/diff/420001/third_party/WebKit/Source/core/editing/InputMethodController.cpp File third_party/WebKit/Source/core/editing/InputMethodController.cpp (right): https://codereview.chromium.org/1889053003/diff/420001/third_party/WebKit/Source/core/editing/InputMethodController.cpp#newcode716 third_party/WebKit/Source/core/editing/InputMethodController.cpp:716: const Position& adjustedPosition = previousPositionOf( On 2016/10/12 08:34:17, Yosi_UTC9 ...
4 years, 2 months ago (2016-10-13 01:44:33 UTC) #98
yosin_UTC9
lgtm for third_party/Webkit/Source/core/editing https://codereview.chromium.org/1889053003/diff/440001/third_party/WebKit/Source/core/editing/InputMethodController.cpp File third_party/WebKit/Source/core/editing/InputMethodController.cpp (right): https://codereview.chromium.org/1889053003/diff/440001/third_party/WebKit/Source/core/editing/InputMethodController.cpp#newcode875 third_party/WebKit/Source/core/editing/InputMethodController.cpp:875: PlainTextRange selectionOffsets(getSelectionOffsets()); s/PlainTextRange/const PlainTextRange/ https://codereview.chromium.org/1889053003/diff/440001/third_party/WebKit/Source/core/editing/InputMethodController.cpp#newcode878 third_party/WebKit/Source/core/editing/InputMethodController.cpp:878: ...
4 years, 2 months ago (2016-10-13 03:40:10 UTC) #101
yabinh
Thanks~ clamy@, Please review changes in content/browser/frame_host/, content/common/, content/test/, Thanks~ https://codereview.chromium.org/1889053003/diff/440001/third_party/WebKit/Source/core/editing/InputMethodController.cpp File third_party/WebKit/Source/core/editing/InputMethodController.cpp (right): https://codereview.chromium.org/1889053003/diff/440001/third_party/WebKit/Source/core/editing/InputMethodController.cpp#newcode875 ...
4 years, 2 months ago (2016-10-13 05:08:23 UTC) #105
clamy
Thanks! content/ looks mostly good, just a question about the integers types, since in places ...
4 years, 2 months ago (2016-10-13 12:26:00 UTC) #108
yabinh
Thanks~ https://codereview.chromium.org/1889053003/diff/460001/content/browser/frame_host/render_frame_host_impl.h File content/browser/frame_host/render_frame_host_impl.h (right): https://codereview.chromium.org/1889053003/diff/460001/content/browser/frame_host/render_frame_host_impl.h#newcode461 content/browser/frame_host/render_frame_host_impl.h:461: void DeleteSurroundingText(int before, int after); On 2016/10/13 12:26:00, ...
4 years, 2 months ago (2016-10-13 12:57:24 UTC) #111
clamy
Thanks! One more comment. https://codereview.chromium.org/1889053003/diff/480001/content/common/input_messages.h File content/common/input_messages.h (right): https://codereview.chromium.org/1889053003/diff/480001/content/common/input_messages.h#newcode151 content/common/input_messages.h:151: int /* before */, I ...
4 years, 2 months ago (2016-10-13 13:10:08 UTC) #112
yabinh
https://codereview.chromium.org/1889053003/diff/480001/content/common/input_messages.h File content/common/input_messages.h (right): https://codereview.chromium.org/1889053003/diff/480001/content/common/input_messages.h#newcode151 content/common/input_messages.h:151: int /* before */, On 2016/10/13 13:10:07, clamy wrote: ...
4 years, 2 months ago (2016-10-13 13:39:37 UTC) #115
clamy
Thanks! Lgtm with a nit. https://codereview.chromium.org/1889053003/diff/500001/content/test/test_render_frame.h File content/test/test_render_frame.h (right): https://codereview.chromium.org/1889053003/diff/500001/content/test/test_render_frame.h#newcode41 content/test/test_render_frame.h:41: void DeleteSurroundingText(int before, int ...
4 years, 2 months ago (2016-10-13 13:44:20 UTC) #116
yabinh
https://codereview.chromium.org/1889053003/diff/480001/content/common/input_messages.h File content/common/input_messages.h (right): https://codereview.chromium.org/1889053003/diff/480001/content/common/input_messages.h#newcode151 content/common/input_messages.h:151: int /* before */, On 2016/10/13 13:39:37, yabinh wrote: ...
4 years, 2 months ago (2016-10-13 13:58:57 UTC) #119
clamy
On 2016/10/13 13:58:57, yabinh wrote: > https://codereview.chromium.org/1889053003/diff/480001/content/common/input_messages.h > File content/common/input_messages.h (right): > > https://codereview.chromium.org/1889053003/diff/480001/content/common/input_messages.h#newcode151 > ...
4 years, 2 months ago (2016-10-13 14:40:35 UTC) #122
yabinh
On 2016/10/13 14:40:35, clamy wrote: > On 2016/10/13 13:58:57, yabinh wrote: > > > https://codereview.chromium.org/1889053003/diff/480001/content/common/input_messages.h ...
4 years, 2 months ago (2016-10-13 14:47:10 UTC) #125
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/1889053003/510019
4 years, 2 months ago (2016-10-13 23:56:24 UTC) #130
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/280900)
4 years, 2 months ago (2016-10-14 00:09:15 UTC) #132
yabinh
4 years, 2 months ago (2016-10-14 01:10:05 UTC) #133
yabinh
dcheng@, can you take a look at content/common/input_messages.h? It seems that I need l-g-t-m from ...
4 years, 2 months ago (2016-10-14 01:22:34 UTC) #134
dcheng
ipc lgtm
4 years, 2 months ago (2016-10-14 02:28:40 UTC) #135
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/1889053003/510019
4 years, 2 months ago (2016-10-14 02:58:51 UTC) #137
commit-bot: I haz the power
Committed patchset #28 (id:510019)
4 years, 2 months ago (2016-10-14 03:09:38 UTC) #138
commit-bot: I haz the power
4 years, 2 months ago (2016-10-14 03:12:32 UTC) #140
Message was sent while issue was closed.
Patchset 28 (id:??) landed as
https://crrev.com/90f1be18144ff4106ad203d45915b116938bf13a
Cr-Commit-Position: refs/heads/master@{#425244}

Powered by Google App Engine
This is Rietveld 408576698