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

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

Issue 12567020: [android] Resize the android_webview if it's 0x0 initially. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 8 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/AwWebContentsDelegate.java
diff --git a/android_webview/java/src/org/chromium/android_webview/AwWebContentsDelegate.java b/android_webview/java/src/org/chromium/android_webview/AwWebContentsDelegate.java
index 59c6422f20a88d948156b4d2cd399af32c2a3e39..23f48ebfee447459acda72d290738c76dc3ca034 100644
--- a/android_webview/java/src/org/chromium/android_webview/AwWebContentsDelegate.java
+++ b/android_webview/java/src/org/chromium/android_webview/AwWebContentsDelegate.java
@@ -24,4 +24,13 @@ public abstract class AwWebContentsDelegate extends WebContentsDelegateAndroid {
@CalledByNative
public abstract void activateContents();
+
+ /**
+ * Report a change in the preferred size.
+ * @param width preferred width in CSS pixels.
+ * @param height scroll height of the document element in CSS pixels.
+ */
+ @CalledByNative
+ public void updatePreferredSize(int widthCss, int heightCss) {
+ }
}

Powered by Google App Engine
This is Rietveld 408576698