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

Side by Side Diff: content/public/android/java/src/org/chromium/content/browser/ContentViewCore.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 unified diff | Download patch
OLDNEW
1 // Copyright 2012 The Chromium Authors. All rights reserved. 1 // Copyright 2012 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; 5 package org.chromium.content.browser;
6 6
7 import android.annotation.SuppressLint; 7 import android.annotation.SuppressLint;
8 import android.app.Activity; 8 import android.app.Activity;
9 import android.app.SearchManager; 9 import android.app.SearchManager;
10 import android.content.ContentResolver; 10 import android.content.ContentResolver;
(...skipping 2048 matching lines...) Expand 10 before | Expand all | Expand 10 after
2059 i.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); 2059 i.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
2060 } 2060 }
2061 try { 2061 try {
2062 getContext().startActivity(i); 2062 getContext().startActivity(i);
2063 } catch (android.content.ActivityNotFoundException ex) { 2063 } catch (android.content.ActivityNotFoundException ex) {
2064 // If no app handles it, do nothing. 2064 // If no app handles it, do nothing.
2065 } 2065 }
2066 } 2066 }
2067 2067
2068 @Override 2068 @Override
2069 public boolean isSelectionPassword() {
2070 return mImeAdapter.isSelectionPassword();
2071 }
2072
2073 @Override
2069 public boolean isSelectionEditable() { 2074 public boolean isSelectionEditable() {
2070 return mSelectionEditable; 2075 return mSelectionEditable;
2071 } 2076 }
2072 2077
2073 @Override 2078 @Override
2074 public void onDestroyActionMode() { 2079 public void onDestroyActionMode() {
2075 mActionMode = null; 2080 mActionMode = null;
2076 if (mUnselectAllOnActionModeDismiss) mImeAdapter.unselect(); 2081 if (mUnselectAllOnActionModeDismiss) mImeAdapter.unselect();
2077 getContentViewClient().onContextualActionBarHidden(); 2082 getContentViewClient().onContextualActionBarHidden();
2078 } 2083 }
(...skipping 1142 matching lines...) Expand 10 before | Expand all | Expand 10 after
3221 boolean enableHiding, boolean enableShowing, boolean animate); 3226 boolean enableHiding, boolean enableShowing, boolean animate);
3222 3227
3223 private native void nativeShowImeIfNeeded(long nativeContentViewCoreImpl); 3228 private native void nativeShowImeIfNeeded(long nativeContentViewCoreImpl);
3224 3229
3225 private native void nativeSetAccessibilityEnabled( 3230 private native void nativeSetAccessibilityEnabled(
3226 long nativeContentViewCoreImpl, boolean enabled); 3231 long nativeContentViewCoreImpl, boolean enabled);
3227 3232
3228 private native void nativeExtractSmartClipData(long nativeContentViewCoreImp l, 3233 private native void nativeExtractSmartClipData(long nativeContentViewCoreImp l,
3229 int x, int y, int w, int h); 3234 int x, int y, int w, int h);
3230 } 3235 }
OLDNEW
« no previous file with comments | « AUTHORS ('k') | content/public/android/java/src/org/chromium/content/browser/SelectActionModeCallback.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698