| 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 492 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 503 private void onDownloadImageFinished(ImageDownloadCallback callback, int id,
int httpStatusCode, | 503 private void onDownloadImageFinished(ImageDownloadCallback callback, int id,
int httpStatusCode, |
| 504 String imageUrl, List<Bitmap> bitmaps, List<Rect> sizes) { | 504 String imageUrl, List<Bitmap> bitmaps, List<Rect> sizes) { |
| 505 callback.onFinishDownloadImage(id, httpStatusCode, imageUrl, bitmaps, si
zes); | 505 callback.onFinishDownloadImage(id, httpStatusCode, imageUrl, bitmaps, si
zes); |
| 506 } | 506 } |
| 507 | 507 |
| 508 @Override | 508 @Override |
| 509 public void dismissTextHandles() { | 509 public void dismissTextHandles() { |
| 510 nativeDismissTextHandles(mNativeWebContentsAndroid); | 510 nativeDismissTextHandles(mNativeWebContentsAndroid); |
| 511 } | 511 } |
| 512 | 512 |
| 513 @Override |
| 514 public void setHasPersistentVideo(boolean value) { |
| 515 nativeSetHasPersistentVideo(mNativeWebContentsAndroid, value); |
| 516 } |
| 517 |
| 513 @CalledByNative | 518 @CalledByNative |
| 514 private final void setMediaSession(MediaSessionImpl mediaSession) { | 519 private final void setMediaSession(MediaSessionImpl mediaSession) { |
| 515 mMediaSession = mediaSession; | 520 mMediaSession = mediaSession; |
| 516 } | 521 } |
| 517 | 522 |
| 518 @CalledByNative | 523 @CalledByNative |
| 519 private static List<Bitmap> createBitmapList() { | 524 private static List<Bitmap> createBitmapList() { |
| 520 return new ArrayList<Bitmap>(); | 525 return new ArrayList<Bitmap>(); |
| 521 } | 526 } |
| 522 | 527 |
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 592 private native void nativeSetOverscrollRefreshHandler( | 597 private native void nativeSetOverscrollRefreshHandler( |
| 593 long nativeWebContentsAndroid, OverscrollRefreshHandler nativeOversc
rollRefreshHandler); | 598 long nativeWebContentsAndroid, OverscrollRefreshHandler nativeOversc
rollRefreshHandler); |
| 594 private native void nativeGetContentBitmap(long nativeWebContentsAndroid, | 599 private native void nativeGetContentBitmap(long nativeWebContentsAndroid, |
| 595 ContentBitmapCallback callback, Bitmap.Config config, float scale, | 600 ContentBitmapCallback callback, Bitmap.Config config, float scale, |
| 596 float x, float y, float width, float height); | 601 float x, float y, float width, float height); |
| 597 private native void nativeReloadLoFiImages(long nativeWebContentsAndroid); | 602 private native void nativeReloadLoFiImages(long nativeWebContentsAndroid); |
| 598 private native int nativeDownloadImage(long nativeWebContentsAndroid, | 603 private native int nativeDownloadImage(long nativeWebContentsAndroid, |
| 599 String url, boolean isFavicon, int maxBitmapSize, | 604 String url, boolean isFavicon, int maxBitmapSize, |
| 600 boolean bypassCache, ImageDownloadCallback callback); | 605 boolean bypassCache, ImageDownloadCallback callback); |
| 601 private native void nativeDismissTextHandles(long nativeWebContentsAndroid); | 606 private native void nativeDismissTextHandles(long nativeWebContentsAndroid); |
| 607 private native void nativeSetHasPersistentVideo(long nativeWebContentsAndroi
d, boolean value); |
| 602 } | 608 } |
| OLD | NEW |