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

Side by Side Diff: printing/native_metafile_factory.cc

Issue 6544028: Create a Factory for NativeMetafile. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixes for Mac Created 9 years, 10 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
(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
vandebo (ex-Chrome) 2011/02/24 22:42:50 But the headers for the implementations need to be
dpapad 2011/02/26 01:42:29 Done.
7 namespace printing {
8
9 // static
10 printing::NativeMetafile* NativeMetafileFactory::CreateMetafile() {
11 #if defined(OS_WIN)
12 return new printing::Emf;
13 #elif defined(OS_MACOSX)
14 return new printing::PdfMetafile;
15 #elif defined(OS_POSIX)
16 return new printing::PdfPsMetafile;
17 #endif
18 }
19
20 } // namespace printing
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698