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

Unified Diff: chrome/utility/printing_handler.h

Issue 2633573002: Add Postscript Printing (Closed)
Patch Set: Fix Linux compile error 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..5030b5fc42b782aaca9972ab570a1f79281899a3 100644
--- a/chrome/utility/printing_handler.h
+++ b/chrome/utility/printing_handler.h
@@ -35,26 +35,33 @@ 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();
-#endif // OS_WIN
+ void OnRenderPDFPagesToPostScriptStart(
+ IPC::PlatformFileForTransit pdf_transit,
+ const PdfRenderSettings& settings);
+ void OnRenderPDFPagesToPostScriptGetPage(
+ int page_number,
+ IPC::PlatformFileForTransit output_file);
+ void OnRenderPDFPagesToPostScriptStop();
+#endif
#if BUILDFLAG(ENABLE_PRINT_PREVIEW)
void OnRenderPDFPagesToPWGRaster(IPC::PlatformFileForTransit pdf_transit,
const PdfRenderSettings& settings,
const PwgRasterSettings& bitmap_settings,
IPC::PlatformFileForTransit bitmap_transit);
-#endif // ENABLE_PRINT_PREVIEW
dsinclair 2017/01/17 17:10:00 Why remove the comments?
+#endif
#if defined(OS_WIN)
int LoadPDF(base::File pdf_file);
bool RenderPdfPageToMetafile(int page_number,
base::File output_file,
float* scale_factor);
-#endif // OS_WIN
+ bool RenderPdfPageToPostScript(int page_number, base::File output_file);
+#endif
#if BUILDFLAG(ENABLE_PRINT_PREVIEW)
bool RenderPDFPagesToPWGRaster(base::File pdf_file,
const PdfRenderSettings& settings,
@@ -63,7 +70,7 @@ class PrintingHandler : public UtilityMessageHandler {
void OnGetPrinterCapsAndDefaults(const std::string& printer_name);
void OnGetPrinterSemanticCapsAndDefaults(const std::string& printer_name);
-#endif // ENABLE_PRINT_PREVIEW
+#endif
#if defined(OS_WIN)
std::vector<char> pdf_data_;

Powered by Google App Engine
This is Rietveld 408576698