| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 // require: cr/ui/print_preview_cloud.js | 5 // require: cr/ui/print_preview_cloud.js |
| 6 | 6 |
| 7 var localStrings = new LocalStrings(); | 7 var localStrings = new LocalStrings(); |
| 8 | 8 |
| 9 // If useCloudPrint is true we attempt to connect to cloud print | 9 // If useCloudPrint is true we attempt to connect to cloud print |
| 10 // and populate the list of printers with cloud print printers. | 10 // and populate the list of printers with cloud print printers. |
| (...skipping 338 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 349 'copies': copiesSettings.numberOfCopies, | 349 'copies': copiesSettings.numberOfCopies, |
| 350 'collate': copiesSettings.isCollated(), | 350 'collate': copiesSettings.isCollated(), |
| 351 'landscape': layoutSettings.isLandscape(), | 351 'landscape': layoutSettings.isLandscape(), |
| 352 'color': colorSettings.colorMode, | 352 'color': colorSettings.colorMode, |
| 353 'printToPDF': printToPDF, | 353 'printToPDF': printToPDF, |
| 354 'printWithCloudPrint': printWithCloudPrint, | 354 'printWithCloudPrint': printWithCloudPrint, |
| 355 'isFirstRequest' : false, | 355 'isFirstRequest' : false, |
| 356 'headerFooterEnabled': headerFooterSettings.hasHeaderFooter(), | 356 'headerFooterEnabled': headerFooterSettings.hasHeaderFooter(), |
| 357 'marginsType': marginSettings.selectedMarginsValue, | 357 'marginsType': marginSettings.selectedMarginsValue, |
| 358 'requestID': -1, | 358 'requestID': -1, |
| 359 'generateDraftData': generateDraftData}; | 359 'generateDraftData': generateDraftData, |
| 360 'previewModifiable': previewModifiable}; |
| 360 | 361 |
| 361 if (marginSettings.isCustomMarginsSelected()) | 362 if (marginSettings.isCustomMarginsSelected()) |
| 362 settings['marginsCustom'] = marginSettings.customMargins; | 363 settings['marginsCustom'] = marginSettings.customMargins; |
| 363 | 364 |
| 364 var printerList = $('printer-list'); | 365 var printerList = $('printer-list'); |
| 365 var selectedPrinter = printerList.selectedIndex; | 366 var selectedPrinter = printerList.selectedIndex; |
| 366 if (cloudprint.isCloudPrint(printerList.options[selectedPrinter])) { | 367 if (cloudprint.isCloudPrint(printerList.options[selectedPrinter])) { |
| 367 settings['cloudPrintID'] = | 368 settings['cloudPrintID'] = |
| 368 printerList.options[selectedPrinter].value; | 369 printerList.options[selectedPrinter].value; |
| 369 } | 370 } |
| (...skipping 737 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1107 <include src="copies_settings.js"/> | 1108 <include src="copies_settings.js"/> |
| 1108 <include src="header_footer_settings.js"/> | 1109 <include src="header_footer_settings.js"/> |
| 1109 <include src="layout_settings.js"/> | 1110 <include src="layout_settings.js"/> |
| 1110 <include src="color_settings.js"/> | 1111 <include src="color_settings.js"/> |
| 1111 <include src="margin_settings.js"/> | 1112 <include src="margin_settings.js"/> |
| 1112 <include src="margin_textbox.js"/> | 1113 <include src="margin_textbox.js"/> |
| 1113 <include src="margin_line.js"/> | 1114 <include src="margin_line.js"/> |
| 1114 <include src="margin_utils.js"/> | 1115 <include src="margin_utils.js"/> |
| 1115 <include src="margins_ui.js"/> | 1116 <include src="margins_ui.js"/> |
| 1116 <include src="preview_area.js"/> | 1117 <include src="preview_area.js"/> |
| OLD | NEW |