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