| Index: content/public/android/java/src/org/chromium/content/browser/input/ThreadedInputConnection.java
|
| diff --git a/content/public/android/java/src/org/chromium/content/browser/input/ThreadedInputConnection.java b/content/public/android/java/src/org/chromium/content/browser/input/ThreadedInputConnection.java
|
| index 330863f770afba4ebd4f622cea8c596ed73abd87..543288cec4c2faf77fb1ec5d673ba9053cd788ff 100644
|
| --- a/content/public/android/java/src/org/chromium/content/browser/input/ThreadedInputConnection.java
|
| +++ b/content/public/android/java/src/org/chromium/content/browser/input/ThreadedInputConnection.java
|
| @@ -431,9 +431,21 @@ class ThreadedInputConnection extends BaseInputConnection implements ChromiumBas
|
| /**
|
| * @see InputConnection#deleteSurroundingTextInCodePoints(int, int)
|
| */
|
| - public boolean deleteSurroundingTextInCodePoints(int beforeLength, int afterLength) {
|
| - // TODO(changwan): Implement this. http://crbug.com/595525
|
| - return false;
|
| + public boolean deleteSurroundingTextInCodePoints(
|
| + final int beforeLength, final int afterLength) {
|
| + if (DEBUG_LOGS) {
|
| + Log.w(TAG, "deleteSurroundingTextInCodePoints [%d %d]", beforeLength, afterLength);
|
| + }
|
| + ThreadUtils.postOnUiThread(new Runnable() {
|
| + @Override
|
| + public void run() {
|
| + if (mPendingAccent != 0) {
|
| + finishComposingTextOnUiThread();
|
| + }
|
| + mImeAdapter.deleteSurroundingTextInCodePoints(beforeLength, afterLength);
|
| + }
|
| + });
|
| + return true;
|
| }
|
|
|
| /**
|
|
|