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

Unified Diff: chrome/browser/resources/print_preview/data/print_ticket_store.js

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: chrome/browser/resources/print_preview/data/print_ticket_store.js
diff --git a/chrome/browser/resources/print_preview/data/print_ticket_store.js b/chrome/browser/resources/print_preview/data/print_ticket_store.js
index c3abdf2812f4f8315914de61bca3041b30148650..007419c8d6a4aba1c070433aa0144a5e4f1af99f 100644
--- a/chrome/browser/resources/print_preview/data/print_ticket_store.js
+++ b/chrome/browser/resources/print_preview/data/print_ticket_store.js
@@ -110,6 +110,14 @@ cr.define('print_preview', function() {
new print_preview.ticket_items.PageRange(this.documentInfo_);
/**
+ * Rasterize PDF ticket item.
+ * @type {!print_preview.ticket_items.Rasterize}
+ * @private
+ */
+ this.rasterize_ = new print_preview.ticket_items.Rasterize(
+ this.destinationStore_, this.documentInfo_);
+
+ /**
* Scaling ticket item.
* @type {!print_preview.ticket_items.Scaling}
* @private
@@ -291,6 +299,10 @@ cr.define('print_preview', function() {
return this.pageRange_;
},
+ get rasterize() {
+ return this.rasterize_;
+ },
+
get scaling() {
return this.scaling_;
},

Powered by Google App Engine
This is Rietveld 408576698