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

Unified Diff: android_webview/native/aw_pdf_exporter.h

Issue 2770713003: Enable page selection for WebView printing (Closed)
Patch Set: review fixes Created 3 years, 9 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/native/aw_pdf_exporter.h
diff --git a/android_webview/native/aw_pdf_exporter.h b/android_webview/native/aw_pdf_exporter.h
index aa08b5f67d6aa7ac62cd3bf88134a97fe15b74fd..6145e86e4786de6125844dd2544e3e1100917fbc 100644
--- a/android_webview/native/aw_pdf_exporter.h
+++ b/android_webview/native/aw_pdf_exporter.h
@@ -11,6 +11,8 @@
#include "base/android/scoped_java_ref.h"
#include "base/macros.h"
+#include "printing/page_range.h"
+
namespace content {
class WebContents;
};
@@ -32,11 +34,13 @@ class AwPdfExporter {
void ExportToPdf(JNIEnv* env,
const base::android::JavaParamRef<jobject>& obj,
int fd,
+ jintArray pages,
const base::android::JavaParamRef<jobject>& cancel_signal);
private:
void InitPdfSettings(JNIEnv* env,
const base::android::JavaRef<jobject>& obj,
+ const printing::PageRanges& page_ranges,
printing::PrintSettings& settings);
void DidExportPdf(int fd, bool success);

Powered by Google App Engine
This is Rietveld 408576698