| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 cr.define('print_preview', function() { | 5 cr.define('print_preview', function() { |
| 6 'use strict'; | 6 'use strict'; |
| 7 | 7 |
| 8 /** | 8 /** |
| 9 * Represents a single option in the Other Options settings section. | 9 * Represents a single option in the Other Options settings section. |
| 10 * @param {!print_preview.ticket_items.TicketItem} ticketItem The ticket item | 10 * @param {!print_preview.ticket_items.TicketItem} ticketItem The ticket item |
| (...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 133 * @extends {print_preview.SettingsSection} | 133 * @extends {print_preview.SettingsSection} |
| 134 */ | 134 */ |
| 135 function OtherOptionsSettings( | 135 function OtherOptionsSettings( |
| 136 duplex, fitToPage, cssBackground, selectionOnly, headerFooter, | 136 duplex, fitToPage, cssBackground, selectionOnly, headerFooter, |
| 137 rasterize) { | 137 rasterize) { |
| 138 print_preview.SettingsSection.call(this); | 138 print_preview.SettingsSection.call(this); |
| 139 /** | 139 /** |
| 140 * @private {boolean} rasterizeEnabled Whether the print as image feature is | 140 * @private {boolean} rasterizeEnabled Whether the print as image feature is |
| 141 * enabled. | 141 * enabled. |
| 142 */ | 142 */ |
| 143 this.rasterizeEnabled_ = loadTimeData.getBoolean('printPdfAsImageEnabled'); | 143 this.rasterizeEnabled_ = (!cr.isWindows && !cr.isMac) && |
| 144 loadTimeData.getBoolean('printPdfAsImageEnabled'); |
| 144 | 145 |
| 145 /** | 146 /** |
| 146 * @private {!Array<!CheckboxTicketItemElement>} checkbox ticket item | 147 * @private {!Array<!CheckboxTicketItemElement>} checkbox ticket item |
| 147 * elements representing the different options in the section. | 148 * elements representing the different options in the section. |
| 148 * Selection only must always be the last element in the array. | 149 * Selection only must always be the last element in the array. |
| 149 */ | 150 */ |
| 150 this.elements_ = [ | 151 this.elements_ = [ |
| 151 new CheckboxTicketItemElement(headerFooter, true, | 152 new CheckboxTicketItemElement(headerFooter, true, |
| 152 'header-footer-container'), | 153 'header-footer-container'), |
| 153 new CheckboxTicketItemElement(fitToPage, false, | 154 new CheckboxTicketItemElement(fitToPage, false, |
| (...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 237 }, this); | 238 }, this); |
| 238 }, | 239 }, |
| 239 | 240 |
| 240 }; | 241 }; |
| 241 | 242 |
| 242 // Export | 243 // Export |
| 243 return { | 244 return { |
| 244 OtherOptionsSettings: OtherOptionsSettings | 245 OtherOptionsSettings: OtherOptionsSettings |
| 245 }; | 246 }; |
| 246 }); | 247 }); |
| OLD | NEW |