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

Unified Diff: chrome/utility/printing_handler.h

Issue 2633573002: Add Postscript Printing (Closed)
Patch Set: Rebase Created 3 years, 11 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 side-by-side diff with in-line comments
Download patch
Index: chrome/utility/printing_handler.h
diff --git a/chrome/utility/printing_handler.h b/chrome/utility/printing_handler.h
index 99b6eeb6a28399e4077c254a037585b70c3efe14..9471e00c6f3956919f5808b0d19022b1fd4e3d19 100644
--- a/chrome/utility/printing_handler.h
+++ b/chrome/utility/printing_handler.h
@@ -35,12 +35,18 @@ class PrintingHandler : public UtilityMessageHandler {
// IPC message handlers.
#if defined(OS_WIN)
void OnRenderPDFPagesToMetafile(IPC::PlatformFileForTransit pdf_transit,
- const PdfRenderSettings& settings,
- bool print_text_with_gdi);
+ const PdfRenderSettings& settings);
void OnRenderPDFPagesToMetafileGetPage(
int page_number,
IPC::PlatformFileForTransit output_file);
void OnRenderPDFPagesToMetafileStop();
+ void OnRenderPDFPagesToPostScriptStart(
+ IPC::PlatformFileForTransit pdf_transit,
+ const PdfRenderSettings& settings);
+ void OnRenderPDFPagesToPostScriptGetPage(
+ int page_number,
+ IPC::PlatformFileForTransit output_file);
+ void OnRenderPDFPagesToPostScriptStop();
#endif // OS_WIN
#if BUILDFLAG(ENABLE_PRINT_PREVIEW)
void OnRenderPDFPagesToPWGRaster(IPC::PlatformFileForTransit pdf_transit,
@@ -54,6 +60,7 @@ class PrintingHandler : public UtilityMessageHandler {
bool RenderPdfPageToMetafile(int page_number,
base::File output_file,
float* scale_factor);
+ bool RenderPdfPageToPostScript(int page_number, base::File output_file);
#endif // OS_WIN
#if BUILDFLAG(ENABLE_PRINT_PREVIEW)
bool RenderPDFPagesToPWGRaster(base::File pdf_file,

Powered by Google App Engine
This is Rietveld 408576698