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

Unified Diff: printing/print_settings.h

Issue 2524143003: Print Preview: Add option to rasterize PDFs and add JPEG compression. (Closed)
Patch Set: Change to match new Pdfium API 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: printing/print_settings.h
diff --git a/printing/print_settings.h b/printing/print_settings.h
index 301bff52522c827dbc5803f6f5b8170a336168d2..605d4e44667fe78af0a0ce4ef302d9dc8fc65b8b 100644
--- a/printing/print_settings.h
+++ b/printing/print_settings.h
@@ -96,6 +96,10 @@ class PRINTING_EXPORT PrintSettings {
void set_scale_factor(double scale_factor) { scale_factor_ = scale_factor; }
double scale_factor() const { return scale_factor_; }
+ void set_rasterize_pdf(bool rasterize_pdf) {
+ rasterize_pdf_ = rasterize_pdf; }
dsinclair 2016/12/14 19:54:38 nit: } on the next line.
rbpotter 2016/12/15 00:50:59 Done.
+ bool rasterize_pdf() const { return rasterize_pdf_; }
+
void set_supports_alpha_blend(bool supports_alpha_blend) {
supports_alpha_blend_ = supports_alpha_blend;
}
@@ -212,6 +216,9 @@ class PRINTING_EXPORT PrintSettings {
// Scale factor
double scale_factor_;
+ // True if PDF should be printed as a raster PDF
+ bool rasterize_pdf_;
+
// Is the orientation landscape or portrait.
bool landscape_;

Powered by Google App Engine
This is Rietveld 408576698