From ea96d1e27f516987f6053dc1dae9e946bc8456ea Mon Sep 17 00:00:00 2001 From: Leon Scroggins Date: Wed, 23 Sep 2009 13:41:01 -0400 Subject: [PATCH] Provide a getter to access the width of the HTML document. Necessary to scale thumbnail pictures to show the full page width. Change-Id: I631e880b09fe66403ea71bf5e019899a180e6a53 --- core/java/android/webkit/WebView.java | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/core/java/android/webkit/WebView.java b/core/java/android/webkit/WebView.java index 8c63692c124ad..607a989a8f7fa 100644 --- a/core/java/android/webkit/WebView.java +++ b/core/java/android/webkit/WebView.java @@ -2185,6 +2185,14 @@ public class WebView extends AbsoluteLayout return mContentHeight; } + /** + * @return the width of the HTML content. + * @hide + */ + public int getContentWidth() { + return mContentWidth; + } + /** * Pause all layout, parsing, and javascript timers for all webviews. This * is a global requests, not restricted to just this webview. This can be