Index: printing/pdf_metafile_skia.h |
diff --git a/printing/pdf_metafile_skia.h b/printing/pdf_metafile_skia.h |
index 706c56aee36b5951cda6283e424ae7e421987ed6..c506e7424f9abf64f4b431e406423f4fb1ae36e2 100644 |
--- a/printing/pdf_metafile_skia.h |
+++ b/printing/pdf_metafile_skia.h |
@@ -35,6 +35,11 @@ class PRINTING_EXPORT PdfMetafileSkia : public Metafile { |
bool Init() override; |
bool InitFromData(const void* src_buffer, uint32 src_buffer_size) override; |
+ skia::RefPtr<skia::VectorCanvas> GetVectorCanvasForNewPage( |
+ const gfx::Size& page_size, const gfx::Rect& content_area, |
+ const float& scale_factor) override; |
+ |
+ // Deprecated. Please use GetVectorCanvasForNewPage(). |
Vitaly Buka (NO REVIEWS)
2014/11/03 19:57:02
I guess we are going to remove that soon after rol
hal.canary
2014/11/04 15:30:35
Done.
|
SkBaseDevice* StartPageForVectorCanvas(const gfx::Size& page_size, |
const gfx::Rect& content_area, |
const float& scale_factor) override; |
@@ -69,15 +74,14 @@ class PRINTING_EXPORT PdfMetafileSkia : public Metafile { |
bool SaveToFD(const base::FileDescriptor& fd) const; |
#endif // if defined(OS_CHROMEOS) || defined(OS_ANDROID) |
- // Return a new metafile containing just the current page in draft mode. |
+ // Return a new metafile containing just the current page. |
scoped_ptr<PdfMetafileSkia> GetMetafileForCurrentPage(); |
+ bool SaveTo(base::File* file) const override; |
+ |
private: |
scoped_ptr<PdfMetafileSkiaData> data_; |
- // True when finish page is outstanding for current page. |
- bool page_outstanding_; |
- |
DISALLOW_COPY_AND_ASSIGN(PdfMetafileSkia); |
}; |