| 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 372 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 383 "printerSharingInviteText", IDS_PRINT_PREVIEW_INVITE_TEXT); | 383 "printerSharingInviteText", IDS_PRINT_PREVIEW_INVITE_TEXT); |
| 384 | 384 |
| 385 source->SetJsonPath("strings.js"); | 385 source->SetJsonPath("strings.js"); |
| 386 source->AddResourcePath("print_preview.js", IDR_PRINT_PREVIEW_JS); | 386 source->AddResourcePath("print_preview.js", IDR_PRINT_PREVIEW_JS); |
| 387 source->AddResourcePath("pdf_preview.html", | 387 source->AddResourcePath("pdf_preview.html", |
| 388 IDR_PRINT_PREVIEW_PDF_PREVIEW_HTML); | 388 IDR_PRINT_PREVIEW_PDF_PREVIEW_HTML); |
| 389 source->AddResourcePath("images/printer.png", | 389 source->AddResourcePath("images/printer.png", |
| 390 IDR_PRINT_PREVIEW_IMAGES_PRINTER); | 390 IDR_PRINT_PREVIEW_IMAGES_PRINTER); |
| 391 source->AddResourcePath("images/printer_shared.png", | 391 source->AddResourcePath("images/printer_shared.png", |
| 392 IDR_PRINT_PREVIEW_IMAGES_PRINTER_SHARED); | 392 IDR_PRINT_PREVIEW_IMAGES_PRINTER_SHARED); |
| 393 source->AddResourcePath("images/business.svg", |
| 394 IDR_PRINT_PREVIEW_IMAGES_ENTERPRISE_PRINTER); |
| 393 source->AddResourcePath("images/third_party.png", | 395 source->AddResourcePath("images/third_party.png", |
| 394 IDR_PRINT_PREVIEW_IMAGES_THIRD_PARTY); | 396 IDR_PRINT_PREVIEW_IMAGES_THIRD_PARTY); |
| 395 source->AddResourcePath("images/third_party_fedex.png", | 397 source->AddResourcePath("images/third_party_fedex.png", |
| 396 IDR_PRINT_PREVIEW_IMAGES_THIRD_PARTY_FEDEX); | 398 IDR_PRINT_PREVIEW_IMAGES_THIRD_PARTY_FEDEX); |
| 397 source->AddResourcePath("images/google_doc.png", | 399 source->AddResourcePath("images/google_doc.png", |
| 398 IDR_PRINT_PREVIEW_IMAGES_GOOGLE_DOC); | 400 IDR_PRINT_PREVIEW_IMAGES_GOOGLE_DOC); |
| 399 source->AddResourcePath("images/pdf.png", IDR_PRINT_PREVIEW_IMAGES_PDF); | 401 source->AddResourcePath("images/pdf.png", IDR_PRINT_PREVIEW_IMAGES_PDF); |
| 400 source->AddResourcePath("images/mobile.png", IDR_PRINT_PREVIEW_IMAGES_MOBILE); | 402 source->AddResourcePath("images/mobile.png", IDR_PRINT_PREVIEW_IMAGES_MOBILE); |
| 401 source->AddResourcePath("images/mobile_shared.png", | 403 source->AddResourcePath("images/mobile_shared.png", |
| 402 IDR_PRINT_PREVIEW_IMAGES_MOBILE_SHARED); | 404 IDR_PRINT_PREVIEW_IMAGES_MOBILE_SHARED); |
| (...skipping 292 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 695 } | 697 } |
| 696 | 698 |
| 697 void PrintPreviewUI::SetSelectedFileForTesting(const base::FilePath& path) { | 699 void PrintPreviewUI::SetSelectedFileForTesting(const base::FilePath& path) { |
| 698 handler_->FileSelected(path, 0, NULL); | 700 handler_->FileSelected(path, 0, NULL); |
| 699 } | 701 } |
| 700 | 702 |
| 701 void PrintPreviewUI::SetPdfSavedClosureForTesting( | 703 void PrintPreviewUI::SetPdfSavedClosureForTesting( |
| 702 const base::Closure& closure) { | 704 const base::Closure& closure) { |
| 703 handler_->SetPdfSavedClosureForTesting(closure); | 705 handler_->SetPdfSavedClosureForTesting(closure); |
| 704 } | 706 } |
| OLD | NEW |