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

Unified Diff: skia/ext/platform_device.h

Issue 7719014: PrintPreview: Printing preview of a PDF on Mac with Skia only previews the last page of the PDF (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
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
Index: skia/ext/platform_device.h
diff --git a/skia/ext/platform_device.h b/skia/ext/platform_device.h
index 179a8e8bfa33facd13baaf209cb414d207359fc3..b01ef520c4a68186a1ef5e94bc236a624aebbc20 100644
--- a/skia/ext/platform_device.h
+++ b/skia/ext/platform_device.h
@@ -18,6 +18,7 @@
#include "third_party/skia/include/core/SkColor.h"
class SkMatrix;
+class SkMetaData;
class SkPath;
class SkRegion;
@@ -78,6 +79,17 @@ SK_API void InitializeDC(HDC context);
SK_API CGContextRef GetBitmapContext(SkDevice* device);
#endif
+// Following routines are used in print preview workflow to mark the draft mode
+// metafile and preview metafile.
+SkMetaData& getMetaData(SkCanvas* canvas);
vandebo (ex-Chrome) 2011/09/26 21:01:45 const ref or ptr
kmadhusu 2011/09/27 00:35:14 Done.
+void SetDraftMode(SkCanvas* canvas, bool draft_mode);
vandebo (ex-Chrome) 2011/09/26 21:01:45 Should these have Is in the name?
kmadhusu 2011/09/27 00:35:14 Done.
+bool GetDraftMode(SkCanvas* canvas);
+
+#if defined(OS_MACOSX) || defined(OS_WIN)
+void SetIsPreviewMetafile(SkCanvas* canvas, bool is_preview);
+bool IsPreviewMetafile(SkCanvas* canvas);
+#endif
+
// A SkDevice is basically a wrapper around SkBitmap that provides a surface for
// SkCanvas to draw into. PlatformDevice provides a surface Windows can also
// write to. It also provides functionality to play well with GDI drawing

Powered by Google App Engine
This is Rietveld 408576698