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

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

Issue 607953002: Suppress deprecation warning for InputMethodManager calls. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/android/java/src/org/chromium/content/browser/input/InputMethodManagerWrapper.java
diff --git a/content/public/android/java/src/org/chromium/content/browser/input/InputMethodManagerWrapper.java b/content/public/android/java/src/org/chromium/content/browser/input/InputMethodManagerWrapper.java
index 545f6cf7b637e9b880bc7ff67321d719ebfc0f9b..baa952ac0999b899baf314b85f9e09aa33bdefb7 100644
--- a/content/public/android/java/src/org/chromium/content/browser/input/InputMethodManagerWrapper.java
+++ b/content/public/android/java/src/org/chromium/content/browser/input/InputMethodManagerWrapper.java
@@ -65,14 +65,20 @@ public class InputMethodManagerWrapper {
/**
* @see android.view.inputmethod.InputMethodManager#isWatchingCursor(View)
*/
+ @SuppressWarnings("deprecation")
public boolean isWatchingCursor(View view) {
+ // TODO(aurimas): InputMethodManager.isWatchingCursor() was deprecated in L. Fix
+ // this once the final Android L SDK is released.
return getInputMethodManager().isWatchingCursor(view);
}
/**
* @see android.view.inputmethod.InputMethodManager#updateCursor(View, int, int, int, int)
*/
+ @SuppressWarnings("deprecation")
public void updateCursor(View view, int left, int top, int right, int bottom) {
+ // TODO(aurimas): InputMethodManager.updateCursor() was deprecated in L. Fix
+ // this once the final Android L SDK is released.
getInputMethodManager().updateCursor(view, left, top, right, bottom);
}
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698