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

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: Fixed NativeMetafileFactory class comments 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.
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.
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698