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

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

Issue 258273002: Cut and Copy option should not be avilable for password field. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased because of conflict in AUTHORS file Created 6 years, 7 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 | « content/public/android/java/src/org/chromium/content/browser/SelectActionModeCallback.java ('k') | 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/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);
}
« no previous file with comments | « content/public/android/java/src/org/chromium/content/browser/SelectActionModeCallback.java ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698