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 #include "printing/pdf_metafile_skia.h" | 8 #include "printing/pdf_metafile_skia.h" |
| 9 | 9 |
| 10 #if defined(OS_WIN) | 10 #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
| |
| 11 #define PRINTING_USE_EMF_METAFILE 1 | |
| 12 #else | |
| 13 #define PRINTING_USE_EMF_METAFILE 0 | |
| 14 #endif | |
| 15 | |
| 16 | |
| 17 #if PRINTING_USE_EMF_METAFILE | |
| 11 #include "printing/emf_win.h" | 18 #include "printing/emf_win.h" |
| 12 #endif | 19 #endif |
| 13 | 20 |
| 14 namespace printing { | 21 namespace printing { |
| 15 | 22 |
| 16 #if defined(OS_WIN) | 23 #if PRINTING_USE_EMF_METAFILE |
| 17 typedef Emf NativeMetafile; | 24 typedef Emf NativeMetafile; |
| 18 typedef PdfMetafileSkia PreviewMetafile; | 25 typedef PdfMetafileSkia PreviewMetafile; |
| 19 #elif defined(OS_POSIX) | 26 #else |
| 20 typedef PdfMetafileSkia NativeMetafile; | 27 typedef PdfMetafileSkia NativeMetafile; |
| 21 typedef PdfMetafileSkia PreviewMetafile; | 28 typedef PdfMetafileSkia PreviewMetafile; |
| 22 #endif | 29 #endif |
| 23 | 30 |
| 24 } // namespace printing | 31 } // namespace printing |
| 25 | 32 |
| 26 #endif // PRINTING_METAFILE_IMPL_H_ | 33 #endif // PRINTING_METAFILE_IMPL_H_ |
| OLD | NEW |