| 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 // TODO(rltoscano): Move data/* into print_preview.data namespace | 5 // TODO(rltoscano): Move data/* into print_preview.data namespace |
| 6 | 6 |
| 7 var localStrings = new LocalStrings(templateData); | 7 var localStrings = new LocalStrings(templateData); |
| 8 | 8 |
| 9 <include src="component.js"/> | 9 <include src="component.js"/> |
| 10 <include src="print_preview_focus_manager.js"/> | 10 <include src="print_preview_focus_manager.js"/> |
| (...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 174 */ | 174 */ |
| 175 this.advancedSettings_ = new print_preview.AdvancedSettings( | 175 this.advancedSettings_ = new print_preview.AdvancedSettings( |
| 176 this.printTicketStore_); | 176 this.printTicketStore_); |
| 177 this.addChild(this.advancedSettings_); | 177 this.addChild(this.advancedSettings_); |
| 178 | 178 |
| 179 /** | 179 /** |
| 180 * Component representing more/less settings button. | 180 * Component representing more/less settings button. |
| 181 * @type {!print_preview.MoreSettings} | 181 * @type {!print_preview.MoreSettings} |
| 182 * @private | 182 * @private |
| 183 */ | 183 */ |
| 184 this.moreSettings_ = new print_preview.MoreSettings([ | 184 var settingsSections = [ |
| 185 this.destinationSettings_, | 185 this.destinationSettings_, |
| 186 this.pageSettings_, | 186 this.pageSettings_, |
| 187 this.copiesSettings_, | 187 this.copiesSettings_, |
| 188 this.mediaSizeSettings_, | 188 this.mediaSizeSettings_, |
| 189 this.layoutSettings_, | 189 this.layoutSettings_, |
| 190 this.marginSettings_, | 190 this.marginSettings_, |
| 191 this.colorSettings_, | 191 this.colorSettings_, |
| 192 this.otherOptionsSettings_, | 192 this.otherOptionsSettings_, |
| 193 this.advancedOptionsSettings_]); | 193 this.advancedOptionsSettings_]; |
| 194 this.moreSettings_ = new print_preview.MoreSettings( |
| 195 this.destinationStore_, settingsSections); |
| 194 this.addChild(this.moreSettings_); | 196 this.addChild(this.moreSettings_); |
| 195 | 197 |
| 196 /** | 198 /** |
| 197 * Area of the UI that holds the print preview. | 199 * Area of the UI that holds the print preview. |
| 198 * @type {!print_preview.PreviewArea} | 200 * @type {!print_preview.PreviewArea} |
| 199 * @private | 201 * @private |
| 200 */ | 202 */ |
| 201 this.previewArea_ = new print_preview.PreviewArea(this.destinationStore_, | 203 this.previewArea_ = new print_preview.PreviewArea(this.destinationStore_, |
| 202 this.printTicketStore_, | 204 this.printTicketStore_, |
| 203 this.nativeLayer_, | 205 this.nativeLayer_, |
| (...skipping 1080 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1284 <include src="search/cloud_destination_list.js"/> | 1286 <include src="search/cloud_destination_list.js"/> |
| 1285 <include src="search/recent_destination_list.js"/> | 1287 <include src="search/recent_destination_list.js"/> |
| 1286 <include src="search/destination_list_item.js"/> | 1288 <include src="search/destination_list_item.js"/> |
| 1287 <include src="search/destination_search.js"/> | 1289 <include src="search/destination_search.js"/> |
| 1288 <include src="search/fedex_tos.js"/> | 1290 <include src="search/fedex_tos.js"/> |
| 1289 | 1291 |
| 1290 window.addEventListener('DOMContentLoaded', function() { | 1292 window.addEventListener('DOMContentLoaded', function() { |
| 1291 printPreview = new print_preview.PrintPreview(); | 1293 printPreview = new print_preview.PrintPreview(); |
| 1292 printPreview.initialize(); | 1294 printPreview.initialize(); |
| 1293 }); | 1295 }); |
| OLD | NEW |