| 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 | 10 |
| (...skipping 243 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 254 print_preview.NativeLayer.EventType.FILE_SELECTION_COMPLETE, | 254 print_preview.NativeLayer.EventType.FILE_SELECTION_COMPLETE, |
| 255 this.onFileSelectionComplete_.bind(this)); | 255 this.onFileSelectionComplete_.bind(this)); |
| 256 this.tracker.add( | 256 this.tracker.add( |
| 257 this.nativeLayer_, | 257 this.nativeLayer_, |
| 258 print_preview.NativeLayer.EventType.SETTINGS_INVALID, | 258 print_preview.NativeLayer.EventType.SETTINGS_INVALID, |
| 259 this.onSettingsInvalid_.bind(this)); | 259 this.onSettingsInvalid_.bind(this)); |
| 260 this.tracker.add( | 260 this.tracker.add( |
| 261 this.nativeLayer_, | 261 this.nativeLayer_, |
| 262 print_preview.NativeLayer.EventType.DISABLE_SCALING, | 262 print_preview.NativeLayer.EventType.DISABLE_SCALING, |
| 263 this.onDisableScaling_.bind(this)); | 263 this.onDisableScaling_.bind(this)); |
| 264 this.tracker.add( |
| 265 this.nativeLayer_, |
| 266 print_preview.NativeLayer.EventType.AUTO_CANCEL_FOR_TESTING, |
| 267 this.close_.bind(this)); |
| 264 | 268 |
| 265 this.tracker.add( | 269 this.tracker.add( |
| 266 $('system-dialog-link'), | 270 $('system-dialog-link'), |
| 267 'click', | 271 'click', |
| 268 this.openSystemPrintDialog_.bind(this)); | 272 this.openSystemPrintDialog_.bind(this)); |
| 269 this.tracker.add( | 273 this.tracker.add( |
| 270 $('cloud-print-dialog-link'), | 274 $('cloud-print-dialog-link'), |
| 271 'click', | 275 'click', |
| 272 this.onCloudPrintDialogLinkClick_.bind(this)); | 276 this.onCloudPrintDialogLinkClick_.bind(this)); |
| 273 this.tracker.add( | 277 this.tracker.add( |
| (...skipping 671 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 945 <include src="search/recent_destination_list.js"/> | 949 <include src="search/recent_destination_list.js"/> |
| 946 <include src="search/destination_list_item.js"/> | 950 <include src="search/destination_list_item.js"/> |
| 947 <include src="search/destination_search.js"/> | 951 <include src="search/destination_search.js"/> |
| 948 <include src="search/search_box.js"/> | 952 <include src="search/search_box.js"/> |
| 949 <include src="search/fedex_tos.js"/> | 953 <include src="search/fedex_tos.js"/> |
| 950 | 954 |
| 951 window.addEventListener('DOMContentLoaded', function() { | 955 window.addEventListener('DOMContentLoaded', function() { |
| 952 printPreview = new print_preview.PrintPreview(); | 956 printPreview = new print_preview.PrintPreview(); |
| 953 printPreview.initialize(); | 957 printPreview.initialize(); |
| 954 }); | 958 }); |
| OLD | NEW |