diff options
author | stuartmorgan@chromium.org <stuartmorgan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-10-12 18:45:31 +0000 |
---|---|---|
committer | stuartmorgan@chromium.org <stuartmorgan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-10-12 18:45:31 +0000 |
commit | 14b210798a1e50d673088484ca19852407d8ff3c (patch) | |
tree | 48a604a3389d4cbc7c6d97da0fd885fde83bff7f /printing/native_metafile.h | |
parent | 5cfe3a579e12a2fa7ef2a6607fa9749cf377be8f (diff) | |
download | chromium_src-14b210798a1e50d673088484ca19852407d8ff3c.zip chromium_src-14b210798a1e50d673088484ca19852407d8ff3c.tar.gz chromium_src-14b210798a1e50d673088484ca19852407d8ff3c.tar.bz2 |
Implement a version of NativeMetafile for the Mac
This is the first of series of patches to implement printing on the Mac.
This API is based heavily on the Linux version; although it doesn't end up abstracting very much on the Mac, having a NativeMetafile implementation makes it easy to pass data through the existing print architecture.
BUG=13158
TEST=Printing unit tests; no effect in the application yet.
Review URL: http://codereview.chromium.org/269041
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@28722 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'printing/native_metafile.h')
-rw-r--r-- | printing/native_metafile.h | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/printing/native_metafile.h b/printing/native_metafile.h index e30a43e..2c71986 100644 --- a/printing/native_metafile.h +++ b/printing/native_metafile.h @@ -26,14 +26,13 @@ typedef Emf NativeMetafile; #elif defined(OS_MACOSX) -// TODO(port): Printing using CG/PDF? -// The mock class is here so we can compile. -class NativeMetafile { - public: - int GetDataSize() const { return 0; } - private: - DISALLOW_COPY_AND_ASSIGN(NativeMetafile); -}; +#include "printing/pdf_metafile_mac.h" + +namespace printing { + +typedef PdfMetafile NativeMetafile; + +} // namespace printing #elif defined(OS_LINUX) |