summaryrefslogtreecommitdiff
path: root/core/fxge/win32/cpsoutput.h
diff options
context:
space:
mode:
authorLei Zhang <thestig@chromium.org>2018-04-25 21:10:05 +0000
committerChromium commit bot <commit-bot@chromium.org>2018-04-25 21:10:05 +0000
commit9ed6bd7150a9333cb28d149c98e3d316c3ededdf (patch)
treed8b293aaec7be2acc7645150a194d9625a344758 /core/fxge/win32/cpsoutput.h
parentd7f3f1e1b99f1e10bfce83d779303c678965b57c (diff)
downloadpdfium-9ed6bd7150a9333cb28d149c98e3d316c3ededdf.tar.xz
Add PostScript PASSTHROUGH options to FPDF_SetPrintMode().
The existing PostScript modes write data into EMF comments. This satisfies Chromium's use case, but other embedders want to write data out via ExtEscape() in PASSTHROUGH mode. BUG=pdfium:1068 Change-Id: I998035e99fbb84b16dcd244b750b476cecc3bd22 Reviewed-on: https://pdfium-review.googlesource.com/31299 Commit-Queue: Lei Zhang <thestig@chromium.org> Reviewed-by: dsinclair <dsinclair@chromium.org> Reviewed-by: Rebekah Potter <rbpotter@chromium.org>
Diffstat (limited to 'core/fxge/win32/cpsoutput.h')
-rw-r--r--core/fxge/win32/cpsoutput.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/core/fxge/win32/cpsoutput.h b/core/fxge/win32/cpsoutput.h
index d140de95f4..49317a64a5 100644
--- a/core/fxge/win32/cpsoutput.h
+++ b/core/fxge/win32/cpsoutput.h
@@ -14,7 +14,9 @@
class CPSOutput : public IFX_WriteStream {
public:
- explicit CPSOutput(HDC hDC);
+ enum class OutputMode { kExtEscape, kGdiComment };
+
+ CPSOutput(HDC hDC, OutputMode mode);
~CPSOutput() override;
// IFX_Writestream
@@ -23,6 +25,7 @@ class CPSOutput : public IFX_WriteStream {
private:
HDC m_hDC;
+ const OutputMode m_mode;
};
#endif // CORE_FXGE_WIN32_CPSOUTPUT_H_