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

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

Issue 447493002: [Android] Force showing insertion handle when paste popup activated (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix for emptiness Created 6 years, 4 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 | « content/browser/renderer_host/render_widget_host_view_android.cc ('k') | 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 2449 matching lines...) Expand 10 before | Expand all | Expand 10 after
2460 @SuppressWarnings("unused") 2460 @SuppressWarnings("unused")
2461 @CalledByNative 2461 @CalledByNative
2462 private static void onEvaluateJavaScriptResult( 2462 private static void onEvaluateJavaScriptResult(
2463 String jsonResult, JavaScriptCallback callback) { 2463 String jsonResult, JavaScriptCallback callback) {
2464 callback.handleJavaScriptResult(jsonResult); 2464 callback.handleJavaScriptResult(jsonResult);
2465 } 2465 }
2466 2466
2467 @SuppressWarnings("unused") 2467 @SuppressWarnings("unused")
2468 @CalledByNative 2468 @CalledByNative
2469 private void showPastePopup(int xDip, int yDip) { 2469 private void showPastePopup(int xDip, int yDip) {
2470 if (!mHasInsertion) return;
2470 final float contentOffsetYPix = mRenderCoordinates.getContentOffsetYPix( ); 2471 final float contentOffsetYPix = mRenderCoordinates.getContentOffsetYPix( );
2471 getPastePopup().showAt( 2472 getPastePopup().showAt(
2472 (int) mRenderCoordinates.fromDipToPix(xDip), 2473 (int) mRenderCoordinates.fromDipToPix(xDip),
2473 (int) (mRenderCoordinates.fromDipToPix(yDip) + contentOffsetYPix)); 2474 (int) (mRenderCoordinates.fromDipToPix(yDip) + contentOffsetYPix));
2474 } 2475 }
2475 2476
2476 private PastePopupMenu getPastePopup() { 2477 private PastePopupMenu getPastePopup() {
2477 if (mPastePopupMenu == null) { 2478 if (mPastePopupMenu == null) {
2478 mPastePopupMenu = new PastePopupMenu(getContainerView(), 2479 mPastePopupMenu = new PastePopupMenu(getContainerView(),
2479 new PastePopupMenuDelegate() { 2480 new PastePopupMenuDelegate() {
(...skipping 819 matching lines...) Expand 10 before | Expand all | Expand 10 after
3299 3300
3300 private native void nativeExtractSmartClipData(long nativeContentViewCoreImp l, 3301 private native void nativeExtractSmartClipData(long nativeContentViewCoreImp l,
3301 int x, int y, int w, int h); 3302 int x, int y, int w, int h);
3302 private native void nativeSetBackgroundOpaque(long nativeContentViewCoreImpl , boolean opaque); 3303 private native void nativeSetBackgroundOpaque(long nativeContentViewCoreImpl , boolean opaque);
3303 3304
3304 private native void nativeResumeResponseDeferredAtStart( 3305 private native void nativeResumeResponseDeferredAtStart(
3305 long nativeContentViewCoreImpl); 3306 long nativeContentViewCoreImpl);
3306 private native void nativeSetHasPendingNavigationTransitionForTesting( 3307 private native void nativeSetHasPendingNavigationTransitionForTesting(
3307 long nativeContentViewCoreImpl); 3308 long nativeContentViewCoreImpl);
3308 } 3309 }
OLDNEW
« no previous file with comments | « content/browser/renderer_host/render_widget_host_view_android.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698