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

Unified Diff: chrome/browser/ui/webui/print_preview_data_source.cc

Issue 8425008: PrintPreview:[MAC] Added "Open PDF In Preview" option to open the pdf in native preview app. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: '' Created 9 years, 1 month 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/webui/print_preview_data_source.cc
diff --git a/chrome/browser/ui/webui/print_preview_data_source.cc b/chrome/browser/ui/webui/print_preview_data_source.cc
index 3621859cf76986986be52e6b397cdb326e5d5074..72f813aea35b9d58d118882aa7ed0e413983d62b 100644
--- a/chrome/browser/ui/webui/print_preview_data_source.cc
+++ b/chrome/browser/ui/webui/print_preview_data_source.cc
@@ -62,7 +62,10 @@ PrintPreviewDataSource::PrintPreviewDataSource()
AddLocalizedString("printing", IDS_PRINT_PREVIEW_PRINTING);
AddLocalizedString("printingToPDFInProgress",
IDS_PRINT_PREVIEW_PRINTING_TO_PDF_IN_PROGRESS);
-
+#if defined(OS_MACOSX)
+ AddLocalizedString("openingPDFInPreview",
+ IDS_PRINT_PREVIEW_OPENING_PDF_IN_PREVIEW);
+#endif
AddLocalizedString("destinationLabel", IDS_PRINT_PREVIEW_DESTINATION_LABEL);
AddLocalizedString("copiesLabel", IDS_PRINT_PREVIEW_COPIES_LABEL);
AddLocalizedString("examplePageRangeText",
@@ -106,6 +109,10 @@ PrintPreviewDataSource::PrintPreviewDataSource()
AddLocalizedString("printWithCloudPrint",
IDS_PRINT_PREVIEW_PRINT_WITH_CLOUD_PRINT);
#endif
+#if defined(OS_MACOSX)
+ AddLocalizedString("openPdfInPreviewOption",
+ IDS_PRINT_PREVIEW_OPEN_PDF_IN_PREVIEW_APP);
+#endif
AddLocalizedString("pageRangeInstruction",
IDS_PRINT_PREVIEW_PAGE_RANGE_INSTRUCTION);
AddLocalizedString("copiesInstruction", IDS_PRINT_PREVIEW_COPIES_INSTRUCTION);

Powered by Google App Engine
This is Rietveld 408576698