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

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

Issue 413143003: Selection popup is present even after focus is changed. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 5 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
« 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 1666 matching lines...) Expand 10 before | Expand all | Expand 10 after
1677 */ 1677 */
1678 public void onWindowFocusChanged(boolean hasWindowFocus) { 1678 public void onWindowFocusChanged(boolean hasWindowFocus) {
1679 if (!hasWindowFocus) resetGestureDetection(); 1679 if (!hasWindowFocus) resetGestureDetection();
1680 } 1680 }
1681 1681
1682 public void onFocusChanged(boolean gainFocus) { 1682 public void onFocusChanged(boolean gainFocus) {
1683 if (!gainFocus) { 1683 if (!gainFocus) {
1684 hideImeIfNeeded(); 1684 hideImeIfNeeded();
1685 cancelRequestToScrollFocusedEditableNodeIntoView(); 1685 cancelRequestToScrollFocusedEditableNodeIntoView();
1686 hidePastePopup(); 1686 hidePastePopup();
1687 hideTextHandles();
1687 } 1688 }
1688 if (mNativeContentViewCore != 0) nativeSetFocus(mNativeContentViewCore, gainFocus); 1689 if (mNativeContentViewCore != 0) nativeSetFocus(mNativeContentViewCore, gainFocus);
1689 } 1690 }
1690 1691
1691 /** 1692 /**
1692 * @see View#onKeyUp(int, KeyEvent) 1693 * @see View#onKeyUp(int, KeyEvent)
1693 */ 1694 */
1694 public boolean onKeyUp(int keyCode, KeyEvent event) { 1695 public boolean onKeyUp(int keyCode, KeyEvent event) {
1695 if (mPopupZoomer.isShowing() && keyCode == KeyEvent.KEYCODE_BACK) { 1696 if (mPopupZoomer.isShowing() && keyCode == KeyEvent.KEYCODE_BACK) {
1696 mPopupZoomer.hide(true); 1697 mPopupZoomer.hide(true);
(...skipping 1532 matching lines...) Expand 10 before | Expand all | Expand 10 after
3229 3230
3230 private native void nativeExtractSmartClipData(long nativeContentViewCoreImp l, 3231 private native void nativeExtractSmartClipData(long nativeContentViewCoreImp l,
3231 int x, int y, int w, int h); 3232 int x, int y, int w, int h);
3232 private native void nativeSetBackgroundOpaque(long nativeContentViewCoreImpl , boolean opaque); 3233 private native void nativeSetBackgroundOpaque(long nativeContentViewCoreImpl , boolean opaque);
3233 3234
3234 private native void nativeResumeResponseDeferredAtStart( 3235 private native void nativeResumeResponseDeferredAtStart(
3235 long nativeContentViewCoreImpl); 3236 long nativeContentViewCoreImpl);
3236 private native void nativeSetHasPendingNavigationTransitionForTesting( 3237 private native void nativeSetHasPendingNavigationTransitionForTesting(
3237 long nativeContentViewCoreImpl); 3238 long nativeContentViewCoreImpl);
3238 } 3239 }
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