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

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

Issue 2524143003: Print Preview: Add option to rasterize PDFs and add JPEG compression. (Closed)
Patch Set: Clean up JS Created 4 years 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 2c4fc9493ed6437cbd18bf63d82abb475fdd33bc..3679499793de374f62b6feba53e9e24d33933f71 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
Lei Zhang 2017/02/25 01:01:16 Move this down below line 144 somewhere?
+ 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