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

Unified Diff: printing/metafile_impl.h

Issue 255543006: Printing on Windows via PDF (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: almost working; SafePlayback failing in final print Created 6 years, 8 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: printing/metafile_impl.h
diff --git a/printing/metafile_impl.h b/printing/metafile_impl.h
index 840a1cede68ccad26eac75303d9ffedf1fcd7b17..53f907fd1680d82a81acb26d79b759cbb8a0209b 100644
--- a/printing/metafile_impl.h
+++ b/printing/metafile_impl.h
@@ -7,16 +7,20 @@
#include "printing/pdf_metafile_skia.h"
+#if defined(OS_WIN) && defined(GOOGLE_CHROME_BUILD)
+#define PRINTING_WIN_USES_PDF_AS_METAFILE
+#endif
+
#if defined(OS_WIN)
#include "printing/emf_win.h"
#endif
namespace printing {
-#if defined(OS_WIN)
+#if !defined(PRINTING_WIN_USES_PDF_AS_METAFILE)
typedef Emf NativeMetafile;
typedef PdfMetafileSkia PreviewMetafile;
-#elif defined(OS_POSIX)
+#else
typedef PdfMetafileSkia NativeMetafile;
typedef PdfMetafileSkia PreviewMetafile;
#endif

Powered by Google App Engine
This is Rietveld 408576698