source->AddLocalizedString("printPreviewPageLabelPlural",
IDS_PRINT_PREVIEW_PAGE_LABEL_PLURAL);
const base::string16 shortcut_text(base::UTF8ToUTF16(kBasicPrintShortcut));
-#if defined(OS_CHROMEOS)
- source->AddString(
- "systemDialogOption",
- l10n_util::GetStringFUTF16(
- IDS_PRINT_PREVIEW_CLOUD_DIALOG_OPTION,
- l10n_util::GetStringUTF16(IDS_GOOGLE_CLOUD_PRINT),
- shortcut_text));
-#else
+#if !defined(OS_CHROMEOS)
source->AddString(
"systemDialogOption",
l10n_util::GetStringFUTF16(
IDS_PRINT_PREVIEW_SYSTEM_DIALOG_OPTION,
shortcut_text));
#endif
- source->AddString(
- "cloudPrintDialogOption",
- l10n_util::GetStringFUTF16(
- IDS_PRINT_PREVIEW_CLOUD_DIALOG_OPTION_NO_SHORTCUT,
- l10n_util::GetStringUTF16(IDS_GOOGLE_CLOUD_PRINT)));
#if defined(OS_MACOSX)
source->AddLocalizedString("openPdfInPreviewOption",
IDS_PRINT_PREVIEW_OPEN_PDF_IN_PREVIEW_APP);
source->AddLocalizedString("right", IDS_PRINT_PREVIEW_RIGHT_MARGIN_LABEL);
source->AddLocalizedString("mediaSizeLabel",
IDS_PRINT_PREVIEW_MEDIA_SIZE_LABEL);
+ source->AddLocalizedString("dpiLabel", IDS_PRINT_PREVIEW_DPI_LABEL);
+ source->AddLocalizedString("dpiItemLabel", IDS_PRINT_PREVIEW_DPI_ITEM_LABEL);
+ source->AddLocalizedString("nonIsotropicDpiItemLabel",
+ IDS_PRINT_PREVIEW_NON_ISOTROPIC_DPI_ITEM_LABEL);
source->AddLocalizedString("destinationSearchTitle",
IDS_PRINT_PREVIEW_DESTINATION_SEARCH_TITLE);
source->AddLocalizedString("accountSelectTitle",
source->AddLocalizedString(
"printerSharingInviteText", IDS_PRINT_PREVIEW_INVITE_TEXT);
- source->SetUseJsonJSFormatV2();
source->SetJsonPath("strings.js");
source->AddResourcePath("print_preview.js", IDR_PRINT_PREVIEW_JS);
source->AddResourcePath("images/printer.png",
g_print_preview_request_id_map.Get().Set(id_, request_id);
}
-#if !defined(DISABLE_BASIC_PRINTING)
+#if defined(ENABLE_BASIC_PRINTING)
void PrintPreviewUI::OnShowSystemDialog() {
web_ui()->CallJavascriptFunction("onSystemDialogLinkClicked");
}
-#endif // !DISABLE_BASIC_PRINTING
+#endif // ENABLE_BASIC_PRINTING
void PrintPreviewUI::OnDidGetPreviewPageCount(
const PrintHostMsg_DidGetPreviewPageCount_Params& params) {