Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 /// 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.
| |
| 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 | |
| 7 namespace printing { | |
| 8 | |
| 9 /* static */ | |
|
vandebo (ex-Chrome)
2011/02/23 02:01:41
// static
dpapad
2011/02/24 20:56:59
Done.
| |
| 10 printing::NativeMetafile* NativeMetafileFactory::CreateMetafile() { | |
| 11 | |
| 12 #if defined(OS_WIN) | |
| 13 return new printing::Emf; | |
| 14 #elif defined(OS_MACOSX) | |
| 15 return new printing::PdfMetafile; | |
| 16 #elif defined(OS_POSIX) | |
| 17 return new printing::PdfPsMetafile; | |
| 18 #endif | |
| 19 } | |
| 20 | |
| 21 #if defined(OS_LINUX) | |
| 22 // static | |
| 23 printing::NativeMetafile* NativeMetafileFactory::CreateMetafileFrom( | |
| 24 cairo_t* context) { | |
| 25 printing::NativeMetafile* metafile_ptr = | |
| 26 printing::PdfPsMetafile::FromCairoContext(context); | |
| 27 return metafile_ptr; | |
| 28 } | |
| 29 #endif | |
| 30 | |
| 31 } // namespace printing | |
|
vandebo (ex-Chrome)
2011/02/23 02:01:41
two spaces before a comment.
dpapad
2011/02/24 20:56:59
Done.
| |
| OLD | NEW |