OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef PRINTING_METAFILE_IMPL_H_ |
| 6 #define PRINTING_METAFILE_IMPL_H_ |
| 7 |
| 8 #if defined(OS_WIN) |
| 9 #include "printing/emf_win.h" |
| 10 #include "printing/pdf_metafile_skia.h" |
| 11 #elif defined(OS_MACOSX) |
| 12 #include "printing/pdf_metafile_cg_mac.h" |
| 13 #elif defined(OS_POSIX) |
| 14 #include "printing/pdf_metafile_cairo_linux.h" |
| 15 #include "printing/pdf_metafile_skia.h" |
| 16 #endif |
| 17 |
| 18 namespace printing { |
| 19 |
| 20 #if defined(OS_WIN) |
| 21 typedef Emf NativeMetafile; |
| 22 typedef PdfMetafileSkia PreviewMetafile; |
| 23 #elif defined(OS_MACOSX) |
| 24 typedef PdfMetafileCg NativeMetafile; |
| 25 typedef PdfMetafileCg PreviewMetafile; |
| 26 #elif defined(OS_POSIX) |
| 27 typedef PdfMetafileCairo NativeMetafile; |
| 28 typedef PdfMetafileSkia PreviewMetafile; |
| 29 #endif |
| 30 |
| 31 } // namespace printing |
| 32 |
| 33 #endif // PRINTING_METAFILE_IMPL_H_ |
OLD | NEW |