Chromium Code Reviews| 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..421bc1a8daf126aee31813c2175f55f48a725428 |
| --- /dev/null |
| +++ b/printing/native_metafile_factory.cc |
| @@ -0,0 +1,31 @@ |
| +/// Copyright (c) 2011 The Chromium Authors. All rights reserved. |
|
vandebo (ex-Chrome)
2011/02/23 02:01:41
extra /
dpapad
2011/02/24 20:56:59
Done.
|
| +// 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" |
| + |
| +namespace printing { |
| + |
| +/* static */ |
|
vandebo (ex-Chrome)
2011/02/23 02:01:41
// static
dpapad
2011/02/24 20:56:59
Done.
|
| +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 |
| +} |
| + |
| +#if defined(OS_LINUX) |
| +// static |
| +printing::NativeMetafile* NativeMetafileFactory::CreateMetafileFrom( |
| + cairo_t* context) { |
| + printing::NativeMetafile* metafile_ptr = |
| + printing::PdfPsMetafile::FromCairoContext(context); |
| + return metafile_ptr; |
| +} |
| +#endif |
| + |
| +} // namespace printing |
|
vandebo (ex-Chrome)
2011/02/23 02:01:41
two spaces before a comment.
dpapad
2011/02/24 20:56:59
Done.
|