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

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

Issue 2114583002: Windows: Make it possible to print text with GDI. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase again, resolve conflicts Created 4 years, 3 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/utility/chrome_content_utility_client.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 18 matching lines...) Expand all
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
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_
OLDNEW
« no previous file with comments | « chrome/utility/chrome_content_utility_client.cc ('k') | chrome/utility/printing_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698