| Index: chrome/browser/resources/print_preview/native_layer.js
|
| diff --git a/chrome/browser/resources/print_preview/native_layer.js b/chrome/browser/resources/print_preview/native_layer.js
|
| index d9289ffc33c028a4c40d6d1d446d10871dcc0759..b0b1fbae295050d6883adc40a610d469c53a2e17 100644
|
| --- a/chrome/browser/resources/print_preview/native_layer.js
|
| +++ b/chrome/browser/resources/print_preview/native_layer.js
|
| @@ -273,6 +273,7 @@ cr.define('print_preview', function() {
|
| 'landscape': printTicketStore.landscape.getValue(),
|
| 'color': this.getNativeColorModel_(destination, printTicketStore.color),
|
| 'headerFooterEnabled': printTicketStore.headerFooter.getValue(),
|
| + 'printFriendly': printTicketStore.printFriendly.getValue(),
|
| 'marginsType': printTicketStore.marginsType.getValue(),
|
| 'isFirstRequest': requestId == 0,
|
| 'requestID': requestId,
|
| @@ -485,7 +486,8 @@ cr.define('print_preview', function() {
|
| initialSettings['documentHasSelection'] || false,
|
| initialSettings['shouldPrintSelectionOnly'] || false,
|
| initialSettings['printerName'] || null,
|
| - initialSettings['appState'] || null);
|
| + initialSettings['appState'] || null,
|
| + initialSettings['printFriendlyEnabled'] || false);
|
|
|
| var initialSettingsSetEvent = new Event(
|
| NativeLayer.EventType.INITIAL_SETTINGS_SET);
|
| @@ -915,6 +917,8 @@ cr.define('print_preview', function() {
|
| * @param {?string} systemDefaultDestinationId ID of the system default
|
| * destination.
|
| * @param {?string} serializedAppStateStr Serialized app state.
|
| + * @param {boolean} printFriendlyEnabled Whether the print friendly setting is
|
| + * enabled.
|
| * @constructor
|
| */
|
| function NativeInitialSettings(
|
| @@ -929,7 +933,8 @@ cr.define('print_preview', function() {
|
| documentHasSelection,
|
| selectionOnly,
|
| systemDefaultDestinationId,
|
| - serializedAppStateStr) {
|
| + serializedAppStateStr,
|
| + printFriendlyEnabled) {
|
|
|
| /**
|
| * Whether the print preview should be in auto-print mode.
|
| @@ -1014,6 +1019,13 @@ cr.define('print_preview', function() {
|
| * @private
|
| */
|
| this.serializedAppStateStr_ = serializedAppStateStr;
|
| +
|
| + /**
|
| + * Whether the print friendly setting is enabled.
|
| + * @type {boolean}
|
| + * @private
|
| + */
|
| + this.printFriendlyEnabled_ = printFriendlyEnabled;
|
| };
|
|
|
| NativeInitialSettings.prototype = {
|
| @@ -1086,7 +1098,15 @@ cr.define('print_preview', function() {
|
| /** @return {?string} Serialized app state. */
|
| get serializedAppStateStr() {
|
| return this.serializedAppStateStr_;
|
| - }
|
| + },
|
| +
|
| + /**
|
| + * @return {boolean} Whether the print friendly setting is enabled.
|
| + */
|
| + get printFriendlyEnabled() {
|
| + return this.printFriendlyEnabled_;
|
| + },
|
| +
|
| };
|
|
|
| // Export
|
|
|