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

Unified Diff: printing/native_metafile.h

Issue 149181: Move Emf class to the printing library. Also creates a platform agnostic Nat... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 5 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/emf_win_unittest.cc ('k') | printing/printing.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: printing/native_metafile.h
===================================================================
--- printing/native_metafile.h (revision 0)
+++ printing/native_metafile.h (revision 0)
@@ -0,0 +1,36 @@
+// Copyright (c) 2009 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.
+
+#ifndef PRINTING_NATIVE_METAFILE_H__
+#define PRINTING_NATIVE_METAFILE_H__
+
+// Define a metafile format for the current platform. We use this platform
+// independent define so we can define interfaces in platform agnostic manner.
+// It is still an outstanding design issue whether we create classes on all
+// platforms that have the same interface as Emf or if we change Emf to support
+// multiple platforms (and rename to NativeMetafile).
+
+
+#if defined(OS_WIN)
+
+#include "printing/emf_win.h"
+
+namespace printing {
+
+typedef Emf NativeMetafile;
+
+} // namespace printing
+
+#elif defined(OS_MACOSX)
+
+// TODO(port): Printing using PDF?
+
+#elif defined(OS_LINUX)
+
+// TODO(port): Printing using PostScript?
+
+#endif
+
+
+#endif // PRINTING_NATIVE_METAFILE_H__
Property changes on: printing\native_metafile.h
___________________________________________________________________
Added: svn:eol-style
+ LF
« no previous file with comments | « printing/emf_win_unittest.cc ('k') | printing/printing.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698