| 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 f7dd561502a72e98746326fb60ee479245c72d27..274bb133dcd5099b940550f011da2b83a19ee4d5 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
|
| @@ -427,9 +427,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;
|
| }
|
|
|
| /**
|
|
|