| 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 <include src="component.js"> | 7 <include src="component.js"> |
| 8 <include src="print_preview_focus_manager.js"> | 8 <include src="print_preview_focus_manager.js"> |
| 9 | 9 |
| 10 cr.define('print_preview', function() { | 10 cr.define('print_preview', function() { |
| (...skipping 394 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 405 this.tracker.add( | 405 this.tracker.add( |
| 406 this.printHeader_, | 406 this.printHeader_, |
| 407 print_preview.PrintHeader.EventType.PRINT_BUTTON_CLICK, | 407 print_preview.PrintHeader.EventType.PRINT_BUTTON_CLICK, |
| 408 this.onPrintButtonClick_.bind(this)); | 408 this.onPrintButtonClick_.bind(this)); |
| 409 this.tracker.add( | 409 this.tracker.add( |
| 410 this.printHeader_, | 410 this.printHeader_, |
| 411 print_preview.PrintHeader.EventType.CANCEL_BUTTON_CLICK, | 411 print_preview.PrintHeader.EventType.CANCEL_BUTTON_CLICK, |
| 412 this.onCancelButtonClick_.bind(this)); | 412 this.onCancelButtonClick_.bind(this)); |
| 413 | 413 |
| 414 this.tracker.add(window, 'keydown', this.onKeyDown_.bind(this)); | 414 this.tracker.add(window, 'keydown', this.onKeyDown_.bind(this)); |
| 415 this.previewArea_.setPluginKeyEventCallback(this.onKeyDown_.bind(this)); |
| 415 | 416 |
| 416 this.tracker.add( | 417 this.tracker.add( |
| 417 this.destinationSettings_, | 418 this.destinationSettings_, |
| 418 print_preview.DestinationSettings.EventType.CHANGE_BUTTON_ACTIVATE, | 419 print_preview.DestinationSettings.EventType.CHANGE_BUTTON_ACTIVATE, |
| 419 this.onDestinationChangeButtonActivate_.bind(this)); | 420 this.onDestinationChangeButtonActivate_.bind(this)); |
| 420 | 421 |
| 421 this.tracker.add( | 422 this.tracker.add( |
| 422 this.destinationSearch_, | 423 this.destinationSearch_, |
| 423 print_preview.DestinationSearch.EventType.MANAGE_CLOUD_DESTINATIONS, | 424 print_preview.DestinationSearch.EventType.MANAGE_CLOUD_DESTINATIONS, |
| 424 this.onManageCloudDestinationsActivated_.bind(this)); | 425 this.onManageCloudDestinationsActivated_.bind(this)); |
| (...skipping 882 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1307 <include src="search/cloud_destination_list.js"> | 1308 <include src="search/cloud_destination_list.js"> |
| 1308 <include src="search/recent_destination_list.js"> | 1309 <include src="search/recent_destination_list.js"> |
| 1309 <include src="search/destination_list_item.js"> | 1310 <include src="search/destination_list_item.js"> |
| 1310 <include src="search/destination_search.js"> | 1311 <include src="search/destination_search.js"> |
| 1311 <include src="search/fedex_tos.js"> | 1312 <include src="search/fedex_tos.js"> |
| 1312 | 1313 |
| 1313 window.addEventListener('DOMContentLoaded', function() { | 1314 window.addEventListener('DOMContentLoaded', function() { |
| 1314 printPreview = new print_preview.PrintPreview(); | 1315 printPreview = new print_preview.PrintPreview(); |
| 1315 printPreview.initialize(); | 1316 printPreview.initialize(); |
| 1316 }); | 1317 }); |
| OLD | NEW |