Index: content/public/android/java/src/org/chromium/content/browser/input/ImeAdapter.java |
diff --git a/content/public/android/java/src/org/chromium/content/browser/input/ImeAdapter.java b/content/public/android/java/src/org/chromium/content/browser/input/ImeAdapter.java |
index 1f87b13a481ccdffe3d6d704dc9da65de540f8b1..bfc8ea5b419112ed1af2c03d68581aa3ce044af8 100644 |
--- a/content/public/android/java/src/org/chromium/content/browser/input/ImeAdapter.java |
+++ b/content/public/android/java/src/org/chromium/content/browser/input/ImeAdapter.java |
@@ -295,6 +295,13 @@ public class ImeAdapter { |
return isTextInputType(mTextInputType); |
} |
+ /** |
+ * @return true if the selected text is of password. |
+ */ |
+ public boolean isSelectionPassword() { |
+ return mTextInputType == sTextInputTypePassword; |
+ } |
+ |
public boolean dispatchKeyEvent(KeyEvent event) { |
return translateAndSendNativeEvents(event); |
} |