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

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

Issue 10827463: Fixes cloud-printer being treated as local-printer problem. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Fixes JSDoc comment. Created 8 years, 4 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
« no previous file with comments | « chrome/browser/resources/print_preview/native_layer.js ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 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 426 matching lines...) Expand 10 before | Expand all | Expand 10 after
437 */ 437 */
438 onInitialSettingsSet_: function(event) { 438 onInitialSettingsSet_: function(event) {
439 assert(this.uiState_ == PrintPreview.UiState_.INITIALIZING, 439 assert(this.uiState_ == PrintPreview.UiState_.INITIALIZING,
440 'Updating initial settings when not in initializing state: ' + 440 'Updating initial settings when not in initializing state: ' +
441 this.uiState_); 441 this.uiState_);
442 this.uiState_ = PrintPreview.UiState_.READY; 442 this.uiState_ = PrintPreview.UiState_.READY;
443 443
444 this.isInKioskAutoPrintMode_ = 444 this.isInKioskAutoPrintMode_ =
445 event.initialSettings.isInKioskAutoPrintMode; 445 event.initialSettings.isInKioskAutoPrintMode;
446 this.destinationStore_.setInitialDestinationId( 446 this.destinationStore_.setInitialDestinationId(
447 event.initialSettings.initialDestinationId); 447 event.initialSettings.initialDestinationId,
448 event.initialSettings.isLocalDestination);
448 document.title = event.initialSettings.documentTitle; 449 document.title = event.initialSettings.documentTitle;
449 this.printTicketStore_.initialize( 450 this.printTicketStore_.initialize(
450 event.initialSettings.isDocumentModifiable, 451 event.initialSettings.isDocumentModifiable,
451 event.initialSettings.documentTitle, 452 event.initialSettings.documentTitle,
452 event.initialSettings.isDuplexEnabled, 453 event.initialSettings.isDuplexEnabled,
453 event.initialSettings.isHeaderFooterEnabled, 454 event.initialSettings.isHeaderFooterEnabled,
454 event.initialSettings.marginsType, 455 event.initialSettings.marginsType,
455 event.initialSettings.customMargins, 456 event.initialSettings.customMargins,
456 event.initialSettings.thousandsDelimeter, 457 event.initialSettings.thousandsDelimeter,
457 event.initialSettings.decimalDelimeter, 458 event.initialSettings.decimalDelimeter,
(...skipping 360 matching lines...) Expand 10 before | Expand all | Expand 10 after
818 <include src="search/recent_destination_list.js"/> 819 <include src="search/recent_destination_list.js"/>
819 <include src="search/destination_list_item.js"/> 820 <include src="search/destination_list_item.js"/>
820 <include src="search/destination_search.js"/> 821 <include src="search/destination_search.js"/>
821 <include src="search/search_box.js"/> 822 <include src="search/search_box.js"/>
822 <include src="search/fedex_tos.js"/> 823 <include src="search/fedex_tos.js"/>
823 824
824 window.addEventListener('DOMContentLoaded', function() { 825 window.addEventListener('DOMContentLoaded', function() {
825 printPreview = new print_preview.PrintPreview(); 826 printPreview = new print_preview.PrintPreview();
826 printPreview.initialize(); 827 printPreview.initialize();
827 }); 828 });
OLDNEW
« no previous file with comments | « chrome/browser/resources/print_preview/native_layer.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698