Index: printing/native_metafile_factory.cc |
diff --git a/printing/native_metafile_factory.cc b/printing/native_metafile_factory.cc |
new file mode 100644 |
index 0000000000000000000000000000000000000000..2ae71213c5cc765182ba2aee888c4052e3822e5e |
--- /dev/null |
+++ b/printing/native_metafile_factory.cc |
@@ -0,0 +1,20 @@ |
+// Copyright (c) 2011 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#include "printing/native_metafile_factory.h" |
+ |
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.
|
+namespace printing { |
+ |
+// static |
+printing::NativeMetafile* NativeMetafileFactory::CreateMetafile() { |
+#if defined(OS_WIN) |
+ return new printing::Emf; |
+#elif defined(OS_MACOSX) |
+ return new printing::PdfMetafile; |
+#elif defined(OS_POSIX) |
+ return new printing::PdfPsMetafile; |
+#endif |
+} |
+ |
+} // namespace printing |