| 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 948 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 959 } | 959 } |
| 960 | 960 |
| 961 /** | 961 /** |
| 962 * Takes a snapshot of the print settings. | 962 * Takes a snapshot of the print settings. |
| 963 */ | 963 */ |
| 964 PrintSettings.prototype.save = function() { | 964 PrintSettings.prototype.save = function() { |
| 965 this.deviceName = getSelectedPrinterName(); | 965 this.deviceName = getSelectedPrinterName(); |
| 966 this.isLandscape = layoutSettings.isLandscape(); | 966 this.isLandscape = layoutSettings.isLandscape(); |
| 967 } | 967 } |
| 968 | 968 |
| 969 /// Pull in all other scripts in a single shot. |
| 970 <include src="print_preview_animations.js"/> |
| 971 <include src="print_preview_cloud.js"/> |
| 972 <include src="print_preview_utils.js"/> |
| 973 <include src="print_header.js"/> |
| 974 <include src="page_settings.js"/> |
| 975 <include src="copies_settings.js"/> |
| 976 <include src="layout_settings.js"/> |
| 977 <include src="color_settings.js"/> |
| OLD | NEW |