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 835 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 Loading... |
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"/> |
OLD | NEW |