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

Unified Diff: chrome/browser/resources/print_preview/previewarea/preview_area.js

Issue 2524143003: Print Preview: Add option to rasterize PDFs and add JPEG compression. (Closed)
Patch Set: Created 4 years, 1 month 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/previewarea/preview_area.js
diff --git a/chrome/browser/resources/print_preview/previewarea/preview_area.js b/chrome/browser/resources/print_preview/previewarea/preview_area.js
index b96dfaeac06dd975ff136c9a41f2eed180e40442..b1272b114c3b753d9202f976099ed099e7385c2a 100644
--- a/chrome/browser/resources/print_preview/previewarea/preview_area.js
+++ b/chrome/browser/resources/print_preview/previewarea/preview_area.js
@@ -373,6 +373,11 @@ cr.define('print_preview', function() {
this.printTicketStore_.scaling,
print_preview.ticket_items.TicketItem.EventType.CHANGE,
this.onTicketChange_.bind(this));
+ this.tracker.add(
+ this.printTicketStore_.rasterize,
+ print_preview.ticket_items.TicketItem.EventType.CHANGE,
+ this.onTicketChange_.bind(this));
+
if (this.checkPluginCompatibility_()) {
this.previewGenerator_ = new print_preview.PreviewGenerator(
@@ -515,7 +520,6 @@ cr.define('print_preview', function() {
console.warn('Pdf preview plugin already created');
return;
}
-
this.plugin_ = /** @type {print_preview.PDFPlugin} */(
PDFCreateOutOfProcessPlugin(srcUrl));
this.plugin_.setKeyEventCallback(this.keyEventCallback_);

Powered by Google App Engine
This is Rietveld 408576698