Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(103)

Side by Side Diff: chrome/utility/printing_handler.h

Issue 2640033005: Substitute boolean GDI printing for a mode type (Closed)
Patch Set: Fix nits Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « chrome/service/service_utility_process_host.cc ('k') | chrome/utility/printing_handler.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « chrome/service/service_utility_process_host.cc ('k') | chrome/utility/printing_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698