OLD | NEW |
| (Empty) |
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 | |
3 // found in the LICENSE file. | |
4 | |
5 #include "printing/native_metafile_factory.h" | |
6 | |
7 #if defined(OS_WIN) | |
8 #include "printing/emf_win.h" | |
9 #elif defined(OS_MACOSX) | |
10 #include "printing/pdf_metafile_mac.h" | |
11 #elif defined(OS_POSIX) | |
12 #include "printing/pdf_ps_metafile_cairo.h" | |
13 #endif | |
14 | |
15 namespace printing { | |
16 | |
17 // static | |
18 printing::NativeMetafile* NativeMetafileFactory::CreateMetafile() { | |
19 #if defined(OS_WIN) | |
20 return new printing::Emf; | |
21 #elif defined(OS_MACOSX) | |
22 return new printing::PdfMetafile; | |
23 #elif defined(OS_POSIX) | |
24 return new printing::PdfPsMetafile; | |
25 #endif | |
26 } | |
27 | |
28 } // namespace printing | |
OLD | NEW |