summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorLeon Scroggins <scroggo@google.com>2009-09-23 13:41:01 -0400
committerLeon Scroggins <scroggo@google.com>2009-09-23 14:14:34 -0400
commitea96d1e27f516987f6053dc1dae9e946bc8456ea (patch)
tree0ceb1dfa42fe9133b1c1bcfbcd502d970ae33ff0 /core
parent0acf9a5b2f81413641d3d139ae6fd5f9df621e5f (diff)
downloadframeworks_base-ea96d1e27f516987f6053dc1dae9e946bc8456ea.zip
frameworks_base-ea96d1e27f516987f6053dc1dae9e946bc8456ea.tar.gz
frameworks_base-ea96d1e27f516987f6053dc1dae9e946bc8456ea.tar.bz2
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
Diffstat (limited to 'core')
-rw-r--r--core/java/android/webkit/WebView.java8
1 files changed, 8 insertions, 0 deletions
diff --git a/core/java/android/webkit/WebView.java b/core/java/android/webkit/WebView.java
index 8c63692..607a989 100644
--- a/core/java/android/webkit/WebView.java
+++ b/core/java/android/webkit/WebView.java
@@ -2186,6 +2186,14 @@ public class WebView extends AbsoluteLayout
}
/**
+ * @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
* useful if the application has been paused.