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

Side by Side Diff: content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java

Issue 747773003: When doing selection from Actionmode item then IME get closed. and focus get lost. IME should not c… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Changes as per review comments. Created 6 years 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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.ClipboardManager; 10 import android.content.ClipboardManager;
(...skipping 1309 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698