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.ClipboardManager; | 10 import android.content.ClipboardManager; |
(...skipping 1309 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1320 // when focus is lost in webview. | 1320 // when focus is lost in webview. |
1321 clearUserSelection(); | 1321 clearUserSelection(); |
1322 } | 1322 } |
1323 | 1323 |
1324 private void hidePopupsAndPreserveSelection() { | 1324 private void hidePopupsAndPreserveSelection() { |
1325 mUnselectAllOnActionModeDismiss = false; | 1325 mUnselectAllOnActionModeDismiss = false; |
1326 hidePopups(); | 1326 hidePopups(); |
1327 } | 1327 } |
1328 | 1328 |
1329 private void clearUserSelection() { | 1329 private void clearUserSelection() { |
1330 if (isSelectionEditable()) { | 1330 if (mFocusedNodeEditable) { |
1331 if (mInputConnection != null) { | 1331 if (mInputConnection != null) { |
1332 int selectionEnd = Selection.getSelectionEnd(mEditable); | 1332 int selectionEnd = Selection.getSelectionEnd(mEditable); |
1333 mInputConnection.setSelection(selectionEnd, selectionEnd); | 1333 mInputConnection.setSelection(selectionEnd, selectionEnd); |
1334 } | 1334 } |
1335 } else if (mImeAdapter != null) { | 1335 } else if (mImeAdapter != null) { |
1336 mImeAdapter.unselect(); | 1336 mImeAdapter.unselect(); |
1337 } | 1337 } |
1338 } | 1338 } |
1339 | 1339 |
1340 private void hidePopups() { | 1340 private void hidePopups() { |
(...skipping 1715 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3056 private native void nativeWasResized(long nativeContentViewCoreImpl); | 3056 private native void nativeWasResized(long nativeContentViewCoreImpl); |
3057 | 3057 |
3058 private native void nativeSetAccessibilityEnabled( | 3058 private native void nativeSetAccessibilityEnabled( |
3059 long nativeContentViewCoreImpl, boolean enabled); | 3059 long nativeContentViewCoreImpl, boolean enabled); |
3060 | 3060 |
3061 private native void nativeExtractSmartClipData(long nativeContentViewCoreImp
l, | 3061 private native void nativeExtractSmartClipData(long nativeContentViewCoreImp
l, |
3062 int x, int y, int w, int h); | 3062 int x, int y, int w, int h); |
3063 | 3063 |
3064 private native void nativeSetBackgroundOpaque(long nativeContentViewCoreImpl
, boolean opaque); | 3064 private native void nativeSetBackgroundOpaque(long nativeContentViewCoreImpl
, boolean opaque); |
3065 } | 3065 } |
OLD | NEW |