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

Unified Diff: printing/native_metafile_factory.cc

Issue 6594121: Revert 76553 - Applying factory pattern (through NativeMetafileFactory class)... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « printing/native_metafile_factory.h ('k') | printing/native_metafile_linux.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: printing/native_metafile_factory.cc
===================================================================
--- printing/native_metafile_factory.cc (revision 76554)
+++ printing/native_metafile_factory.cc (working copy)
@@ -1,28 +0,0 @@
-// 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"
-
-#if defined(OS_WIN)
-#include "printing/emf_win.h"
-#elif defined(OS_MACOSX)
-#include "printing/pdf_metafile_mac.h"
-#elif defined(OS_POSIX)
-#include "printing/pdf_ps_metafile_cairo.h"
-#endif
-
-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
« no previous file with comments | « printing/native_metafile_factory.h ('k') | printing/native_metafile_linux.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698