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

Unified Diff: printing/print_settings.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: printing/print_settings.h
diff --git a/printing/print_settings.h b/printing/print_settings.h
index 301bff52522c827dbc5803f6f5b8170a336168d2..67ad091c180dedfde630cc2cb14ab5aa1ff35c43 100644
--- a/printing/print_settings.h
+++ b/printing/print_settings.h
@@ -96,6 +96,9 @@ 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; }
+ bool rasterize_pdf() const { return rasterize_pdf_; }
+
void set_supports_alpha_blend(bool supports_alpha_blend) {
supports_alpha_blend_ = supports_alpha_blend;
}
@@ -212,6 +215,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