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