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

Side by Side Diff: printing/metafile_impl.h

Issue 255543006: Printing on Windows via PDF (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: almost working; SafePlayback failing in final print Created 6 years, 7 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
OLDNEW
1 // Copyright (c) 2011 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_METAFILE_IMPL_H_ 5 #ifndef PRINTING_METAFILE_IMPL_H_
6 #define PRINTING_METAFILE_IMPL_H_ 6 #define PRINTING_METAFILE_IMPL_H_
7 7
8 #include "printing/pdf_metafile_skia.h" 8 #include "printing/pdf_metafile_skia.h"
9 9
10 #if defined(OS_WIN) && defined(GOOGLE_CHROME_BUILD)
11 #define PRINTING_WIN_USES_PDF_AS_METAFILE
12 #endif
13
10 #if defined(OS_WIN) 14 #if defined(OS_WIN)
11 #include "printing/emf_win.h" 15 #include "printing/emf_win.h"
12 #endif 16 #endif
13 17
14 namespace printing { 18 namespace printing {
15 19
16 #if defined(OS_WIN) 20 #if !defined(PRINTING_WIN_USES_PDF_AS_METAFILE)
17 typedef Emf NativeMetafile; 21 typedef Emf NativeMetafile;
18 typedef PdfMetafileSkia PreviewMetafile; 22 typedef PdfMetafileSkia PreviewMetafile;
19 #elif defined(OS_POSIX) 23 #else
20 typedef PdfMetafileSkia NativeMetafile; 24 typedef PdfMetafileSkia NativeMetafile;
21 typedef PdfMetafileSkia PreviewMetafile; 25 typedef PdfMetafileSkia PreviewMetafile;
22 #endif 26 #endif
23 27
24 } // namespace printing 28 } // namespace printing
25 29
26 #endif // PRINTING_METAFILE_IMPL_H_ 30 #endif // PRINTING_METAFILE_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698