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

Unified Diff: printing/metafile_skia_wrapper.h

Issue 8059034: Reland 103021: Printing preview of a PDF on Mac with Skia only previews the last page of the PDF (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 3 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 | « chrome/renderer/print_web_view_helper_win.cc ('k') | printing/metafile_skia_wrapper.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: printing/metafile_skia_wrapper.h
diff --git a/printing/metafile_skia_wrapper.h b/printing/metafile_skia_wrapper.h
index 40e26e82786d1fb15b0c220a9047e1c94025d653..901044964ffccab025d5476eccc6de101c0c7c5a 100644
--- a/printing/metafile_skia_wrapper.h
+++ b/printing/metafile_skia_wrapper.h
@@ -20,13 +20,9 @@ class Metafile;
// as long as the canvas.
class PRINTING_EXPORT MetafileSkiaWrapper : public SkRefCnt {
public:
- static void SetMetafileOnCanvas(SkCanvas* canvas, Metafile* metafile);
+ static void SetMetafileOnCanvas(const SkCanvas& canvas, Metafile* metafile);
- static Metafile* GetMetafileFromCanvas(SkCanvas* canvas);
-
- static void SetDraftMode(SkCanvas* canvas, bool draft_mode);
-
- static bool GetDraftMode(SkCanvas* canvas);
+ static Metafile* GetMetafileFromCanvas(const SkCanvas& canvas);
private:
explicit MetafileSkiaWrapper(Metafile* metafile);
« no previous file with comments | « chrome/renderer/print_web_view_helper_win.cc ('k') | printing/metafile_skia_wrapper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698