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 92c24c983c1916478a95ecf393038a6603a89329..beb9bf4bc09f5fb5a5b72e1b1d4e175f83fea04e 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 |
@@ -432,9 +432,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; |
} |
/** |