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

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

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.cc
diff --git a/components/printing/common/print_messages.cc b/components/printing/common/print_messages.cc
index 5820bb15838fdaadbfeace770005476cac26b8ec..a9291a2b6cd70dedb8a5b86596253b993ea95c8a 100644
--- a/components/printing/common/print_messages.cc
+++ b/components/printing/common/print_messages.cc
@@ -42,26 +42,27 @@ namespace IPC {
} // namespace IPC
PrintMsg_Print_Params::PrintMsg_Print_Params()
- : page_size(),
- content_size(),
- printable_area(),
- margin_top(0),
- margin_left(0),
- dpi(0),
- scale_factor(1.0f),
- desired_dpi(0),
- document_cookie(0),
- selection_only(false),
- supports_alpha_blend(false),
- preview_ui_id(-1),
- preview_request_id(0),
- is_first_request(false),
- print_scaling_option(blink::WebPrintScalingOptionSourceSize),
- print_to_pdf(false),
- display_header_footer(false),
- title(),
- url(),
- should_print_backgrounds(false) {}
+ : page_size(),
+ content_size(),
+ printable_area(),
+ margin_top(0),
+ margin_left(0),
+ dpi(0),
+ scale_factor(1.0f),
+ desired_dpi(0),
+ rasterize_pdf(false),
+ document_cookie(0),
+ selection_only(false),
+ supports_alpha_blend(false),
+ preview_ui_id(-1),
+ preview_request_id(0),
+ is_first_request(false),
+ print_scaling_option(blink::WebPrintScalingOptionSourceSize),
+ print_to_pdf(false),
+ display_header_footer(false),
+ title(),
+ url(),
+ should_print_backgrounds(false) {}
PrintMsg_Print_Params::PrintMsg_Print_Params(
const PrintMsg_Print_Params& other) = default;
@@ -77,6 +78,7 @@ void PrintMsg_Print_Params::Reset() {
dpi = 0;
scale_factor = 1.0f;
desired_dpi = 0;
+ rasterize_pdf = false;
document_cookie = 0;
selection_only = false;
supports_alpha_blend = false;

Powered by Google App Engine
This is Rietveld 408576698