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 2171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2182 | 2182 |
2183 @Override | 2183 @Override |
2184 public boolean isSelectionEditable() { | 2184 public boolean isSelectionEditable() { |
2185 return mFocusedNodeEditable; | 2185 return mFocusedNodeEditable; |
2186 } | 2186 } |
2187 | 2187 |
2188 @Override | 2188 @Override |
2189 public void onDestroyActionMode() { | 2189 public void onDestroyActionMode() { |
2190 mActionMode = null; | 2190 mActionMode = null; |
2191 if (mUnselectAllOnActionModeDismiss) { | 2191 if (mUnselectAllOnActionModeDismiss) { |
| 2192 hideHandles(); |
2192 if (isSelectionEditable()) { | 2193 if (isSelectionEditable()) { |
2193 int selectionEnd = Selection.getSelectionEnd(mEditable); | 2194 int selectionEnd = Selection.getSelectionEnd(mEditable); |
2194 mInputConnection.setSelection(selectionEnd, selectionEnd
); | 2195 mInputConnection.setSelection(selectionEnd, selectionEnd
); |
2195 } else { | 2196 } else { |
2196 mImeAdapter.unselect(); | 2197 mImeAdapter.unselect(); |
2197 } | 2198 } |
2198 } | 2199 } |
2199 getContentViewClient().onContextualActionBarHidden(); | 2200 getContentViewClient().onContextualActionBarHidden(); |
2200 } | 2201 } |
2201 | 2202 |
(...skipping 1190 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3392 | 3393 |
3393 private native void nativeExtractSmartClipData(long nativeContentViewCoreImp
l, | 3394 private native void nativeExtractSmartClipData(long nativeContentViewCoreImp
l, |
3394 int x, int y, int w, int h); | 3395 int x, int y, int w, int h); |
3395 private native void nativeSetBackgroundOpaque(long nativeContentViewCoreImpl
, boolean opaque); | 3396 private native void nativeSetBackgroundOpaque(long nativeContentViewCoreImpl
, boolean opaque); |
3396 | 3397 |
3397 private native void nativeResumeResponseDeferredAtStart( | 3398 private native void nativeResumeResponseDeferredAtStart( |
3398 long nativeContentViewCoreImpl); | 3399 long nativeContentViewCoreImpl); |
3399 private native void nativeSetHasPendingNavigationTransitionForTesting( | 3400 private native void nativeSetHasPendingNavigationTransitionForTesting( |
3400 long nativeContentViewCoreImpl); | 3401 long nativeContentViewCoreImpl); |
3401 } | 3402 } |
OLD | NEW |