Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(321)

Unified Diff: printing/pdf_metafile_skia.h

Issue 7274026: PrintPreview: Implement GetMetafileForCurrentPage() function in PdfMetafileSkia. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Addressed nits Created 9 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | printing/pdf_metafile_skia.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: printing/pdf_metafile_skia.h
diff --git a/printing/pdf_metafile_skia.h b/printing/pdf_metafile_skia.h
index c28cd08a5b5a4ab2f9d05e58897ef6917e608168..5d6d448d90f55f7f606d6bb53c6cf248e620a7f8 100644
--- a/printing/pdf_metafile_skia.h
+++ b/printing/pdf_metafile_skia.h
@@ -68,12 +68,18 @@ class PdfMetafileSkia : public Metafile {
virtual bool SaveToFD(const base::FileDescriptor& fd) const;
#endif // if defined(OS_CHROMEOS)
+ // Return a new metafile containing just the current page in draft mode.
+ PdfMetafileSkia* GetMetafileForCurrentPage();
+
private:
scoped_ptr<PdfMetafileSkiaData> data_;
// True when a draft version of metafile is requested.
mutable bool draft_;
+ // True when finish page is outstanding for current page.
+ bool page_outstanding_;
+
DISALLOW_COPY_AND_ASSIGN(PdfMetafileSkia);
};
« no previous file with comments | « no previous file | printing/pdf_metafile_skia.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698