OLD | NEW |
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 863 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
874 * Called from PrintPreviewMessageHandler::OnPrintPreviewFailed(). | 874 * Called from PrintPreviewMessageHandler::OnPrintPreviewFailed(). |
875 */ | 875 */ |
876 function printPreviewFailed() { | 876 function printPreviewFailed() { |
877 displayErrorMessageWithButton(localStrings.getString('previewFailed'), | 877 displayErrorMessageWithButton(localStrings.getString('previewFailed'), |
878 localStrings.getString('launchNativeDialog'), | 878 localStrings.getString('launchNativeDialog'), |
879 launchNativePrintDialog); | 879 launchNativePrintDialog); |
880 } | 880 } |
881 | 881 |
882 /** | 882 /** |
883 * Display an error message when encountered invalid printer settings. | 883 * Display an error message when encountered invalid printer settings. |
884 * Called from PrintPreviewMessageHandler::OnInvalidDefaultPrinter(). | 884 * Called from PrintPreviewMessageHandler::OnInvalidPrinterSettings(). |
885 */ | 885 */ |
886 function invalidPrinterSettings() { | 886 function invalidPrinterSettings() { |
887 displayErrorMessage(localStrings.getString('invalidPrinterSettings')); | 887 displayErrorMessage(localStrings.getString('invalidPrinterSettings')); |
888 } | 888 } |
889 | 889 |
890 /** | 890 /** |
891 * Called when the PDF plugin loads its document. | 891 * Called when the PDF plugin loads its document. |
892 */ | 892 */ |
893 function onPDFLoad() { | 893 function onPDFLoad() { |
894 if (previewModifiable) { | 894 if (previewModifiable) { |
(...skipping 221 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1116 <include src="print_preview_animations.js"/> | 1116 <include src="print_preview_animations.js"/> |
1117 <include src="print_preview_cloud.js"/> | 1117 <include src="print_preview_cloud.js"/> |
1118 <include src="print_preview_utils.js"/> | 1118 <include src="print_preview_utils.js"/> |
1119 <include src="print_header.js"/> | 1119 <include src="print_header.js"/> |
1120 <include src="page_settings.js"/> | 1120 <include src="page_settings.js"/> |
1121 <include src="copies_settings.js"/> | 1121 <include src="copies_settings.js"/> |
1122 <include src="header_footer_settings.js"/> | 1122 <include src="header_footer_settings.js"/> |
1123 <include src="layout_settings.js"/> | 1123 <include src="layout_settings.js"/> |
1124 <include src="color_settings.js"/> | 1124 <include src="color_settings.js"/> |
1125 <include src="margin_settings.js"/> | 1125 <include src="margin_settings.js"/> |
OLD | NEW |