| 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 339 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 350 | 350 |
| 351 source->AddLocalizedString("accept", IDS_PRINT_PREVIEW_ACCEPT_INVITE); | 351 source->AddLocalizedString("accept", IDS_PRINT_PREVIEW_ACCEPT_INVITE); |
| 352 source->AddLocalizedString( | 352 source->AddLocalizedString( |
| 353 "acceptForGroup", IDS_PRINT_PREVIEW_ACCEPT_GROUP_INVITE); | 353 "acceptForGroup", IDS_PRINT_PREVIEW_ACCEPT_GROUP_INVITE); |
| 354 source->AddLocalizedString("reject", IDS_PRINT_PREVIEW_REJECT_INVITE); | 354 source->AddLocalizedString("reject", IDS_PRINT_PREVIEW_REJECT_INVITE); |
| 355 source->AddLocalizedString( | 355 source->AddLocalizedString( |
| 356 "groupPrinterSharingInviteText", IDS_PRINT_PREVIEW_GROUP_INVITE_TEXT); | 356 "groupPrinterSharingInviteText", IDS_PRINT_PREVIEW_GROUP_INVITE_TEXT); |
| 357 source->AddLocalizedString( | 357 source->AddLocalizedString( |
| 358 "printerSharingInviteText", IDS_PRINT_PREVIEW_INVITE_TEXT); | 358 "printerSharingInviteText", IDS_PRINT_PREVIEW_INVITE_TEXT); |
| 359 | 359 |
| 360 source->SetUseJsonJSFormatV2(); | |
| 361 source->SetJsonPath("strings.js"); | 360 source->SetJsonPath("strings.js"); |
| 362 source->AddResourcePath("print_preview.js", IDR_PRINT_PREVIEW_JS); | 361 source->AddResourcePath("print_preview.js", IDR_PRINT_PREVIEW_JS); |
| 363 source->AddResourcePath("images/printer.png", | 362 source->AddResourcePath("images/printer.png", |
| 364 IDR_PRINT_PREVIEW_IMAGES_PRINTER); | 363 IDR_PRINT_PREVIEW_IMAGES_PRINTER); |
| 365 source->AddResourcePath("images/printer_shared.png", | 364 source->AddResourcePath("images/printer_shared.png", |
| 366 IDR_PRINT_PREVIEW_IMAGES_PRINTER_SHARED); | 365 IDR_PRINT_PREVIEW_IMAGES_PRINTER_SHARED); |
| 367 source->AddResourcePath("images/third_party.png", | 366 source->AddResourcePath("images/third_party.png", |
| 368 IDR_PRINT_PREVIEW_IMAGES_THIRD_PARTY); | 367 IDR_PRINT_PREVIEW_IMAGES_THIRD_PARTY); |
| 369 source->AddResourcePath("images/third_party_fedex.png", | 368 source->AddResourcePath("images/third_party_fedex.png", |
| 370 IDR_PRINT_PREVIEW_IMAGES_THIRD_PARTY_FEDEX); | 369 IDR_PRINT_PREVIEW_IMAGES_THIRD_PARTY_FEDEX); |
| (...skipping 277 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 648 } | 647 } |
| 649 | 648 |
| 650 void PrintPreviewUI::SetSelectedFileForTesting(const base::FilePath& path) { | 649 void PrintPreviewUI::SetSelectedFileForTesting(const base::FilePath& path) { |
| 651 handler_->FileSelected(path, 0, NULL); | 650 handler_->FileSelected(path, 0, NULL); |
| 652 } | 651 } |
| 653 | 652 |
| 654 void PrintPreviewUI::SetPdfSavedClosureForTesting( | 653 void PrintPreviewUI::SetPdfSavedClosureForTesting( |
| 655 const base::Closure& closure) { | 654 const base::Closure& closure) { |
| 656 handler_->SetPdfSavedClosureForTesting(closure); | 655 handler_->SetPdfSavedClosureForTesting(closure); |
| 657 } | 656 } |
| OLD | NEW |