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

Unified Diff: content/public/android/java/src/org/chromium/content/browser/webcontents/WebContentsImpl.java

Issue 2741993004: Fix Android tab navigation "stretch" regression. (Closed)
Patch Set: Created 3 years, 9 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 side-by-side diff with in-line comments
Download patch
Index: content/public/android/java/src/org/chromium/content/browser/webcontents/WebContentsImpl.java
diff --git a/content/public/android/java/src/org/chromium/content/browser/webcontents/WebContentsImpl.java b/content/public/android/java/src/org/chromium/content/browser/webcontents/WebContentsImpl.java
index e8842b52396d3e71954ead417ef05fb4bc85b807..98136d91c210294302c0eeb07c595263f92b9db6 100644
--- a/content/public/android/java/src/org/chromium/content/browser/webcontents/WebContentsImpl.java
+++ b/content/public/android/java/src/org/chromium/content/browser/webcontents/WebContentsImpl.java
@@ -482,10 +482,8 @@ import java.util.UUID;
}
@Override
- public void getContentBitmapAsync(
- Bitmap.Config config, float scale, Rect srcRect, ContentBitmapCallback callback) {
- nativeGetContentBitmap(mNativeWebContentsAndroid, callback, config, scale,
- srcRect.left, srcRect.top, srcRect.width(), srcRect.height());
+ public void getContentBitmapAsync(int width, int height, ContentBitmapCallback callback) {
+ nativeGetContentBitmap(mNativeWebContentsAndroid, width, height, callback);
}
@CalledByNative
@@ -606,9 +604,8 @@ import java.util.UUID;
long nativeWebContentsAndroid, AccessibilitySnapshotCallback callback);
private native void nativeSetOverscrollRefreshHandler(
long nativeWebContentsAndroid, OverscrollRefreshHandler nativeOverscrollRefreshHandler);
- private native void nativeGetContentBitmap(long nativeWebContentsAndroid,
- ContentBitmapCallback callback, Bitmap.Config config, float scale,
- float x, float y, float width, float height);
+ private native void nativeGetContentBitmap(
+ long nativeWebContentsAndroid, int width, int height, ContentBitmapCallback callback);
private native void nativeReloadLoFiImages(long nativeWebContentsAndroid);
private native int nativeDownloadImage(long nativeWebContentsAndroid,
String url, boolean isFavicon, int maxBitmapSize,

Powered by Google App Engine
This is Rietveld 408576698