OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 #ifndef CHROME_UTILITY_PRINTING_HANDLER_H_ | 5 #ifndef CHROME_UTILITY_PRINTING_HANDLER_H_ |
6 #define CHROME_UTILITY_PRINTING_HANDLER_H_ | 6 #define CHROME_UTILITY_PRINTING_HANDLER_H_ |
7 | 7 |
8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
9 #include "base/macros.h" | 9 #include "base/macros.h" |
10 #include "build/build_config.h" | 10 #include "build/build_config.h" |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
45 void OnRenderPDFPagesToPWGRaster(IPC::PlatformFileForTransit pdf_transit, | 45 void OnRenderPDFPagesToPWGRaster(IPC::PlatformFileForTransit pdf_transit, |
46 const PdfRenderSettings& settings, | 46 const PdfRenderSettings& settings, |
47 const PwgRasterSettings& bitmap_settings, | 47 const PwgRasterSettings& bitmap_settings, |
48 IPC::PlatformFileForTransit bitmap_transit); | 48 IPC::PlatformFileForTransit bitmap_transit); |
49 #endif // ENABLE_PRINT_PREVIEW | 49 #endif // ENABLE_PRINT_PREVIEW |
50 | 50 |
51 #if defined(OS_WIN) | 51 #if defined(OS_WIN) |
52 int LoadPDF(base::File pdf_file); | 52 int LoadPDF(base::File pdf_file); |
53 bool RenderPdfPageToMetafile(int page_number, | 53 bool RenderPdfPageToMetafile(int page_number, |
54 base::File output_file, | 54 base::File output_file, |
55 float* scale_factor); | 55 float* scale_factor, |
| 56 bool postscript); |
56 #endif // OS_WIN | 57 #endif // OS_WIN |
57 #if BUILDFLAG(ENABLE_PRINT_PREVIEW) | 58 #if BUILDFLAG(ENABLE_PRINT_PREVIEW) |
58 bool RenderPDFPagesToPWGRaster(base::File pdf_file, | 59 bool RenderPDFPagesToPWGRaster(base::File pdf_file, |
59 const PdfRenderSettings& settings, | 60 const PdfRenderSettings& settings, |
60 const PwgRasterSettings& bitmap_settings, | 61 const PwgRasterSettings& bitmap_settings, |
61 base::File bitmap_file); | 62 base::File bitmap_file); |
62 | 63 |
63 void OnGetPrinterCapsAndDefaults(const std::string& printer_name); | 64 void OnGetPrinterCapsAndDefaults(const std::string& printer_name); |
64 void OnGetPrinterSemanticCapsAndDefaults(const std::string& printer_name); | 65 void OnGetPrinterSemanticCapsAndDefaults(const std::string& printer_name); |
65 #endif // ENABLE_PRINT_PREVIEW | 66 #endif // ENABLE_PRINT_PREVIEW |
66 | 67 |
67 #if defined(OS_WIN) | 68 #if defined(OS_WIN) |
68 std::vector<char> pdf_data_; | 69 std::vector<char> pdf_data_; |
69 PdfRenderSettings pdf_rendering_settings_; | 70 PdfRenderSettings pdf_rendering_settings_; |
70 #endif | 71 #endif |
71 | 72 |
72 DISALLOW_COPY_AND_ASSIGN(PrintingHandler); | 73 DISALLOW_COPY_AND_ASSIGN(PrintingHandler); |
73 }; | 74 }; |
74 | 75 |
75 } // namespace printing | 76 } // namespace printing |
76 | 77 |
77 #endif // CHROME_UTILITY_PRINTING_HANDLER_H_ | 78 #endif // CHROME_UTILITY_PRINTING_HANDLER_H_ |
OLD | NEW |