OLD | NEW |
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 223 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
234 IDS_PRINT_PREVIEW_PAGE_RANGE_INSTRUCTION); | 234 IDS_PRINT_PREVIEW_PAGE_RANGE_INSTRUCTION); |
235 source->AddLocalizedString("copiesInstruction", | 235 source->AddLocalizedString("copiesInstruction", |
236 IDS_PRINT_PREVIEW_COPIES_INSTRUCTION); | 236 IDS_PRINT_PREVIEW_COPIES_INSTRUCTION); |
237 source->AddLocalizedString("incrementTitle", | 237 source->AddLocalizedString("incrementTitle", |
238 IDS_PRINT_PREVIEW_INCREMENT_TITLE); | 238 IDS_PRINT_PREVIEW_INCREMENT_TITLE); |
239 source->AddLocalizedString("decrementTitle", | 239 source->AddLocalizedString("decrementTitle", |
240 IDS_PRINT_PREVIEW_DECREMENT_TITLE); | 240 IDS_PRINT_PREVIEW_DECREMENT_TITLE); |
241 source->AddLocalizedString("printPagesLabel", | 241 source->AddLocalizedString("printPagesLabel", |
242 IDS_PRINT_PREVIEW_PRINT_PAGES_LABEL); | 242 IDS_PRINT_PREVIEW_PRINT_PAGES_LABEL); |
243 source->AddLocalizedString("optionsLabel", IDS_PRINT_PREVIEW_OPTIONS_LABEL); | 243 source->AddLocalizedString("optionsLabel", IDS_PRINT_PREVIEW_OPTIONS_LABEL); |
| 244 source->AddLocalizedString("optionPrintFriendly", |
| 245 IDS_PRINT_PREVIEW_OPTION_PRINT_FRIENDLY); |
244 source->AddLocalizedString("optionHeaderFooter", | 246 source->AddLocalizedString("optionHeaderFooter", |
245 IDS_PRINT_PREVIEW_OPTION_HEADER_FOOTER); | 247 IDS_PRINT_PREVIEW_OPTION_HEADER_FOOTER); |
246 source->AddLocalizedString("optionFitToPage", | 248 source->AddLocalizedString("optionFitToPage", |
247 IDS_PRINT_PREVIEW_OPTION_FIT_TO_PAGE); | 249 IDS_PRINT_PREVIEW_OPTION_FIT_TO_PAGE); |
248 source->AddLocalizedString( | 250 source->AddLocalizedString( |
249 "optionBackgroundColorsAndImages", | 251 "optionBackgroundColorsAndImages", |
250 IDS_PRINT_PREVIEW_OPTION_BACKGROUND_COLORS_AND_IMAGES); | 252 IDS_PRINT_PREVIEW_OPTION_BACKGROUND_COLORS_AND_IMAGES); |
251 source->AddLocalizedString("optionSelectionOnly", | 253 source->AddLocalizedString("optionSelectionOnly", |
252 IDS_PRINT_PREVIEW_OPTION_SELECTION_ONLY); | 254 IDS_PRINT_PREVIEW_OPTION_SELECTION_ONLY); |
253 source->AddLocalizedString("marginsLabel", IDS_PRINT_PREVIEW_MARGINS_LABEL); | 255 source->AddLocalizedString("marginsLabel", IDS_PRINT_PREVIEW_MARGINS_LABEL); |
(...skipping 390 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
644 } | 646 } |
645 | 647 |
646 void PrintPreviewUI::SetSelectedFileForTesting(const base::FilePath& path) { | 648 void PrintPreviewUI::SetSelectedFileForTesting(const base::FilePath& path) { |
647 handler_->FileSelected(path, 0, NULL); | 649 handler_->FileSelected(path, 0, NULL); |
648 } | 650 } |
649 | 651 |
650 void PrintPreviewUI::SetPdfSavedClosureForTesting( | 652 void PrintPreviewUI::SetPdfSavedClosureForTesting( |
651 const base::Closure& closure) { | 653 const base::Closure& closure) { |
652 handler_->SetPdfSavedClosureForTesting(closure); | 654 handler_->SetPdfSavedClosureForTesting(closure); |
653 } | 655 } |
OLD | NEW |