From efe2c72a6d2af1431d2b239d408d2901dc1aaebd Mon Sep 17 00:00:00 2001 From: Mike Reed Date: Wed, 14 Oct 2009 09:42:02 -0400 Subject: [PATCH] add hidden method to draw entire page into a canvas, with no view-chrome. For testing. http://b/issue?id=2176120 --- core/java/android/webkit/WebView.java | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/core/java/android/webkit/WebView.java b/core/java/android/webkit/WebView.java index 3dd3b37a3912d..66311636098ec 100644 --- a/core/java/android/webkit/WebView.java +++ b/core/java/android/webkit/WebView.java @@ -5608,6 +5608,17 @@ public class WebView extends AbsoluteLayout mWebViewCore.sendMessage(EventHub.DUMP_NAVTREE); } + /** + * Draw the HTML page into the specified canvas. This call ignores any + * view-specific zoom, scroll offset, or other changes. It does not draw + * any view-specific chrome, such as progress or URL bars. + * + * @hide only needs to be accessible to Browser and testing + */ + public void drawPage(Canvas canvas) { + mWebViewCore.drawContentPicture(canvas, 0, false, false); + } + /** * Update our cache with updatedText. * @param updatedText The new text to put in our cache.