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

Side by Side Diff: printing/pdf_ps_metafile_cairo.h

Issue 6665046: Unfork VectorPlatformCanvas. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 9 years, 9 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « printing/pdf_metafile_mac.cc ('k') | printing/pdf_ps_metafile_cairo.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef PRINTING_PDF_PS_METAFILE_CAIRO_H_ 5 #ifndef PRINTING_PDF_PS_METAFILE_CAIRO_H_
6 #define PRINTING_PDF_PS_METAFILE_CAIRO_H_ 6 #define PRINTING_PDF_PS_METAFILE_CAIRO_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 13 matching lines...) Expand all
24 // This class uses Cairo graphics library to generate PDF stream and stores 24 // This class uses Cairo graphics library to generate PDF stream and stores
25 // rendering results in a string buffer. 25 // rendering results in a string buffer.
26 class PdfPsMetafile : public NativeMetafile { 26 class PdfPsMetafile : public NativeMetafile {
27 public: 27 public:
28 virtual ~PdfPsMetafile(); 28 virtual ~PdfPsMetafile();
29 29
30 // NativeMetafile methods. 30 // NativeMetafile methods.
31 virtual bool Init(); 31 virtual bool Init();
32 virtual bool InitFromData(const void* src_buffer, uint32 src_buffer_size); 32 virtual bool InitFromData(const void* src_buffer, uint32 src_buffer_size);
33 33
34 virtual skia::PlatformDevice* StartPageForVectorCanvas(
35 const gfx::Size& page_size, const gfx::Point& content_origin,
36 const float& scale_factor);
34 virtual bool StartPage(const gfx::Size& page_size, 37 virtual bool StartPage(const gfx::Size& page_size,
35 const gfx::Point& content_origin, 38 const gfx::Point& content_origin,
36 const float& scale_factor); 39 const float& scale_factor);
37 virtual bool FinishPage(); 40 virtual bool FinishPage();
38 virtual bool Close(); 41 virtual bool Close();
39 42
40 virtual uint32 GetDataSize() const; 43 virtual uint32 GetDataSize() const;
41 virtual bool GetData(void* dst_buffer, uint32 dst_buffer_size) const; 44 virtual bool GetData(void* dst_buffer, uint32 dst_buffer_size) const;
42 45
43 virtual bool SaveTo(const FilePath& file_path) const; 46 virtual bool SaveTo(const FilePath& file_path) const;
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 std::string data_; 78 std::string data_;
76 // Buffer stores raw PDF contents set by SetRawPageData. 79 // Buffer stores raw PDF contents set by SetRawPageData.
77 std::string raw_override_data_; 80 std::string raw_override_data_;
78 81
79 DISALLOW_COPY_AND_ASSIGN(PdfPsMetafile); 82 DISALLOW_COPY_AND_ASSIGN(PdfPsMetafile);
80 }; 83 };
81 84
82 } // namespace printing 85 } // namespace printing
83 86
84 #endif // PRINTING_PDF_PS_METAFILE_CAIRO_H_ 87 #endif // PRINTING_PDF_PS_METAFILE_CAIRO_H_
OLDNEW
« no previous file with comments | « printing/pdf_metafile_mac.cc ('k') | printing/pdf_ps_metafile_cairo.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698