Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(951)

Side by Side Diff: printing/native_metafile.h

Issue 6544028: Create a Factory for NativeMetafile. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: ARM compile failure fix Created 9 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « printing/image.cc ('k') | printing/native_metafile_factory.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2009 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_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 "base/basictypes.h"
8 #include "build/build_config.h" 9 #include "build/build_config.h"
9 10
10 // 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) 11 #if defined(OS_WIN)
18 12 #include "printing/native_metafile_win.h"
19 #include "printing/emf_win.h"
20
21 namespace printing {
22
23 typedef Emf NativeMetafile;
24
25 } // namespace printing
26
27 #elif defined(OS_MACOSX) 13 #elif defined(OS_MACOSX)
28 14 #include "printing/native_metafile_mac.h"
29 #include "printing/pdf_metafile_mac.h"
30
31 namespace printing {
32
33 typedef PdfMetafile NativeMetafile;
34
35 } // namespace printing
36
37 #elif defined(OS_POSIX) 15 #elif defined(OS_POSIX)
38 16 #include "printing/native_metafile_linux.h"
39 #include "printing/pdf_ps_metafile_cairo.h"
40
41 namespace printing {
42
43 typedef PdfPsMetafile NativeMetafile;
44
45 } // namespace printing
46
47 #endif 17 #endif
48 18
49
50 #endif // PRINTING_NATIVE_METAFILE_H_ 19 #endif // PRINTING_NATIVE_METAFILE_H_
OLDNEW
« no previous file with comments | « printing/image.cc ('k') | printing/native_metafile_factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698