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

Side by Side Diff: chrome/browser/ui/webui/print_preview/print_preview_ui.cc

Issue 1144983002: Introduce concept of provisional destinations to print preview (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 5 years, 6 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
« no previous file with comments | « chrome/browser/resources/print_preview/search/provisional_destination_resolver.js ('k') | no next file » | 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 #include "chrome/browser/ui/webui/print_preview/print_preview_ui.h" 5 #include "chrome/browser/ui/webui/print_preview/print_preview_ui.h"
6 6
7 #include <map> 7 #include <map>
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/id_map.h" 10 #include "base/id_map.h"
(...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after
203 source->AddLocalizedString("printPreviewSummaryFormatLong", 203 source->AddLocalizedString("printPreviewSummaryFormatLong",
204 IDS_PRINT_PREVIEW_SUMMARY_FORMAT_LONG); 204 IDS_PRINT_PREVIEW_SUMMARY_FORMAT_LONG);
205 source->AddLocalizedString("printPreviewSheetsLabelSingular", 205 source->AddLocalizedString("printPreviewSheetsLabelSingular",
206 IDS_PRINT_PREVIEW_SHEETS_LABEL_SINGULAR); 206 IDS_PRINT_PREVIEW_SHEETS_LABEL_SINGULAR);
207 source->AddLocalizedString("printPreviewSheetsLabelPlural", 207 source->AddLocalizedString("printPreviewSheetsLabelPlural",
208 IDS_PRINT_PREVIEW_SHEETS_LABEL_PLURAL); 208 IDS_PRINT_PREVIEW_SHEETS_LABEL_PLURAL);
209 source->AddLocalizedString("printPreviewPageLabelSingular", 209 source->AddLocalizedString("printPreviewPageLabelSingular",
210 IDS_PRINT_PREVIEW_PAGE_LABEL_SINGULAR); 210 IDS_PRINT_PREVIEW_PAGE_LABEL_SINGULAR);
211 source->AddLocalizedString("printPreviewPageLabelPlural", 211 source->AddLocalizedString("printPreviewPageLabelPlural",
212 IDS_PRINT_PREVIEW_PAGE_LABEL_PLURAL); 212 IDS_PRINT_PREVIEW_PAGE_LABEL_PLURAL);
213 source->AddLocalizedString("selectButton",
214 IDS_PRINT_PREVIEW_BUTTON_SELECT);
215 source->AddLocalizedString("goBackButton",
216 IDS_PRINT_PREVIEW_BUTTON_GO_BACK);
217 source->AddLocalizedString(
218 "resolveExtensionUSBPermissionMessage",
219 IDS_PRINT_PREVIEW_RESOLVE_EXTENSION_USB_PERMISSION_MESSAGE);
220 source->AddLocalizedString(
221 "resolveExtensionUSBErrorMessage",
222 IDS_PRINT_PREVIEW_RESOLVE_EXTENSION_USB_ERROR_MESSAGE);
213 const base::string16 shortcut_text(base::UTF8ToUTF16(kBasicPrintShortcut)); 223 const base::string16 shortcut_text(base::UTF8ToUTF16(kBasicPrintShortcut));
214 #if !defined(OS_CHROMEOS) 224 #if !defined(OS_CHROMEOS)
215 source->AddString( 225 source->AddString(
216 "systemDialogOption", 226 "systemDialogOption",
217 l10n_util::GetStringFUTF16( 227 l10n_util::GetStringFUTF16(
218 IDS_PRINT_PREVIEW_SYSTEM_DIALOG_OPTION, 228 IDS_PRINT_PREVIEW_SYSTEM_DIALOG_OPTION,
219 shortcut_text)); 229 shortcut_text));
220 #endif 230 #endif
221 #if defined(OS_MACOSX) 231 #if defined(OS_MACOSX)
222 source->AddLocalizedString("openPdfInPreviewOption", 232 source->AddLocalizedString("openPdfInPreviewOption",
(...skipping 421 matching lines...) Expand 10 before | Expand all | Expand 10 after
644 } 654 }
645 655
646 void PrintPreviewUI::SetSelectedFileForTesting(const base::FilePath& path) { 656 void PrintPreviewUI::SetSelectedFileForTesting(const base::FilePath& path) {
647 handler_->FileSelected(path, 0, NULL); 657 handler_->FileSelected(path, 0, NULL);
648 } 658 }
649 659
650 void PrintPreviewUI::SetPdfSavedClosureForTesting( 660 void PrintPreviewUI::SetPdfSavedClosureForTesting(
651 const base::Closure& closure) { 661 const base::Closure& closure) {
652 handler_->SetPdfSavedClosureForTesting(closure); 662 handler_->SetPdfSavedClosureForTesting(closure);
653 } 663 }
OLDNEW
« no previous file with comments | « chrome/browser/resources/print_preview/search/provisional_destination_resolver.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698