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/emf_win.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/emf_win.h')
-rw-r--r-- | printing/emf_win.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/printing/emf_win.h b/printing/emf_win.h index f7e0ed5..a4584c9 100644 --- a/printing/emf_win.h +++ b/printing/emf_win.h @@ -46,8 +46,8 @@ class Emf : public Metafile { virtual bool InitFromData(const void* src_buffer, uint32 src_buffer_size); 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); // Inserts a custom GDICOMMENT records indicating StartPage/EndPage calls // (since StartPage and EndPage do not work in a metafile DC). Only valid // when hdc_ is non-NULL. |page_size|, |content_area|, and |scale_factor| are |