OLD | NEW |
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 2149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2160 i.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); | 2160 i.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); |
2161 } | 2161 } |
2162 try { | 2162 try { |
2163 getContext().startActivity(i); | 2163 getContext().startActivity(i); |
2164 } catch (android.content.ActivityNotFoundException ex) { | 2164 } catch (android.content.ActivityNotFoundException ex) { |
2165 // If no app handles it, do nothing. | 2165 // If no app handles it, do nothing. |
2166 } | 2166 } |
2167 } | 2167 } |
2168 | 2168 |
2169 @Override | 2169 @Override |
| 2170 public boolean isPasswordType() { |
| 2171 return mImeAdapter.isPasswordType(); |
| 2172 } |
| 2173 |
| 2174 @Override |
2170 public boolean isSelectionEditable() { | 2175 public boolean isSelectionEditable() { |
2171 return mSelectionEditable; | 2176 return mSelectionEditable; |
2172 } | 2177 } |
2173 | 2178 |
2174 @Override | 2179 @Override |
2175 public void onDestroyActionMode() { | 2180 public void onDestroyActionMode() { |
2176 mActionMode = null; | 2181 mActionMode = null; |
2177 if (mUnselectAllOnActionModeDismiss) mImeAdapter.unselect(); | 2182 if (mUnselectAllOnActionModeDismiss) mImeAdapter.unselect(); |
2178 getContentViewClient().onContextualActionBarHidden(); | 2183 getContentViewClient().onContextualActionBarHidden(); |
2179 } | 2184 } |
(...skipping 1185 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3365 boolean enableHiding, boolean enableShowing, boolean animate); | 3370 boolean enableHiding, boolean enableShowing, boolean animate); |
3366 | 3371 |
3367 private native void nativeShowImeIfNeeded(long nativeContentViewCoreImpl); | 3372 private native void nativeShowImeIfNeeded(long nativeContentViewCoreImpl); |
3368 | 3373 |
3369 private native void nativeSetAccessibilityEnabled( | 3374 private native void nativeSetAccessibilityEnabled( |
3370 long nativeContentViewCoreImpl, boolean enabled); | 3375 long nativeContentViewCoreImpl, boolean enabled); |
3371 | 3376 |
3372 private native void nativeExtractSmartClipData(long nativeContentViewCoreImp
l, | 3377 private native void nativeExtractSmartClipData(long nativeContentViewCoreImp
l, |
3373 int x, int y, int w, int h); | 3378 int x, int y, int w, int h); |
3374 } | 3379 } |
OLD | NEW |