diff options
author | vandebo@chromium.org <vandebo@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-07-23 02:08:57 +0000 |
---|---|---|
committer | vandebo@chromium.org <vandebo@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-07-23 02:08:57 +0000 |
commit | 19b9d3b580c92f4cf80854227d6d4b366bc34871 (patch) | |
tree | 2026e7414e24197ef16d6caa6f0735b8b20e3f51 /printing/pdf_metafile_cg_mac.h | |
parent | ad9d525a9aac5e36280d1274e1b8efd6f4e58632 (diff) | |
download | chromium_src-19b9d3b580c92f4cf80854227d6d4b366bc34871.zip chromium_src-19b9d3b580c92f4cf80854227d6d4b366bc34871.tar.gz chromium_src-19b9d3b580c92f4cf80854227d6d4b366bc34871.tar.bz2 |
Make Metafile::StartPageForVectorCanvas take the page number as an argument.
This will let us add pages to a metafile out of order for print preview.
Also, make PdfMetafileSkia::GetMetafileForCurrentPage use draft mode, now that it's available.
BUG=NONE
TEST=NONE
Review URL: http://codereview.chromium.org/7481019
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@93763 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'printing/pdf_metafile_cg_mac.h')
-rw-r--r-- | printing/pdf_metafile_cg_mac.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/printing/pdf_metafile_cg_mac.h b/printing/pdf_metafile_cg_mac.h index 5a7f56d..488abe8 100644 --- a/printing/pdf_metafile_cg_mac.h +++ b/printing/pdf_metafile_cg_mac.h @@ -36,8 +36,8 @@ class PdfMetafileCg : public Metafile, public base::ThreadChecker { // Not implemented on mac. virtual SkDevice* StartPageForVectorCanvas( - const gfx::Size& page_size, const gfx::Rect& content_area, - const float& scale_factor); + int page_number, const gfx::Size& page_size, + const gfx::Rect& content_area, const float& scale_factor); virtual bool StartPage(const gfx::Size& page_size, const gfx::Rect& content_area, const float& scale_factor); |