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 528 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
539 String imageUrl, List<Bitmap> bitmaps, List<Rect> sizes) { | 539 String imageUrl, List<Bitmap> bitmaps, List<Rect> sizes) { |
540 callback.onFinishDownloadImage(id, httpStatusCode, imageUrl, bitmaps, si
zes); | 540 callback.onFinishDownloadImage(id, httpStatusCode, imageUrl, bitmaps, si
zes); |
541 } | 541 } |
542 | 542 |
543 @Override | 543 @Override |
544 public void dismissTextHandles() { | 544 public void dismissTextHandles() { |
545 nativeDismissTextHandles(mNativeWebContentsAndroid); | 545 nativeDismissTextHandles(mNativeWebContentsAndroid); |
546 } | 546 } |
547 | 547 |
548 @Override | 548 @Override |
| 549 public void showContextMenuAtPoint(int x, int y) { |
| 550 nativeShowContextMenuAtPoint(mNativeWebContentsAndroid, x, y); |
| 551 } |
| 552 |
| 553 @Override |
549 public void setHasPersistentVideo(boolean value) { | 554 public void setHasPersistentVideo(boolean value) { |
550 nativeSetHasPersistentVideo(mNativeWebContentsAndroid, value); | 555 nativeSetHasPersistentVideo(mNativeWebContentsAndroid, value); |
551 } | 556 } |
552 | 557 |
553 @Override | 558 @Override |
554 public boolean hasActiveEffectivelyFullscreenVideo() { | 559 public boolean hasActiveEffectivelyFullscreenVideo() { |
555 return nativeHasActiveEffectivelyFullscreenVideo(mNativeWebContentsAndro
id); | 560 return nativeHasActiveEffectivelyFullscreenVideo(mNativeWebContentsAndro
id); |
556 } | 561 } |
557 | 562 |
558 @CalledByNative | 563 @CalledByNative |
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
636 long nativeWebContentsAndroid, AccessibilitySnapshotCallback callbac
k); | 641 long nativeWebContentsAndroid, AccessibilitySnapshotCallback callbac
k); |
637 private native void nativeSetOverscrollRefreshHandler( | 642 private native void nativeSetOverscrollRefreshHandler( |
638 long nativeWebContentsAndroid, OverscrollRefreshHandler nativeOversc
rollRefreshHandler); | 643 long nativeWebContentsAndroid, OverscrollRefreshHandler nativeOversc
rollRefreshHandler); |
639 private native void nativeGetContentBitmap( | 644 private native void nativeGetContentBitmap( |
640 long nativeWebContentsAndroid, int width, int height, ContentBitmapC
allback callback); | 645 long nativeWebContentsAndroid, int width, int height, ContentBitmapC
allback callback); |
641 private native void nativeReloadLoFiImages(long nativeWebContentsAndroid); | 646 private native void nativeReloadLoFiImages(long nativeWebContentsAndroid); |
642 private native int nativeDownloadImage(long nativeWebContentsAndroid, | 647 private native int nativeDownloadImage(long nativeWebContentsAndroid, |
643 String url, boolean isFavicon, int maxBitmapSize, | 648 String url, boolean isFavicon, int maxBitmapSize, |
644 boolean bypassCache, ImageDownloadCallback callback); | 649 boolean bypassCache, ImageDownloadCallback callback); |
645 private native void nativeDismissTextHandles(long nativeWebContentsAndroid); | 650 private native void nativeDismissTextHandles(long nativeWebContentsAndroid); |
| 651 private native void nativeShowContextMenuAtPoint(long nativeWebContentsAndro
id, int x, int y); |
646 private native void nativeSetHasPersistentVideo(long nativeWebContentsAndroi
d, boolean value); | 652 private native void nativeSetHasPersistentVideo(long nativeWebContentsAndroi
d, boolean value); |
647 private native boolean nativeHasActiveEffectivelyFullscreenVideo(long native
WebContentsAndroid); | 653 private native boolean nativeHasActiveEffectivelyFullscreenVideo(long native
WebContentsAndroid); |
648 private native EventForwarder nativeGetOrCreateEventForwarder(long nativeWeb
ContentsAndroid); | 654 private native EventForwarder nativeGetOrCreateEventForwarder(long nativeWeb
ContentsAndroid); |
649 } | 655 } |
OLD | NEW |