Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1247)

Unified Diff: content/public/android/java/src/org/chromium/content/browser/input/ThreadedInputConnection.java

Issue 1589953005: Support InputMethodManager#updateCursorAnchorInfo for Android 5.0 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed comments in #38 Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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 bebd6f09d2a9551a085ad96887b163ca642febe7..3728bf3b7482406dd2a3c28ea11feb691b98d6f6 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
@@ -601,9 +601,15 @@ public class ThreadedInputConnection implements ChromiumBaseInputConnection {
* @see InputConnection#requestCursorUpdates(int)
*/
@Override
- public boolean requestCursorUpdates(int cursorUpdateMode) {
+ public boolean requestCursorUpdates(final int cursorUpdateMode) {
if (DEBUG_LOGS) Log.w(TAG, "requestCursorUpdates [%x]", cursorUpdateMode);
assertOnImeThread();
- return false;
+ ThreadUtils.postOnUiThread(new Runnable() {
+ @Override
+ public void run() {
+ mImeAdapter.onRequestCursorUpdates(cursorUpdateMode);
+ }
+ });
+ return true;
}
-}
+}

Powered by Google App Engine
This is Rietveld 408576698