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

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

Issue 10870114: Merge 153263 - Fixes cloud-printer being treated as local-printer problem. (Closed) Base URL: svn://svn.chromium.org/chrome/branches/1229/src/
Patch Set: Created 8 years, 3 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 | Annotate | Revision Log
« 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 358 matching lines...) Expand 10 before | Expand all | Expand 10 after
816 <include src="search/recent_destination_list.js"/> 817 <include src="search/recent_destination_list.js"/>
817 <include src="search/destination_list_item.js"/> 818 <include src="search/destination_list_item.js"/>
818 <include src="search/destination_search.js"/> 819 <include src="search/destination_search.js"/>
819 <include src="search/search_box.js"/> 820 <include src="search/search_box.js"/>
820 <include src="search/fedex_tos.js"/> 821 <include src="search/fedex_tos.js"/>
821 822
822 window.addEventListener('DOMContentLoaded', function() { 823 window.addEventListener('DOMContentLoaded', function() {
823 printPreview = new print_preview.PrintPreview(); 824 printPreview = new print_preview.PrintPreview();
824 printPreview.initialize(); 825 printPreview.initialize();
825 }); 826 });
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