| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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_NATIVE_METAFILE_H_ | 5 #ifndef PRINTING_NATIVE_METAFILE_H_ |
| 6 #define PRINTING_NATIVE_METAFILE_H_ | 6 #define PRINTING_NATIVE_METAFILE_H_ |
| 7 | 7 |
| 8 #include "build/build_config.h" |
| 9 |
| 8 // Define a metafile format for the current platform. We use this platform | 10 // Define a metafile format for the current platform. We use this platform |
| 9 // independent define so we can define interfaces in platform agnostic manner. | 11 // independent define so we can define interfaces in platform agnostic manner. |
| 10 // It is still an outstanding design issue whether we create classes on all | 12 // It is still an outstanding design issue whether we create classes on all |
| 11 // platforms that have the same interface as Emf or if we change Emf to support | 13 // platforms that have the same interface as Emf or if we change Emf to support |
| 12 // multiple platforms (and rename to NativeMetafile). | 14 // multiple platforms (and rename to NativeMetafile). |
| 13 | 15 |
| 14 | 16 |
| 15 #if defined(OS_WIN) | 17 #if defined(OS_WIN) |
| 16 | 18 |
| 17 #include "printing/emf_win.h" | 19 #include "printing/emf_win.h" |
| 18 | 20 |
| 19 namespace printing { | 21 namespace printing { |
| 20 | 22 |
| 21 typedef Emf NativeMetafile; | 23 typedef Emf NativeMetafile; |
| 22 | 24 |
| 23 } // namespace printing | 25 } // namespace printing |
| 24 | 26 |
| 25 #elif defined(OS_MACOSX) | 27 #elif defined(OS_MACOSX) |
| 26 | 28 |
| 27 // TODO(port): Printing using PDF? | 29 // TODO(port): Printing using PDF? |
| 28 // The mock class is here so we can compile. | 30 // The mock class is here so we can compile. |
| 29 class NativeMetafile {}; | 31 class NativeMetafile {}; |
| 30 | 32 |
| 31 #elif defined(OS_LINUX) | 33 #elif defined(OS_LINUX) |
| 32 | 34 |
| 33 // TODO(port): Printing using PostScript? | 35 #include "printing/pdf_ps_metafile_linux.h" |
| 34 // The mock class is here so we can compile. | 36 |
| 35 class NativeMetafile {}; | 37 namespace printing { |
| 38 |
| 39 typedef PdfPsMetafile NativeMetafile; |
| 40 |
| 41 } // namespace printing |
| 36 | 42 |
| 37 #endif | 43 #endif |
| 38 | 44 |
| 39 | 45 |
| 40 #endif // PRINTING_NATIVE_METAFILE_H_ | 46 #endif // PRINTING_NATIVE_METAFILE_H_ |
| OLD | NEW |