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 321 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
332 IDS_PRINT_PREVIEW_REGISTER_PROMO_BUTTON_TEXT); | 332 IDS_PRINT_PREVIEW_REGISTER_PROMO_BUTTON_TEXT); |
333 source->AddLocalizedString( | 333 source->AddLocalizedString( |
334 "advancedSettingsSearchBoxPlaceholder", | 334 "advancedSettingsSearchBoxPlaceholder", |
335 IDS_PRINT_PREVIEW_ADVANCED_SETTINGS_SEARCH_BOX_PLACEHOLDER); | 335 IDS_PRINT_PREVIEW_ADVANCED_SETTINGS_SEARCH_BOX_PLACEHOLDER); |
336 source->AddLocalizedString("advancedSettingsDialogTitle", | 336 source->AddLocalizedString("advancedSettingsDialogTitle", |
337 IDS_PRINT_PREVIEW_ADVANCED_SETTINGS_DIALOG_TITLE); | 337 IDS_PRINT_PREVIEW_ADVANCED_SETTINGS_DIALOG_TITLE); |
338 source->AddLocalizedString( | 338 source->AddLocalizedString( |
339 "advancedSettingsDialogConfirm", | 339 "advancedSettingsDialogConfirm", |
340 IDS_PRINT_PREVIEW_ADVANCED_SETTINGS_DIALOG_CONFIRM); | 340 IDS_PRINT_PREVIEW_ADVANCED_SETTINGS_DIALOG_CONFIRM); |
341 source->AddLocalizedString("cancel", IDS_CANCEL); | 341 source->AddLocalizedString("cancel", IDS_CANCEL); |
| 342 source->AddLocalizedString("advancedOptionsLabel", |
| 343 IDS_PRINT_PREVIEW_ADVANCED_OPTIONS_LABEL); |
| 344 source->AddLocalizedString("showAdvancedOptions", |
| 345 IDS_PRINT_PREVIEW_SHOW_ADVANCED_OPTIONS); |
342 | 346 |
343 source->SetJsonPath("strings.js"); | 347 source->SetJsonPath("strings.js"); |
344 source->AddResourcePath("print_preview.js", IDR_PRINT_PREVIEW_JS); | 348 source->AddResourcePath("print_preview.js", IDR_PRINT_PREVIEW_JS); |
345 source->AddResourcePath("images/printer.png", | 349 source->AddResourcePath("images/printer.png", |
346 IDR_PRINT_PREVIEW_IMAGES_PRINTER); | 350 IDR_PRINT_PREVIEW_IMAGES_PRINTER); |
347 source->AddResourcePath("images/printer_shared.png", | 351 source->AddResourcePath("images/printer_shared.png", |
348 IDR_PRINT_PREVIEW_IMAGES_PRINTER_SHARED); | 352 IDR_PRINT_PREVIEW_IMAGES_PRINTER_SHARED); |
349 source->AddResourcePath("images/third_party.png", | 353 source->AddResourcePath("images/third_party.png", |
350 IDR_PRINT_PREVIEW_IMAGES_THIRD_PARTY); | 354 IDR_PRINT_PREVIEW_IMAGES_THIRD_PARTY); |
351 source->AddResourcePath("images/third_party_fedex.png", | 355 source->AddResourcePath("images/third_party_fedex.png", |
(...skipping 274 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
626 } | 630 } |
627 | 631 |
628 void PrintPreviewUI::SetSelectedFileForTesting(const base::FilePath& path) { | 632 void PrintPreviewUI::SetSelectedFileForTesting(const base::FilePath& path) { |
629 handler_->FileSelected(path, 0, NULL); | 633 handler_->FileSelected(path, 0, NULL); |
630 } | 634 } |
631 | 635 |
632 void PrintPreviewUI::SetPdfSavedClosureForTesting( | 636 void PrintPreviewUI::SetPdfSavedClosureForTesting( |
633 const base::Closure& closure) { | 637 const base::Closure& closure) { |
634 handler_->SetPdfSavedClosureForTesting(closure); | 638 handler_->SetPdfSavedClosureForTesting(closure); |
635 } | 639 } |
OLD | NEW |