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