From 030d8b0d1b6b0879d0ab4e9a218a784f4c110f75 Mon Sep 17 00:00:00 2001 From: Selim Gurun Date: Thu, 29 Aug 2013 12:01:27 -0700 Subject: DO NOT MERGE Printing API changes for supporting better page layout Bug: 10507857 Change-Id: I3120ebfd11716259b9a83312b95a6a3f98a23d89 --- core/java/android/webkit/WebViewProvider.java | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'core/java/android/webkit/WebViewProvider.java') diff --git a/core/java/android/webkit/WebViewProvider.java b/core/java/android/webkit/WebViewProvider.java index 8fe6edf..d625d8a 100644 --- a/core/java/android/webkit/WebViewProvider.java +++ b/core/java/android/webkit/WebViewProvider.java @@ -27,6 +27,8 @@ import android.net.http.SslCertificate; import android.os.Bundle; import android.os.CancellationSignal; import android.os.Message; +import android.os.ParcelFileDescriptor; +import android.print.PrintAttributes; import android.view.KeyEvent; import android.view.MotionEvent; import android.view.View; @@ -41,7 +43,6 @@ import android.webkit.WebView.PictureListener; import java.io.BufferedWriter; import java.io.File; -import java.io.OutputStream; import java.util.Map; /** @@ -148,8 +149,9 @@ public interface WebViewProvider { public Picture capturePicture(); - public void exportToPdf(OutputStream out, int width, int height, - ValueCallback resultCallback, CancellationSignal cancellationSignal); + public void exportToPdf(ParcelFileDescriptor fd, PrintAttributes attributes, + ValueCallback resultCallback, CancellationSignal cancellationSignal) + throws java.io.IOException; public float getScale(); -- cgit v1.1