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

Unified Diff: components/printing/common/print_messages.h

Issue 2524143003: Print Preview: Add option to rasterize PDFs and add JPEG compression. (Closed)
Patch Set: Created 4 years, 1 month 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: components/printing/common/print_messages.h
diff --git a/components/printing/common/print_messages.h b/components/printing/common/print_messages.h
index 3d1e71ae1a04abdcb9680001c86822653254a886..74798d4d9bd40b2bc069130d699ee1ce46e1b021 100644
--- a/components/printing/common/print_messages.h
+++ b/components/printing/common/print_messages.h
@@ -47,6 +47,7 @@ struct PrintMsg_Print_Params {
double dpi;
double scale_factor;
int desired_dpi;
+ bool rasterize_pdf;
int document_cookie;
bool selection_only;
bool supports_alpha_blend;
@@ -128,6 +129,9 @@ IPC_STRUCT_TRAITS_BEGIN(PrintMsg_Print_Params)
// Desired apparent dpi on paper.
IPC_STRUCT_TRAITS_MEMBER(desired_dpi)
+ // Whether to rasterize a PDF for printing
+ IPC_STRUCT_TRAITS_MEMBER(rasterize_pdf)
+
// Cookie for the document to ensure correctness.
IPC_STRUCT_TRAITS_MEMBER(document_cookie)

Powered by Google App Engine
This is Rietveld 408576698