|
Revert of Allow selection change update before beginBatchEdit (patchset #7 id:120001 of https://codereview.chromium.org/2309983002/ )
Reason for revert:
This led to crbug.com/659934 because FROM_IME
message created for endBatchEdit() was consumed by get* method. In this case
state update does not get sent out to InputMethodManager. (really reverting it for M56 as the fix is taking longer)
Original issue's description:
> Allow selection change update before beginBatchEdit
>
> Currently, selection changes immediately before beginBatchEdit() may be
> merged into batch edit selection update which happens at endBatchEdit().
>
> The reason is that it takes round-trip time to get update from previous
> operation and if we increment mNumNestedBatchEdits in beginBatchEdit()
> before the update from renderer process arrives at browser process,
> then the update from operation will be ignored because
> mNumNestedBatchEdits > 0.
>
> This can be prevented if we keep the batch edit information in renderer
> and tag it to each text input state update.
>
> Note that mNumNestedBatchEdits should still be kept in
> ThreadedInputConnection to return the correct value in endBatchEdit().
>
> BUG= 644574, 643473, 643477
>
> Committed: https://crrev.com/4662007a92a92b016ef3f05fb4cbbd6904825cc0
> Cr-Commit-Position: refs/heads/master@{#419959}
TBR=aelias@chromium.org,avi@chromium.org,dcheng@chromium.org
# Not skipping CQ checks because original CL landed more than 1 days ago.
BUG= 644574, 643473, 643477
Committed: https://crrev.com/967b73c203ccfb4efdd9f862942b9bbe7efdc644
Cr-Commit-Position: refs/heads/master@{#429837}
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+57 lines, -221 lines) |
Patch |
 |
M |
content/browser/android/content_view_core_impl.h
|
View
|
1
|
1 chunk |
+1 line, -2 lines |
0 comments
|
Download
|
 |
M |
content/browser/android/content_view_core_impl.cc
|
View
|
1
|
2 chunks |
+2 lines, -4 lines |
0 comments
|
Download
|
 |
M |
content/browser/renderer_host/ime_adapter_android.h
|
View
|
1
|
1 chunk |
+0 lines, -2 lines |
0 comments
|
Download
|
 |
M |
content/browser/renderer_host/ime_adapter_android.cc
|
View
|
1
|
1 chunk |
+0 lines, -20 lines |
0 comments
|
Download
|
 |
M |
content/browser/renderer_host/render_widget_host_view_android.cc
|
View
|
1
|
1 chunk |
+1 line, -2 lines |
0 comments
|
Download
|
 |
M |
content/common/input_messages.h
|
View
|
1
|
1 chunk |
+0 lines, -3 lines |
0 comments
|
Download
|
 |
M |
content/common/text_input_state.h
|
View
|
1
|
1 chunk |
+0 lines, -3 lines |
0 comments
|
Download
|
 |
M |
content/common/text_input_state.cc
|
View
|
1
|
1 chunk |
+1 line, -2 lines |
0 comments
|
Download
|
 |
M |
content/common/view_messages.h
|
View
|
1
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
 |
M |
content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java
|
View
|
1
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
content/public/android/java/src/org/chromium/content/browser/input/ChromiumBaseInputConnection.java
|
View
|
1
|
1 chunk |
+1 line, -3 lines |
0 comments
|
Download
|
 |
M |
content/public/android/java/src/org/chromium/content/browser/input/ImeAdapter.java
|
View
|
1
|
4 chunks |
+3 lines, -26 lines |
0 comments
|
Download
|
 |
M |
content/public/android/java/src/org/chromium/content/browser/input/ReplicaInputConnection.java
|
View
|
1
|
1 chunk |
+1 line, -2 lines |
0 comments
|
Download
|
 |
M |
content/public/android/java/src/org/chromium/content/browser/input/TextInputState.java
|
View
|
1
|
4 chunks |
+3 lines, -9 lines |
0 comments
|
Download
|
 |
M |
content/public/android/java/src/org/chromium/content/browser/input/ThreadedInputConnection.java
|
View
|
1
|
7 chunks |
+9 lines, -34 lines |
0 comments
|
Download
|
 |
M |
content/public/android/javatests/src/org/chromium/content/browser/input/ImeTest.java
|
View
|
1
|
2 chunks |
+9 lines, -12 lines |
0 comments
|
Download
|
 |
M |
content/public/android/junit/src/org/chromium/content/browser/input/TextInputStateTest.java
|
View
|
1
|
3 chunks |
+4 lines, -3 lines |
0 comments
|
Download
|
 |
M |
content/public/android/junit/src/org/chromium/content/browser/input/ThreadedInputConnectionFactoryTest.java
|
View
|
1
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
 |
M |
content/public/android/junit/src/org/chromium/content/browser/input/ThreadedInputConnectionTest.java
|
View
|
1
|
8 chunks |
+20 lines, -65 lines |
0 comments
|
Download
|
 |
M |
content/renderer/render_widget.h
|
View
|
1
|
2 chunks |
+0 lines, -8 lines |
0 comments
|
Download
|
 |
M |
content/renderer/render_widget.cc
|
View
|
1
2
|
4 chunks |
+0 lines, -17 lines |
0 comments
|
Download
|
Total messages: 15 (7 generated)
|