| 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 2449 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 Loading... |
| 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 } |
| OLD | NEW |