| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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.webcontents; | 5 package org.chromium.content.browser.webcontents; |
| 6 | 6 |
| 7 import android.annotation.SuppressLint; | 7 import android.annotation.SuppressLint; |
| 8 import android.graphics.Bitmap; | 8 import android.graphics.Bitmap; |
| 9 import android.graphics.Rect; | 9 import android.graphics.Rect; |
| 10 import android.os.Bundle; | 10 import android.os.Bundle; |
| (...skipping 500 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 511 String imageUrl, List<Bitmap> bitmaps, List<Rect> sizes) { | 511 String imageUrl, List<Bitmap> bitmaps, List<Rect> sizes) { |
| 512 callback.onFinishDownloadImage(id, httpStatusCode, imageUrl, bitmaps, si
zes); | 512 callback.onFinishDownloadImage(id, httpStatusCode, imageUrl, bitmaps, si
zes); |
| 513 } | 513 } |
| 514 | 514 |
| 515 @Override | 515 @Override |
| 516 public void dismissTextHandles() { | 516 public void dismissTextHandles() { |
| 517 nativeDismissTextHandles(mNativeWebContentsAndroid); | 517 nativeDismissTextHandles(mNativeWebContentsAndroid); |
| 518 } | 518 } |
| 519 | 519 |
| 520 @Override | 520 @Override |
| 521 public void showContextMenuAtPoint(int x, int y) { | |
| 522 nativeShowContextMenuAtPoint(mNativeWebContentsAndroid, x, y); | |
| 523 } | |
| 524 | |
| 525 @Override | |
| 526 public void setHasPersistentVideo(boolean value) { | 521 public void setHasPersistentVideo(boolean value) { |
| 527 nativeSetHasPersistentVideo(mNativeWebContentsAndroid, value); | 522 nativeSetHasPersistentVideo(mNativeWebContentsAndroid, value); |
| 528 } | 523 } |
| 529 | 524 |
| 530 @Override | 525 @Override |
| 531 public boolean hasActiveEffectivelyFullscreenVideo() { | 526 public boolean hasActiveEffectivelyFullscreenVideo() { |
| 532 return nativeHasActiveEffectivelyFullscreenVideo(mNativeWebContentsAndro
id); | 527 return nativeHasActiveEffectivelyFullscreenVideo(mNativeWebContentsAndro
id); |
| 533 } | 528 } |
| 534 | 529 |
| 535 @CalledByNative | 530 @CalledByNative |
| (...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 612 private native void nativeSetOverscrollRefreshHandler( | 607 private native void nativeSetOverscrollRefreshHandler( |
| 613 long nativeWebContentsAndroid, OverscrollRefreshHandler nativeOversc
rollRefreshHandler); | 608 long nativeWebContentsAndroid, OverscrollRefreshHandler nativeOversc
rollRefreshHandler); |
| 614 private native void nativeGetContentBitmap(long nativeWebContentsAndroid, | 609 private native void nativeGetContentBitmap(long nativeWebContentsAndroid, |
| 615 ContentBitmapCallback callback, Bitmap.Config config, float scale, | 610 ContentBitmapCallback callback, Bitmap.Config config, float scale, |
| 616 float x, float y, float width, float height); | 611 float x, float y, float width, float height); |
| 617 private native void nativeReloadLoFiImages(long nativeWebContentsAndroid); | 612 private native void nativeReloadLoFiImages(long nativeWebContentsAndroid); |
| 618 private native int nativeDownloadImage(long nativeWebContentsAndroid, | 613 private native int nativeDownloadImage(long nativeWebContentsAndroid, |
| 619 String url, boolean isFavicon, int maxBitmapSize, | 614 String url, boolean isFavicon, int maxBitmapSize, |
| 620 boolean bypassCache, ImageDownloadCallback callback); | 615 boolean bypassCache, ImageDownloadCallback callback); |
| 621 private native void nativeDismissTextHandles(long nativeWebContentsAndroid); | 616 private native void nativeDismissTextHandles(long nativeWebContentsAndroid); |
| 622 private native void nativeShowContextMenuAtPoint(long nativeWebContentsAndro
id, int x, int y); | |
| 623 private native void nativeSetHasPersistentVideo(long nativeWebContentsAndroi
d, boolean value); | 617 private native void nativeSetHasPersistentVideo(long nativeWebContentsAndroi
d, boolean value); |
| 624 private native boolean nativeHasActiveEffectivelyFullscreenVideo(long native
WebContentsAndroid); | 618 private native boolean nativeHasActiveEffectivelyFullscreenVideo(long native
WebContentsAndroid); |
| 625 } | 619 } |
| OLD | NEW |