blob: be79d5bea921e1a8c96721e29fdfc113dce5461c [file] [log] [blame]
[email protected]0e0fca32009-07-06 15:25:501// 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
3// found in the LICENSE file.
4
[email protected]8ff1d422009-07-07 21:31:395#ifndef PRINTING_NATIVE_METAFILE_H_
6#define PRINTING_NATIVE_METAFILE_H_
[email protected]0e0fca32009-07-06 15:25:507
[email protected]3cfa15ac2009-08-25 17:36:378#include "build/build_config.h"
9
[email protected]0e0fca32009-07-06 15:25:5010// Define a metafile format for the current platform. We use this platform
11// independent define so we can define interfaces in platform agnostic manner.
12// It is still an outstanding design issue whether we create classes on all
13// platforms that have the same interface as Emf or if we change Emf to support
14// multiple platforms (and rename to NativeMetafile).
15
16
17#if defined(OS_WIN)
18
19#include "printing/emf_win.h"
20
21namespace printing {
22
23typedef Emf NativeMetafile;
24
25} // namespace printing
26
27#elif defined(OS_MACOSX)
28
29// TODO(port): Printing using PDF?
[email protected]8ff1d422009-07-07 21:31:3930// The mock class is here so we can compile.
31class NativeMetafile {};
[email protected]0e0fca32009-07-06 15:25:5032
33#elif defined(OS_LINUX)
34
[email protected]3cfa15ac2009-08-25 17:36:3735#include "printing/pdf_ps_metafile_linux.h"
36
37namespace printing {
38
39typedef PdfPsMetafile NativeMetafile;
40
41} // namespace printing
[email protected]0e0fca32009-07-06 15:25:5042
43#endif
44
45
[email protected]8ff1d422009-07-07 21:31:3946#endif // PRINTING_NATIVE_METAFILE_H_