Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(27)

Side by Side Diff: chrome/browser/resources/print_preview/print_preview.js

Issue 1809213002: Remove hidePrintWithSystemDialog disableability (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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 });
OLDNEW
« no previous file with comments | « chrome/browser/resources/print_preview/native_layer.js ('k') | chrome/browser/ui/webui/print_preview/print_preview_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698