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 // Define a metafile format for the current platform. We use this platform | 8 // Define a metafile format for the current platform. We use this platform |
9 // independent define so we can define interfaces in platform agnostic manner. | 9 // 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 | 10 // 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 | 11 // platforms that have the same interface as Emf or if we change Emf to support |
12 // multiple platforms (and rename to NativeMetafile). | 12 // multiple platforms (and rename to NativeMetafile). |
13 | 13 |
14 | 14 |
15 #if defined(OS_WIN) | 15 #if defined(OS_WIN) |
16 | 16 |
17 #include "printing/emf_win.h" | 17 #include "printing/emf_win.h" |
18 | 18 |
19 namespace printing { | 19 namespace printing { |
20 | 20 |
21 typedef Emf NativeMetafile; | 21 typedef Emf NativeMetafile; |
22 | 22 |
23 } // namespace printing | 23 } // namespace printing |
24 | 24 |
25 #elif defined(OS_MACOSX) | 25 #elif defined(OS_MACOSX) |
26 | 26 |
27 // TODO(port): Printing using PDF? | 27 // TODO(port): Printing using PDF? |
| 28 // The mock class is here so we can compile. |
| 29 class NativeMetafile {}; |
28 | 30 |
29 #elif defined(OS_LINUX) | 31 #elif defined(OS_LINUX) |
30 | 32 |
31 // TODO(port): Printing using PostScript? | 33 // TODO(port): Printing using PostScript? |
| 34 // The mock class is here so we can compile. |
| 35 class NativeMetafile {}; |
32 | 36 |
33 #endif | 37 #endif |
34 | 38 |
35 | 39 |
36 #endif // PRINTING_NATIVE_METAFILE_H__ | 40 #endif // PRINTING_NATIVE_METAFILE_H_ |
OLD | NEW |