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

Unified Diff: chrome/browser/resources/print_preview/print_preview.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: Rebase and remove custom URL source Created 5 years, 6 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/print_preview.js
diff --git a/chrome/browser/resources/print_preview/print_preview.js b/chrome/browser/resources/print_preview/print_preview.js
index 96336e85c6eddb2790f0b579cd45c2df9f335193..cb11146e1f5ca87940936a4a6e66c4a7d8c353ab 100644
--- a/chrome/browser/resources/print_preview/print_preview.js
+++ b/chrome/browser/resources/print_preview/print_preview.js
@@ -169,7 +169,8 @@ cr.define('print_preview', function() {
this.printTicketStore_.fitToPage,
this.printTicketStore_.cssBackground,
this.printTicketStore_.selectionOnly,
- this.printTicketStore_.headerFooter);
+ this.printTicketStore_.headerFooter,
+ this.printTicketStore_.printFriendly);
this.addChild(this.otherOptionsSettings_);
/**
@@ -640,7 +641,9 @@ cr.define('print_preview', function() {
settings.thousandsDelimeter,
settings.decimalDelimeter,
settings.unitType,
- settings.selectionOnly);
+ settings.selectionOnly,
+ settings.printFriendlyEnabled);
+
this.destinationStore_.init(settings.isInAppKioskMode);
this.appState_.setInitialized();
@@ -1270,6 +1273,7 @@ cr.define('print_preview', function() {
<include src="data/ticket_items/dpi.js">
<include src="data/ticket_items/duplex.js">
<include src="data/ticket_items/header_footer.js">
+<include src="data/ticket_items/print_friendly.js">
<include src="data/ticket_items/media_size.js">
<include src="data/ticket_items/landscape.js">
<include src="data/ticket_items/margins_type.js">

Powered by Google App Engine
This is Rietveld 408576698