diff options
Diffstat (limited to 'core/java/android/inputmethodservice/InputMethodService.java')
| -rw-r--r-- | core/java/android/inputmethodservice/InputMethodService.java | 25 |
1 files changed, 4 insertions, 21 deletions
diff --git a/core/java/android/inputmethodservice/InputMethodService.java b/core/java/android/inputmethodservice/InputMethodService.java index 3417de12a189..8423d0952ee8 100644 --- a/core/java/android/inputmethodservice/InputMethodService.java +++ b/core/java/android/inputmethodservice/InputMethodService.java @@ -53,6 +53,7 @@ import android.view.WindowManager.BadTokenException; import android.view.animation.AnimationUtils; import android.view.inputmethod.CompletionInfo; import android.view.inputmethod.CursorAnchorInfo; +import android.view.inputmethod.CursorAnchorInfoRequest; import android.view.inputmethod.EditorInfo; import android.view.inputmethod.ExtractedText; import android.view.inputmethod.ExtractedTextRequest; @@ -251,18 +252,6 @@ public class InputMethodService extends AbstractInputMethodService { */ public static final int IME_VISIBLE = 0x2; - /** - * The IME does not require cursor/anchor position. - */ - public static final int CURSOR_ANCHOR_MONITOR_MODE_NONE = 0x0; - - /** - * Passing this flag into a call to {@link #setCursorAnchorMonitorMode(int)} will result in - * the cursor rectangle being provided in screen coordinates to subsequent - * {@link #onUpdateCursor(Rect)} callbacks. - */ - public static final int CURSOR_ANCHOR_MONITOR_MODE_CURSOR_RECT = 0x1; - InputMethodManager mImm; int mTheme = 0; @@ -1722,8 +1711,9 @@ public class InputMethodService extends AbstractInputMethodService { * Called when the application has reported a new location of its text cursor. This is only * called if explicitly requested by the input method. The default implementation does nothing. * @param newCursor The new cursor position, in screen coordinates if the input method calls - * {@link #setCursorAnchorMonitorMode} with {@link #CURSOR_ANCHOR_MONITOR_MODE_CURSOR_RECT}. - * Otherwise, this is in local coordinates. + * {@link InputConnection#requestCursorAnchorInfo(CursorAnchorInfoRequest)} with + * {@link CursorAnchorInfoRequest#FLAG_CURSOR_RECT_IN_SCREEN_COORDINATES}. Otherwise, + * this is in local coordinates. */ public void onUpdateCursor(Rect newCursor) { // Intentionally empty @@ -1741,13 +1731,6 @@ public class InputMethodService extends AbstractInputMethodService { } /** - * Update the cursor/anthor monitor mode. - */ - public void setCursorAnchorMonitorMode(int monitorMode) { - mImm.setCursorAnchorMonitorMode(mToken, monitorMode); - } - - /** * Close this input method's soft input area, removing it from the display. * The input method will continue running, but the user can no longer use * it to generate input by touching the screen. |
