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

Unified Diff: android_webview/java/src/org/chromium/android_webview/AwContents.java

Issue 23478022: [android_webview] Fixes for wrap_content layouts. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix findbugs + rebase Created 7 years, 3 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: android_webview/java/src/org/chromium/android_webview/AwContents.java
diff --git a/android_webview/java/src/org/chromium/android_webview/AwContents.java b/android_webview/java/src/org/chromium/android_webview/AwContents.java
index cb91c77ae25656cf4af7011f34777fc99a0883c5..a518ccc634a988bac55a1a890b742475ea50533c 100644
--- a/android_webview/java/src/org/chromium/android_webview/AwContents.java
+++ b/android_webview/java/src/org/chromium/android_webview/AwContents.java
@@ -344,6 +344,11 @@ public class AwContents {
public void setMeasuredDimension(int measuredWidth, int measuredHeight) {
mInternalAccessAdapter.setMeasuredDimension(measuredWidth, measuredHeight);
}
+
+ @Override
+ public void setFixedLayoutSize(int widthDip, int heightDip) {
+ nativeSetFixedLayoutSize(mNativeAwContents, widthDip, heightDip);
+ }
}
//--------------------------------------------------------------------------------------------
@@ -1510,6 +1515,7 @@ public class AwContents {
mScrollOffsetManager.setContainerViewSize(w, h);
mContentViewCore.onPhysicalBackingSizeChanged(w, h);
mContentViewCore.onSizeChanged(w, h, ow, oh);
+ mLayoutSizer.onSizeChanged(w, h, ow, oh);
nativeOnSizeChanged(mNativeAwContents, w, h, ow, oh);
}
@@ -1903,6 +1909,7 @@ public class AwContents {
private native void nativeSetDipScale(int nativeAwContents, float dipScale);
private native void nativeSetDisplayedPageScaleFactor(int nativeAwContents,
float pageScaleFactor);
+ private native void nativeSetFixedLayoutSize(int nativeAwContents, int widthDip, int heightDip);
// Returns null if save state fails.
private native byte[] nativeGetOpaqueState(int nativeAwContents);

Powered by Google App Engine
This is Rietveld 408576698