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

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: start looking at service process 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..1bb2cd3eeec23d775c5e555473a21e06e74b6391 100644
--- a/printing/metafile_impl.h
+++ b/printing/metafile_impl.h
@@ -7,16 +7,23 @@
#include "printing/pdf_metafile_skia.h"
-#if defined(OS_WIN)
+#if defined(OS_POSIX) || (defined(OS_WIN) && !defined(GOOGLE_CHROME_BUILD))
Vitaly Buka (NO REVIEWS) 2014/04/24 22:47:58 POSIX does not use metafile I guess this defile s
+#define PRINTING_USE_EMF_METAFILE 1
+#else
+#define PRINTING_USE_EMF_METAFILE 0
+#endif
+
+
+#if PRINTING_USE_EMF_METAFILE
#include "printing/emf_win.h"
#endif
namespace printing {
-#if defined(OS_WIN)
+#if PRINTING_USE_EMF_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