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

Unified Diff: printing/metafile.h

Issue 694213002: Remove calls to deprecated SkPDFDevice and SkPDFDocuemnt. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 6 years, 1 month 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: printing/metafile.h
diff --git a/printing/metafile.h b/printing/metafile.h
index 12b50334e432cb9c6b158f14b58bb3dfb9577f71..8ff51bea9aae89c6eccf940d2de870df920263a4 100644
--- a/printing/metafile.h
+++ b/printing/metafile.h
@@ -10,6 +10,8 @@
#include "base/basictypes.h"
#include "build/build_config.h"
#include "printing/printing_export.h"
+#include "skia/ext/refptr.h"
+#include "skia/ext/vector_canvas.h"
#include "ui/gfx/native_widget_types.h"
#if defined(OS_WIN)
@@ -112,6 +114,14 @@ class PRINTING_EXPORT Metafile : public MetafilePlayer {
virtual bool InitFromData(const void* src_buffer, uint32 src_buffer_size) = 0;
// This method calls StartPage and then returns an appropriate
+ // VectorCanvas implementation bound to the context created by
+ // StartPage or NULL on error. The default implementation calls
+ // StartPageForVectorCanvas. This method is preferred.
+ virtual skia::RefPtr<skia::VectorCanvas> GetVectorCanvasForNewPage(
+ const gfx::Size& page_size, const gfx::Rect& content_area,
+ const float& scale_factor);
+
+ // This method calls StartPage and then returns an appropriate
// VectorPlatformDevice implementation bound to the context created by
// StartPage or NULL on error.
virtual SkBaseDevice* StartPageForVectorCanvas(const gfx::Size& page_size,

Powered by Google App Engine
This is Rietveld 408576698