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 633 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
644 settings.decimalDelimeter, | 644 settings.decimalDelimeter, |
645 settings.unitType, | 645 settings.unitType, |
646 settings.selectionOnly); | 646 settings.selectionOnly); |
647 this.destinationStore_.init( | 647 this.destinationStore_.init( |
648 settings.isInAppKioskMode, | 648 settings.isInAppKioskMode, |
649 settings.systemDefaultDestinationId, | 649 settings.systemDefaultDestinationId, |
650 settings.serializedDefaultDestinationSelectionRulesStr); | 650 settings.serializedDefaultDestinationSelectionRulesStr); |
651 this.appState_.setInitialized(); | 651 this.appState_.setInitialized(); |
652 | 652 |
653 $('document-title').innerText = settings.documentTitle; | 653 $('document-title').innerText = settings.documentTitle; |
654 this.hideSystemDialogLink_ = settings.hidePrintWithSystemDialogLink || | 654 this.hideSystemDialogLink_ = settings.isInAppKioskMode; |
655 settings.isInAppKioskMode; | |
656 if ($('system-dialog-link')) { | 655 if ($('system-dialog-link')) { |
657 setIsVisible($('system-dialog-link'), | 656 setIsVisible($('system-dialog-link'), |
658 this.shouldShowSystemDialogLink_()); | 657 this.shouldShowSystemDialogLink_()); |
659 } | 658 } |
660 }, | 659 }, |
661 | 660 |
662 /** | 661 /** |
663 * Calls when the native layer enables Google Cloud Print integration. | 662 * Calls when the native layer enables Google Cloud Print integration. |
664 * Fetches the user's cloud printers. | 663 * Fetches the user's cloud printers. |
665 * @param {Event} event Contains the base URL of the Google Cloud Print | 664 * @param {Event} event Contains the base URL of the Google Cloud Print |
(...skipping 661 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1327 <include src="search/recent_destination_list.js"> | 1326 <include src="search/recent_destination_list.js"> |
1328 <include src="search/destination_list_item.js"> | 1327 <include src="search/destination_list_item.js"> |
1329 <include src="search/destination_search.js"> | 1328 <include src="search/destination_search.js"> |
1330 <include src="search/fedex_tos.js"> | 1329 <include src="search/fedex_tos.js"> |
1331 <include src="search/provisional_destination_resolver.js"> | 1330 <include src="search/provisional_destination_resolver.js"> |
1332 | 1331 |
1333 window.addEventListener('DOMContentLoaded', function() { | 1332 window.addEventListener('DOMContentLoaded', function() { |
1334 printPreview = new print_preview.PrintPreview(); | 1333 printPreview = new print_preview.PrintPreview(); |
1335 printPreview.initialize(); | 1334 printPreview.initialize(); |
1336 }); | 1335 }); |
OLD | NEW |