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 18 matching lines...) Expand all Loading... |
29 PrintingHandler(); | 29 PrintingHandler(); |
30 ~PrintingHandler() override; | 30 ~PrintingHandler() override; |
31 | 31 |
32 // IPC::Listener: | 32 // IPC::Listener: |
33 bool OnMessageReceived(const IPC::Message& message) override; | 33 bool OnMessageReceived(const IPC::Message& message) override; |
34 | 34 |
35 private: | 35 private: |
36 // IPC message handlers. | 36 // IPC message handlers. |
37 #if defined(OS_WIN) | 37 #if defined(OS_WIN) |
38 void OnRenderPDFPagesToMetafile(IPC::PlatformFileForTransit pdf_transit, | 38 void OnRenderPDFPagesToMetafile(IPC::PlatformFileForTransit pdf_transit, |
39 const PdfRenderSettings& settings); | 39 const PdfRenderSettings& settings, |
| 40 bool print_text_with_gdi); |
40 void OnRenderPDFPagesToMetafileGetPage( | 41 void OnRenderPDFPagesToMetafileGetPage( |
41 int page_number, | 42 int page_number, |
42 IPC::PlatformFileForTransit output_file); | 43 IPC::PlatformFileForTransit output_file); |
43 void OnRenderPDFPagesToMetafileStop(); | 44 void OnRenderPDFPagesToMetafileStop(); |
44 #endif // OS_WIN | 45 #endif // OS_WIN |
45 #if defined(ENABLE_PRINT_PREVIEW) | 46 #if defined(ENABLE_PRINT_PREVIEW) |
46 void OnRenderPDFPagesToPWGRaster(IPC::PlatformFileForTransit pdf_transit, | 47 void OnRenderPDFPagesToPWGRaster(IPC::PlatformFileForTransit pdf_transit, |
47 const PdfRenderSettings& settings, | 48 const PdfRenderSettings& settings, |
48 const PwgRasterSettings& bitmap_settings, | 49 const PwgRasterSettings& bitmap_settings, |
49 IPC::PlatformFileForTransit bitmap_transit); | 50 IPC::PlatformFileForTransit bitmap_transit); |
(...skipping 19 matching lines...) Expand all Loading... |
69 std::vector<char> pdf_data_; | 70 std::vector<char> pdf_data_; |
70 PdfRenderSettings pdf_rendering_settings_; | 71 PdfRenderSettings pdf_rendering_settings_; |
71 #endif | 72 #endif |
72 | 73 |
73 DISALLOW_COPY_AND_ASSIGN(PrintingHandler); | 74 DISALLOW_COPY_AND_ASSIGN(PrintingHandler); |
74 }; | 75 }; |
75 | 76 |
76 } // namespace printing | 77 } // namespace printing |
77 | 78 |
78 #endif // CHROME_UTILITY_PRINTING_HANDLER_H_ | 79 #endif // CHROME_UTILITY_PRINTING_HANDLER_H_ |
OLD | NEW |