summaryrefslogtreecommitdiffstats
path: root/printing/native_metafile.h
blob: 284212c9afa19365c469a38d6db993ecd5e82576 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
// Copyright (c) 2009 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef PRINTING_NATIVE_METAFILE_H_
#define PRINTING_NATIVE_METAFILE_H_

// Define a metafile format for the current platform.  We use this platform
// independent define so we can define interfaces in platform agnostic manner.
// It is still an outstanding design issue whether we create classes on all
// platforms that have the same interface as Emf or if we change Emf to support
// multiple platforms (and rename to NativeMetafile).


#if defined(OS_WIN)

#include "printing/emf_win.h"

namespace printing {

typedef Emf NativeMetafile;

}  // namespace printing

#elif defined(OS_MACOSX)

// TODO(port): Printing using PDF?
// The mock class is here so we can compile.
class NativeMetafile {};

#elif defined(OS_LINUX)

// TODO(port): Printing using PostScript?
// The mock class is here so we can compile.
class NativeMetafile {};

#endif


#endif  // PRINTING_NATIVE_METAFILE_H_