summaryrefslogtreecommitdiffstats
path: root/printing/pdf_metafile_skia.h
diff options
context:
space:
mode:
authorcaryclark@chromium.org <caryclark@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-06-22 13:34:57 +0000
committercaryclark@chromium.org <caryclark@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-06-22 13:34:57 +0000
commitb8d85bcc99bf93261fbd3343864cf799e676de4e (patch)
tree16c3d95884bfa428068e0f4501522fc6db17773f /printing/pdf_metafile_skia.h
parentfba70e690af4246bb171380a8573cb2ea71358de (diff)
downloadchromium_src-b8d85bcc99bf93261fbd3343864cf799e676de4e.zip
chromium_src-b8d85bcc99bf93261fbd3343864cf799e676de4e.tar.gz
chromium_src-b8d85bcc99bf93261fbd3343864cf799e676de4e.tar.bz2
Add support to use Skia printing from Mac.
Reference the CG metafile from the Skia version, so CG can be used to pass the PDF data to the OS X pipeline. If Skia is enabled as the Mac rendering engine, generate Skia PDF files instead of CG ones. This change adds a code path that will be enabled in the future, but does not modify any existing code, so there is no functional change. BUG=79463 TEST=none Review URL: http://codereview.chromium.org/7120006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@90023 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'printing/pdf_metafile_skia.h')
-rw-r--r--printing/pdf_metafile_skia.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/printing/pdf_metafile_skia.h b/printing/pdf_metafile_skia.h
index 3d1c7bd..2b8c7c1 100644
--- a/printing/pdf_metafile_skia.h
+++ b/printing/pdf_metafile_skia.h
@@ -54,7 +54,15 @@ class PdfMetafileSkia : public Metafile {
virtual bool Playback(gfx::NativeDrawingContext hdc, const RECT* rect) const;
virtual bool SafePlayback(gfx::NativeDrawingContext hdc) const;
virtual HENHMETAFILE emf() const;
-#endif // if defined(OS_WIN)
+#elif defined(OS_MACOSX)
+ virtual bool RenderPage(unsigned int page_number,
+ CGContextRef context,
+ const CGRect rect,
+ bool shrink_to_fit,
+ bool stretch_to_fit,
+ bool center_horizontally,
+ bool center_vertically) const;
+#endif
#if defined(OS_CHROMEOS)
virtual bool SaveToFD(const base::FileDescriptor& fd) const;