summaryrefslogtreecommitdiffstats
path: root/printing/pdf_metafile_skia.h
diff options
context:
space:
mode:
authorkmadhusu@chromium.org <kmadhusu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-08-02 16:44:20 +0000
committerkmadhusu@chromium.org <kmadhusu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-08-02 16:44:20 +0000
commit534c4fb35c8c195c6d82e7e12ac303397e796825 (patch)
tree1bfdb823901de172173b19f58b0aab493e1bb932 /printing/pdf_metafile_skia.h
parent1c78d786e3889ca1b783ab31ac3a16449e718f6f (diff)
downloadchromium_src-534c4fb35c8c195c6d82e7e12ac303397e796825.zip
chromium_src-534c4fb35c8c195c6d82e7e12ac303397e796825.tar.gz
chromium_src-534c4fb35c8c195c6d82e7e12ac303397e796825.tar.bz2
PrintPreview: Remove |page_number| from StartPageForVectorCanvas function and |page_slot| from PrintMsg_PrintPage_Params.
We will not add preview pages to the complete metafile in out of order fashion. BUG=none TEST=print preview works after code changes. Review URL: http://codereview.chromium.org/7549001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@95092 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'printing/pdf_metafile_skia.h')
-rw-r--r--printing/pdf_metafile_skia.h7
1 files changed, 2 insertions, 5 deletions
diff --git a/printing/pdf_metafile_skia.h b/printing/pdf_metafile_skia.h
index 4ce5337..d3beb3b 100644
--- a/printing/pdf_metafile_skia.h
+++ b/printing/pdf_metafile_skia.h
@@ -30,7 +30,6 @@ class PdfMetafileSkia : public Metafile {
virtual bool InitFromData(const void* src_buffer, uint32 src_buffer_size);
virtual SkDevice* StartPageForVectorCanvas(
- int page_number,
const gfx::Size& page_size,
const gfx::Rect& content_area,
const float& scale_factor);
@@ -73,12 +72,10 @@ class PdfMetafileSkia : public Metafile {
PdfMetafileSkia* GetMetafileForCurrentPage();
private:
- static const int kNoOutstandingPage = -1;
-
scoped_ptr<PdfMetafileSkiaData> data_;
- // Page number of the outstanding page, or kNoOutstandingPage.
- int outstanding_page_number_;
+ // True when finish page is outstanding for current page.
+ bool page_outstanding_;
DISALLOW_COPY_AND_ASSIGN(PdfMetafileSkia);
};