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