OLD | NEW |
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_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 17 matching lines...) Expand all Loading... |
28 class PdfMetafileCg : public Metafile, public base::ThreadChecker { | 28 class PdfMetafileCg : public Metafile, public base::ThreadChecker { |
29 public: | 29 public: |
30 PdfMetafileCg(); | 30 PdfMetafileCg(); |
31 virtual ~PdfMetafileCg(); | 31 virtual ~PdfMetafileCg(); |
32 | 32 |
33 // Metafile methods. | 33 // Metafile methods. |
34 virtual bool Init(); | 34 virtual bool Init(); |
35 virtual bool InitFromData(const void* src_buffer, uint32 src_buffer_size); | 35 virtual bool InitFromData(const void* src_buffer, uint32 src_buffer_size); |
36 | 36 |
37 // Not implemented on mac. | 37 // Not implemented on mac. |
38 virtual skia::PlatformDevice* StartPageForVectorCanvas( | 38 virtual SkDevice* StartPageForVectorCanvas( |
39 const gfx::Size& page_size, const gfx::Rect& content_area, | 39 const gfx::Size& page_size, const gfx::Rect& content_area, |
40 const float& scale_factor); | 40 const float& scale_factor); |
41 virtual bool StartPage(const gfx::Size& page_size, | 41 virtual bool StartPage(const gfx::Size& page_size, |
42 const gfx::Rect& content_area, | 42 const gfx::Rect& content_area, |
43 const float& scale_factor); | 43 const float& scale_factor); |
44 virtual bool FinishPage(); | 44 virtual bool FinishPage(); |
45 virtual bool FinishDocument(); | 45 virtual bool FinishDocument(); |
46 | 46 |
47 virtual uint32 GetDataSize() const; | 47 virtual uint32 GetDataSize() const; |
48 virtual bool GetData(void* dst_buffer, uint32 dst_buffer_size) const; | 48 virtual bool GetData(void* dst_buffer, uint32 dst_buffer_size) const; |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
83 | 83 |
84 // Whether this instantiation of the PdfMetafileCg owns the thread_pdf_docs. | 84 // Whether this instantiation of the PdfMetafileCg owns the thread_pdf_docs. |
85 bool thread_pdf_docs_owned_; | 85 bool thread_pdf_docs_owned_; |
86 | 86 |
87 DISALLOW_COPY_AND_ASSIGN(PdfMetafileCg); | 87 DISALLOW_COPY_AND_ASSIGN(PdfMetafileCg); |
88 }; | 88 }; |
89 | 89 |
90 } // namespace printing | 90 } // namespace printing |
91 | 91 |
92 #endif // PRINTING_PDF_METAFILE_CG_MAC_H_ | 92 #endif // PRINTING_PDF_METAFILE_CG_MAC_H_ |
OLD | NEW |