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

Unified Diff: printing/metafile_impl.h

Issue 6826027: Connect the right metafiles for print preview on Linux and Windows. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix compile problems Created 9 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
« no previous file with comments | « printing/metafile.h ('k') | printing/metafile_skia_wrapper.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: printing/metafile_impl.h
diff --git a/printing/metafile_impl.h b/printing/metafile_impl.h
new file mode 100644
index 0000000000000000000000000000000000000000..d25481dab21856340d300098c61d69f1e06263b2
--- /dev/null
+++ b/printing/metafile_impl.h
@@ -0,0 +1,33 @@
+// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef PRINTING_METAFILE_IMPL_H_
+#define PRINTING_METAFILE_IMPL_H_
+
+#if defined(OS_WIN)
+#include "printing/emf_win.h"
+#include "printing/pdf_metafile_skia.h"
+#elif defined(OS_MACOSX)
+#include "printing/pdf_metafile_cg_mac.h"
+#elif defined(OS_POSIX)
+#include "printing/pdf_metafile_cairo_linux.h"
+#include "printing/pdf_metafile_skia.h"
+#endif
+
+namespace printing {
+
+#if defined(OS_WIN)
+typedef Emf NativeMetafile;
+typedef PdfMetafileSkia PreviewMetafile;
+#elif defined(OS_MACOSX)
+typedef PdfMetafileCg NativeMetafile;
+typedef PdfMetafileCg PreviewMetafile;
+#elif defined(OS_POSIX)
+typedef PdfMetafileCairo NativeMetafile;
+typedef PdfMetafileSkia PreviewMetafile;
+#endif
+
+} // namespace printing
+
+#endif // PRINTING_METAFILE_IMPL_H_
« no previous file with comments | « printing/metafile.h ('k') | printing/metafile_skia_wrapper.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698