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

Side by Side Diff: printing/pdf_metafile_cg_mac.h

Issue 697373004: Moved StartPageForVectorCanvas from Metafile to PdfMetafileSkia. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Tue Nov 4 10:41:42 PST 2014 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 unified diff | Download patch
« no previous file with comments | « printing/metafile.h ('k') | printing/pdf_metafile_cg_mac.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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_METAFILE_CG_MAC_H_ 5 #ifndef PRINTING_PDF_METAFILE_CG_MAC_H_
6 #define PRINTING_PDF_METAFILE_CG_MAC_H_ 6 #define PRINTING_PDF_METAFILE_CG_MAC_H_
7 7
8 #include <ApplicationServices/ApplicationServices.h> 8 #include <ApplicationServices/ApplicationServices.h>
9 #include <CoreFoundation/CoreFoundation.h> 9 #include <CoreFoundation/CoreFoundation.h>
10 10
(...skipping 18 matching lines...) Expand all
29 class PRINTING_EXPORT PdfMetafileCg : public Metafile { 29 class PRINTING_EXPORT PdfMetafileCg : public Metafile {
30 public: 30 public:
31 PdfMetafileCg(); 31 PdfMetafileCg();
32 ~PdfMetafileCg() override; 32 ~PdfMetafileCg() override;
33 33
34 // Metafile methods. 34 // Metafile methods.
35 bool Init() override; 35 bool Init() override;
36 bool InitFromData(const void* src_buffer, uint32 src_buffer_size) override; 36 bool InitFromData(const void* src_buffer, uint32 src_buffer_size) override;
37 37
38 // Not implemented on mac. 38 // Not implemented on mac.
39 SkBaseDevice* StartPageForVectorCanvas(const gfx::Size& page_size,
40 const gfx::Rect& content_area,
41 const float& scale_factor) override;
42 bool StartPage(const gfx::Size& page_size, 39 bool StartPage(const gfx::Size& page_size,
43 const gfx::Rect& content_area, 40 const gfx::Rect& content_area,
44 const float& scale_factor) override; 41 const float& scale_factor) override;
45 bool FinishPage() override; 42 bool FinishPage() override;
46 bool FinishDocument() override; 43 bool FinishDocument() override;
47 44
48 uint32 GetDataSize() const override; 45 uint32 GetDataSize() const override;
49 bool GetData(void* dst_buffer, uint32 dst_buffer_size) const override; 46 bool GetData(void* dst_buffer, uint32 dst_buffer_size) const override;
50 47
51 gfx::Rect GetPageBounds(unsigned int page_number) const override; 48 gfx::Rect GetPageBounds(unsigned int page_number) const override;
(...skipping 28 matching lines...) Expand all
80 77
81 // Whether this instantiation of the PdfMetafileCg owns the thread_pdf_docs. 78 // Whether this instantiation of the PdfMetafileCg owns the thread_pdf_docs.
82 bool thread_pdf_docs_owned_; 79 bool thread_pdf_docs_owned_;
83 80
84 DISALLOW_COPY_AND_ASSIGN(PdfMetafileCg); 81 DISALLOW_COPY_AND_ASSIGN(PdfMetafileCg);
85 }; 82 };
86 83
87 } // namespace printing 84 } // namespace printing
88 85
89 #endif // PRINTING_PDF_METAFILE_CG_MAC_H_ 86 #endif // PRINTING_PDF_METAFILE_CG_MAC_H_
OLDNEW
« no previous file with comments | « printing/metafile.h ('k') | printing/pdf_metafile_cg_mac.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698