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

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: 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') | printing/pdf_metafile_skia.cc » ('J')
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 2b8c7c1c3235247163a1f649f8f6132bead08fdd..bcdd734320a1456f22634ac1b36509e2729d7144 100644
--- a/printing/pdf_metafile_skia.h
+++ b/printing/pdf_metafile_skia.h
@@ -70,12 +70,19 @@ class PdfMetafileSkia : public Metafile {
virtual void set_draft(bool draft) const;
+ // Helper function to get the metafile for current page. This is called from
vandebo (ex-Chrome) 2011/06/29 20:23:45 We can probably give a better description of this
kmadhusu 2011/06/30 06:10:55 Done.
+ // the preview workflow.
+ PdfMetafileSkia* GetMetafileForCurrentPage();
+
private:
scoped_ptr<PdfMetafileSkiaData> data_;
// True when a draft version of metafile is requested.
mutable bool draft_;
+ // True when finish page is already called for current page.
+ mutable bool did_finish_page_;
vandebo (ex-Chrome) 2011/06/29 20:23:45 Why do we have mutable fields?
kmadhusu 2011/06/30 06:10:55 Removed.
+
DISALLOW_COPY_AND_ASSIGN(PdfMetafileSkia);
};
« no previous file with comments | « no previous file | printing/pdf_metafile_skia.cc » ('j') | printing/pdf_metafile_skia.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698