Fixed a small bug, causing a crash (DCHECK hit) when x-webkit-speech input tags are...
[chromium-blink-merge.git] / printing / metafile_impl.h
blob38c68a3185f0146c277400057f7e074c2836e1f5
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.
5 #ifndef PRINTING_METAFILE_IMPL_H_
6 #define PRINTING_METAFILE_IMPL_H_
8 #if defined(OS_WIN)
9 #include "printing/emf_win.h"
10 #elif defined(OS_MACOSX)
11 #include "printing/pdf_metafile_cg_mac.h"
12 #endif
14 #if !defined(OS_MACOSX) || defined(USE_SKIA)
15 #include "printing/pdf_metafile_skia.h"
16 #endif
18 namespace printing {
20 #if defined(OS_WIN)
21 typedef Emf NativeMetafile;
22 typedef PdfMetafileSkia PreviewMetafile;
23 #elif defined(OS_MACOSX)
24 #if defined(USE_SKIA)
25 typedef PdfMetafileSkia NativeMetafile;
26 typedef PdfMetafileSkia PreviewMetafile;
27 #else
28 typedef PdfMetafileCg NativeMetafile;
29 typedef PdfMetafileCg PreviewMetafile;
30 #endif
31 #elif defined(OS_POSIX)
32 typedef PdfMetafileSkia NativeMetafile;
33 typedef PdfMetafileSkia PreviewMetafile;
34 #endif
36 } // namespace printing
38 #endif // PRINTING_METAFILE_IMPL_H_