|
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}
Total comments: 11
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+219 lines, -52 lines) |
Patch |
 |
M |
content/browser/android/content_view_core_impl.h
|
View
|
1
2
3
4
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
content/browser/android/content_view_core_impl.cc
|
View
|
1
2
3
4
5
6
|
2 chunks |
+4 lines, -2 lines |
0 comments
|
Download
|
 |
M |
content/browser/renderer_host/ime_adapter_android.h
|
View
|
1
2
3
4
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
M |
content/browser/renderer_host/ime_adapter_android.cc
|
View
|
1
2
3
4
|
1 chunk |
+20 lines, -0 lines |
0 comments
|
Download
|
 |
M |
content/browser/renderer_host/render_widget_host_view_android.cc
|
View
|
1
2
3
4
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
content/common/input_messages.h
|
View
|
1
2
3
4
|
1 chunk |
+3 lines, -0 lines |
0 comments
|
Download
|
 |
M |
content/common/text_input_state.h
|
View
|
|
1 chunk |
+3 lines, -0 lines |
0 comments
|
Download
|
 |
M |
content/common/text_input_state.cc
|
View
|
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
content/common/view_messages.h
|
View
|
1
2
3
4
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java
|
View
|
1
2
3
4
5
6
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
content/public/android/java/src/org/chromium/content/browser/input/ChromiumBaseInputConnection.java
|
View
|
|
1 chunk |
+3 lines, -1 line |
0 comments
|
Download
|
 |
M |
content/public/android/java/src/org/chromium/content/browser/input/ImeAdapter.java
|
View
|
1
2
3
4
|
4 chunks |
+26 lines, -3 lines |
0 comments
|
Download
|
 |
M |
content/public/android/java/src/org/chromium/content/browser/input/ReplicaInputConnection.java
|
View
|
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
content/public/android/java/src/org/chromium/content/browser/input/TextInputState.java
|
View
|
|
4 chunks |
+9 lines, -3 lines |
0 comments
|
Download
|
 |
M |
content/public/android/java/src/org/chromium/content/browser/input/ThreadedInputConnection.java
|
View
|
1
2
3
4
|
7 chunks |
+34 lines, -10 lines |
0 comments
|
Download
|
 |
M |
content/public/android/javatests/src/org/chromium/content/browser/input/ImeTest.java
|
View
|
1
2
3
4
5
6
|
2 chunks |
+14 lines, -9 lines |
0 comments
|
Download
|
 |
M |
content/public/android/junit/src/org/chromium/content/browser/input/TextInputStateTest.java
|
View
|
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
content/public/android/junit/src/org/chromium/content/browser/input/ThreadedInputConnectionFactoryTest.java
|
View
|
1
2
3
4
5
6
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
content/public/android/junit/src/org/chromium/content/browser/input/ThreadedInputConnectionTest.java
|
View
|
1
2
3
4
5
|
6 chunks |
+62 lines, -16 lines |
0 comments
|
Download
|
 |
M |
content/renderer/render_widget.h
|
View
|
1
2
3
4
|
2 chunks |
+8 lines, -0 lines |
0 comments
|
Download
|
 |
M |
content/renderer/render_widget.cc
|
View
|
1
2
3
4
|
4 chunks |
+17 lines, -0 lines |
0 comments
|
Download
|
Total messages: 47 (28 generated)
|