Chromium Code Reviews| 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) | 12 #elif defined(OS_POSIX) |
| 13 #include "printing/pdf_metafile_cairo_linux.h" | 13 #include "printing/pdf_metafile_skia.h" |
|
vandebo (ex-Chrome)
2011/09/07 22:26:48
nit: I think line 17 covers this.
Albert Bodenhamer
2011/09/07 23:10:38
Done.
| |
| 14 #endif | 14 #endif |
| 15 | 15 |
| 16 #if !defined(OS_MACOSX) || defined(USE_SKIA) | 16 #if !defined(OS_MACOSX) || defined(USE_SKIA) |
| 17 #include "printing/pdf_metafile_skia.h" | 17 #include "printing/pdf_metafile_skia.h" |
| 18 #endif | 18 #endif |
| 19 | 19 |
| 20 namespace printing { | 20 namespace printing { |
| 21 | 21 |
| 22 #if defined(OS_WIN) | 22 #if defined(OS_WIN) |
| 23 typedef Emf NativeMetafile; | 23 typedef Emf NativeMetafile; |
| 24 typedef PdfMetafileSkia PreviewMetafile; | 24 typedef PdfMetafileSkia PreviewMetafile; |
| 25 #elif defined(OS_MACOSX) | 25 #elif defined(OS_MACOSX) |
| 26 #if defined(USE_SKIA) | 26 #if defined(USE_SKIA) |
| 27 typedef PdfMetafileSkia NativeMetafile; | 27 typedef PdfMetafileSkia NativeMetafile; |
| 28 typedef PdfMetafileSkia PreviewMetafile; | 28 typedef PdfMetafileSkia PreviewMetafile; |
| 29 #else | 29 #else |
| 30 typedef PdfMetafileCg NativeMetafile; | 30 typedef PdfMetafileCg NativeMetafile; |
| 31 typedef PdfMetafileCg PreviewMetafile; | 31 typedef PdfMetafileCg PreviewMetafile; |
| 32 #endif | 32 #endif |
| 33 #elif defined(OS_POSIX) | 33 #elif defined(OS_POSIX) |
| 34 typedef PdfMetafileSkia NativeMetafile; | 34 typedef PdfMetafileSkia NativeMetafile; |
| 35 typedef PdfMetafileSkia PreviewMetafile; | 35 typedef PdfMetafileSkia PreviewMetafile; |
| 36 #endif | 36 #endif |
| 37 | 37 |
| 38 } // namespace printing | 38 } // namespace printing |
| 39 | 39 |
| 40 #endif // PRINTING_METAFILE_IMPL_H_ | 40 #endif // PRINTING_METAFILE_IMPL_H_ |
| OLD | NEW |