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 22 matching lines...) Expand all Loading... |
33 | 33 |
34 private: | 34 private: |
35 // IPC message handlers. | 35 // IPC message handlers. |
36 #if defined(OS_WIN) | 36 #if defined(OS_WIN) |
37 void OnRenderPDFPagesToMetafile(IPC::PlatformFileForTransit pdf_transit, | 37 void OnRenderPDFPagesToMetafile(IPC::PlatformFileForTransit pdf_transit, |
38 const PdfRenderSettings& settings); | 38 const PdfRenderSettings& settings); |
39 void OnRenderPDFPagesToMetafileGetPage( | 39 void OnRenderPDFPagesToMetafileGetPage( |
40 int page_number, | 40 int page_number, |
41 IPC::PlatformFileForTransit output_file); | 41 IPC::PlatformFileForTransit output_file); |
42 void OnRenderPDFPagesToMetafileStop(); | 42 void OnRenderPDFPagesToMetafileStop(); |
43 void OnRenderPDFPagesToPostScriptStart( | |
44 IPC::PlatformFileForTransit pdf_transit, | |
45 const PdfRenderSettings& settings); | |
46 void OnRenderPDFPagesToPostScriptGetPage( | |
47 int page_number, | |
48 IPC::PlatformFileForTransit output_file); | |
49 void OnRenderPDFPagesToPostScriptStop(); | |
50 #endif // OS_WIN | 43 #endif // OS_WIN |
51 #if BUILDFLAG(ENABLE_PRINT_PREVIEW) | 44 #if BUILDFLAG(ENABLE_PRINT_PREVIEW) |
52 void OnRenderPDFPagesToPWGRaster(IPC::PlatformFileForTransit pdf_transit, | 45 void OnRenderPDFPagesToPWGRaster(IPC::PlatformFileForTransit pdf_transit, |
53 const PdfRenderSettings& settings, | 46 const PdfRenderSettings& settings, |
54 const PwgRasterSettings& bitmap_settings, | 47 const PwgRasterSettings& bitmap_settings, |
55 IPC::PlatformFileForTransit bitmap_transit); | 48 IPC::PlatformFileForTransit bitmap_transit); |
56 #endif // ENABLE_PRINT_PREVIEW | 49 #endif // ENABLE_PRINT_PREVIEW |
57 | 50 |
58 #if defined(OS_WIN) | 51 #if defined(OS_WIN) |
59 int LoadPDF(base::File pdf_file); | 52 int LoadPDF(base::File pdf_file); |
(...skipping 16 matching lines...) Expand all Loading... |
76 std::vector<char> pdf_data_; | 69 std::vector<char> pdf_data_; |
77 PdfRenderSettings pdf_rendering_settings_; | 70 PdfRenderSettings pdf_rendering_settings_; |
78 #endif | 71 #endif |
79 | 72 |
80 DISALLOW_COPY_AND_ASSIGN(PrintingHandler); | 73 DISALLOW_COPY_AND_ASSIGN(PrintingHandler); |
81 }; | 74 }; |
82 | 75 |
83 } // namespace printing | 76 } // namespace printing |
84 | 77 |
85 #endif // CHROME_UTILITY_PRINTING_HANDLER_H_ | 78 #endif // CHROME_UTILITY_PRINTING_HANDLER_H_ |
OLD | NEW |