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) && defined(GOOGLE_CHROME_BUILD) | |
11 // TODO(scottmg): http://crbug.com/170859. The #if here should really be "has | |
12 // PDF DLL" not GOOGLE_CHROME_BUILD specifically, or perhaps a gyp setting? | |
Vitaly Buka (NO REVIEWS)
2014/05/13 23:54:33
GYP is better
scottmg
2014/05/14 00:34:48
Done. win_pdf_metafile_for_printing=1 in GYP_DEFIN
| |
13 #define PRINTING_WIN_USES_PDF_AS_METAFILE | |
14 #endif | |
15 | |
10 #if defined(OS_WIN) | 16 #if defined(OS_WIN) |
11 #include "printing/emf_win.h" | 17 #include "printing/emf_win.h" |
12 #endif | 18 #endif |
13 | 19 |
14 namespace printing { | 20 namespace printing { |
15 | 21 |
16 #if defined(OS_WIN) | 22 #if !defined(PRINTING_WIN_USES_PDF_AS_METAFILE) |
17 typedef Emf NativeMetafile; | 23 typedef Emf NativeMetafile; |
18 typedef PdfMetafileSkia PreviewMetafile; | 24 typedef PdfMetafileSkia PreviewMetafile; |
19 #elif defined(OS_POSIX) | 25 #else |
20 typedef PdfMetafileSkia NativeMetafile; | 26 typedef PdfMetafileSkia NativeMetafile; |
21 typedef PdfMetafileSkia PreviewMetafile; | 27 typedef PdfMetafileSkia PreviewMetafile; |
22 #endif | 28 #endif |
23 | 29 |
24 } // namespace printing | 30 } // namespace printing |
25 | 31 |
26 #endif // PRINTING_METAFILE_IMPL_H_ | 32 #endif // PRINTING_METAFILE_IMPL_H_ |
OLD | NEW |