| 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 <utility> | 8 #include <utility> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 363 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 374 IDS_PRINT_PREVIEW_SHOW_ADVANCED_OPTIONS); | 374 IDS_PRINT_PREVIEW_SHOW_ADVANCED_OPTIONS); |
| 375 | 375 |
| 376 source->AddLocalizedString("accept", IDS_PRINT_PREVIEW_ACCEPT_INVITE); | 376 source->AddLocalizedString("accept", IDS_PRINT_PREVIEW_ACCEPT_INVITE); |
| 377 source->AddLocalizedString( | 377 source->AddLocalizedString( |
| 378 "acceptForGroup", IDS_PRINT_PREVIEW_ACCEPT_GROUP_INVITE); | 378 "acceptForGroup", IDS_PRINT_PREVIEW_ACCEPT_GROUP_INVITE); |
| 379 source->AddLocalizedString("reject", IDS_PRINT_PREVIEW_REJECT_INVITE); | 379 source->AddLocalizedString("reject", IDS_PRINT_PREVIEW_REJECT_INVITE); |
| 380 source->AddLocalizedString( | 380 source->AddLocalizedString( |
| 381 "groupPrinterSharingInviteText", IDS_PRINT_PREVIEW_GROUP_INVITE_TEXT); | 381 "groupPrinterSharingInviteText", IDS_PRINT_PREVIEW_GROUP_INVITE_TEXT); |
| 382 source->AddLocalizedString( | 382 source->AddLocalizedString( |
| 383 "printerSharingInviteText", IDS_PRINT_PREVIEW_INVITE_TEXT); | 383 "printerSharingInviteText", IDS_PRINT_PREVIEW_INVITE_TEXT); |
| 384 source->AddLocalizedString("configuringInProgressText", |
| 385 IDS_PRINT_CONFIGURING_IN_PROGRESS_TEXT); |
| 386 source->AddLocalizedString("configuringFailedText", |
| 387 IDS_PRINT_CONFIGURING_FAILED_TEXT); |
| 384 | 388 |
| 385 source->SetJsonPath("strings.js"); | 389 source->SetJsonPath("strings.js"); |
| 386 source->AddResourcePath("print_preview.js", IDR_PRINT_PREVIEW_JS); | 390 source->AddResourcePath("print_preview.js", IDR_PRINT_PREVIEW_JS); |
| 387 source->AddResourcePath("pdf_preview.html", | 391 source->AddResourcePath("pdf_preview.html", |
| 388 IDR_PRINT_PREVIEW_PDF_PREVIEW_HTML); | 392 IDR_PRINT_PREVIEW_PDF_PREVIEW_HTML); |
| 389 source->AddResourcePath("images/printer.png", | 393 source->AddResourcePath("images/printer.png", |
| 390 IDR_PRINT_PREVIEW_IMAGES_PRINTER); | 394 IDR_PRINT_PREVIEW_IMAGES_PRINTER); |
| 391 source->AddResourcePath("images/printer_shared.png", | 395 source->AddResourcePath("images/printer_shared.png", |
| 392 IDR_PRINT_PREVIEW_IMAGES_PRINTER_SHARED); | 396 IDR_PRINT_PREVIEW_IMAGES_PRINTER_SHARED); |
| 393 source->AddResourcePath("images/business.svg", | 397 source->AddResourcePath("images/business.svg", |
| (...skipping 301 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 695 } | 699 } |
| 696 | 700 |
| 697 void PrintPreviewUI::SetSelectedFileForTesting(const base::FilePath& path) { | 701 void PrintPreviewUI::SetSelectedFileForTesting(const base::FilePath& path) { |
| 698 handler_->FileSelected(path, 0, NULL); | 702 handler_->FileSelected(path, 0, NULL); |
| 699 } | 703 } |
| 700 | 704 |
| 701 void PrintPreviewUI::SetPdfSavedClosureForTesting( | 705 void PrintPreviewUI::SetPdfSavedClosureForTesting( |
| 702 const base::Closure& closure) { | 706 const base::Closure& closure) { |
| 703 handler_->SetPdfSavedClosureForTesting(closure); | 707 handler_->SetPdfSavedClosureForTesting(closure); |
| 704 } | 708 } |
| OLD | NEW |