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

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

Issue 7831041: Fix print preview workflow to reflect settings of selected printer. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Update per code review Created 9 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/printing/printing_message_filter.cc ('k') | chrome/renderer/mock_printer.cc » ('j') | 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 // require: cr/ui/print_preview_cloud.js 5 // require: cr/ui/print_preview_cloud.js
6 6
7 var localStrings = new LocalStrings(); 7 var localStrings = new LocalStrings();
8 8
9 // If useCloudPrint is true we attempt to connect to cloud print 9 // If useCloudPrint is true we attempt to connect to cloud print
10 // and populate the list of printers with cloud print printers. 10 // and populate the list of printers with cloud print printers.
(...skipping 835 matching lines...) Expand 10 before | Expand all | Expand 10 after
846 * Called from PrintPreviewMessageHandler::OnPrintPreviewFailed(). 846 * Called from PrintPreviewMessageHandler::OnPrintPreviewFailed().
847 */ 847 */
848 function printPreviewFailed() { 848 function printPreviewFailed() {
849 displayErrorMessageWithButton(localStrings.getString('previewFailed'), 849 displayErrorMessageWithButton(localStrings.getString('previewFailed'),
850 localStrings.getString('launchNativeDialog'), 850 localStrings.getString('launchNativeDialog'),
851 launchNativePrintDialog); 851 launchNativePrintDialog);
852 } 852 }
853 853
854 /** 854 /**
855 * Display an error message when encountered invalid printer settings. 855 * Display an error message when encountered invalid printer settings.
856 * Called from PrintPreviewMessageHandler::OnInvalidDefaultPrinter(). 856 * Called from PrintPreviewMessageHandler::OnInvalidPrinterSettings().
857 */ 857 */
858 function invalidPrinterSettings() { 858 function invalidPrinterSettings() {
859 displayErrorMessage(localStrings.getString('invalidPrinterSettings')); 859 displayErrorMessage(localStrings.getString('invalidPrinterSettings'));
860 } 860 }
861 861
862 /** 862 /**
863 * Called when the PDF plugin loads its document. 863 * Called when the PDF plugin loads its document.
864 */ 864 */
865 function onPDFLoad() { 865 function onPDFLoad() {
866 if (previewModifiable) { 866 if (previewModifiable) {
(...skipping 293 matching lines...) Expand 10 before | Expand all | Expand 10 after
1160 <include src="print_preview_animations.js"/> 1160 <include src="print_preview_animations.js"/>
1161 <include src="print_preview_cloud.js"/> 1161 <include src="print_preview_cloud.js"/>
1162 <include src="print_preview_utils.js"/> 1162 <include src="print_preview_utils.js"/>
1163 <include src="print_header.js"/> 1163 <include src="print_header.js"/>
1164 <include src="page_settings.js"/> 1164 <include src="page_settings.js"/>
1165 <include src="copies_settings.js"/> 1165 <include src="copies_settings.js"/>
1166 <include src="header_footer_settings.js"/> 1166 <include src="header_footer_settings.js"/>
1167 <include src="layout_settings.js"/> 1167 <include src="layout_settings.js"/>
1168 <include src="color_settings.js"/> 1168 <include src="color_settings.js"/>
1169 <include src="margin_settings.js"/> 1169 <include src="margin_settings.js"/>
OLDNEW
« no previous file with comments | « chrome/browser/printing/printing_message_filter.cc ('k') | chrome/renderer/mock_printer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698