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

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

Issue 1125343004: Add a "Simplify Page" option to the print preview dialog (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixup "Add "Print friendly" option to print preview dialog" Created 5 years, 5 months 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 6a629858d0d8e6d6c7bb64f23e8b6687fb5afbdb..badc273fe32ddf4d42a1562a6b9aced120039ef0 100644
--- a/chrome/browser/resources/print_preview/data/print_ticket_store.js
+++ b/chrome/browser/resources/print_preview/data/print_ticket_store.js
@@ -185,6 +185,15 @@ cr.define('print_preview', function() {
new print_preview.ticket_items.SelectionOnly(this.documentInfo_);
/**
+ * Print friendly ticket item.
+ * @type {!print_preview.ticket_items.DistillPage}
+ * @private
+ */
+ this.distillPage_ = new print_preview.ticket_items.DistillPage(
+ this.documentInfo_,
+ this.selectionOnly_);
+
+ /**
* Vendor ticket items.
* @type {!print_preview.ticket_items.VendorItems}
* @private
@@ -267,6 +276,10 @@ cr.define('print_preview', function() {
return this.headerFooter_;
},
+ get distillPage() {
+ return this.distillPage_;
+ },
+
get mediaSize() {
return this.mediaSize_;
},

Powered by Google App Engine
This is Rietveld 408576698