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

Side by Side 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 unified diff | Download patch
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 package org.chromium.content.browser.input; 5 package org.chromium.content.browser.input;
6 6
7 import android.os.Bundle; 7 import android.os.Bundle;
8 import android.os.Handler; 8 import android.os.Handler;
9 import android.os.Looper; 9 import android.os.Looper;
10 import android.view.KeyCharacterMap; 10 import android.view.KeyCharacterMap;
(...skipping 583 matching lines...) Expand 10 before | Expand all | Expand 10 after
594 public boolean performPrivateCommand(String action, Bundle data) { 594 public boolean performPrivateCommand(String action, Bundle data) {
595 if (DEBUG_LOGS) Log.w(TAG, "performPrivateCommand [%s]", action); 595 if (DEBUG_LOGS) Log.w(TAG, "performPrivateCommand [%s]", action);
596 assertOnImeThread(); 596 assertOnImeThread();
597 return false; 597 return false;
598 } 598 }
599 599
600 /** 600 /**
601 * @see InputConnection#requestCursorUpdates(int) 601 * @see InputConnection#requestCursorUpdates(int)
602 */ 602 */
603 @Override 603 @Override
604 public boolean requestCursorUpdates(int cursorUpdateMode) { 604 public boolean requestCursorUpdates(final int cursorUpdateMode) {
605 if (DEBUG_LOGS) Log.w(TAG, "requestCursorUpdates [%x]", cursorUpdateMode ); 605 if (DEBUG_LOGS) Log.w(TAG, "requestCursorUpdates [%x]", cursorUpdateMode );
606 assertOnImeThread(); 606 assertOnImeThread();
607 return false; 607 ThreadUtils.postOnUiThread(new Runnable() {
608 @Override
609 public void run() {
610 mImeAdapter.onRequestCursorUpdates(cursorUpdateMode);
611 }
612 });
613 return true;
608 } 614 }
609 } 615 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698