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 public: | 28 public: |
29 PdfMetafileCg(); | 29 PdfMetafileCg(); |
30 virtual ~PdfMetafileCg(); | 30 virtual ~PdfMetafileCg(); |
31 | 31 |
32 // Metafile methods. | 32 // Metafile methods. |
33 virtual bool Init(); | 33 virtual bool Init(); |
34 virtual bool InitFromData(const void* src_buffer, uint32 src_buffer_size); | 34 virtual bool InitFromData(const void* src_buffer, uint32 src_buffer_size); |
35 | 35 |
36 // Not implemented on mac. | 36 // Not implemented on mac. |
37 virtual skia::PlatformDevice* StartPageForVectorCanvas( | 37 virtual skia::PlatformDevice* StartPageForVectorCanvas( |
38 const gfx::Size& page_size, const gfx::Point& content_origin, | 38 const gfx::Size& page_size, const gfx::Rect& content_area, |
39 const float& scale_factor); | 39 const float& scale_factor); |
40 virtual bool StartPage(const gfx::Size& page_size, | 40 virtual bool StartPage(const gfx::Size& page_size, |
41 const gfx::Point& content_origin, | 41 const gfx::Rect& content_area, |
42 const float& scale_factor); | 42 const float& scale_factor); |
43 virtual bool FinishPage(); | 43 virtual bool FinishPage(); |
44 virtual bool FinishDocument(); | 44 virtual bool FinishDocument(); |
45 | 45 |
46 virtual uint32 GetDataSize() const; | 46 virtual uint32 GetDataSize() const; |
47 virtual bool GetData(void* dst_buffer, uint32 dst_buffer_size) const; | 47 virtual bool GetData(void* dst_buffer, uint32 dst_buffer_size) const; |
48 | 48 |
49 // For testing purposes only. | 49 // For testing purposes only. |
50 virtual bool SaveTo(const FilePath& file_path) const; | 50 virtual bool SaveTo(const FilePath& file_path) const; |
51 | 51 |
(...skipping 27 matching lines...) Expand all Loading... |
79 | 79 |
80 // Whether or not a page is currently open. | 80 // Whether or not a page is currently open. |
81 bool page_is_open_; | 81 bool page_is_open_; |
82 | 82 |
83 DISALLOW_COPY_AND_ASSIGN(PdfMetafileCg); | 83 DISALLOW_COPY_AND_ASSIGN(PdfMetafileCg); |
84 }; | 84 }; |
85 | 85 |
86 } // namespace printing | 86 } // namespace printing |
87 | 87 |
88 #endif // PRINTING_PDF_METAFILE_CG_MAC_H_ | 88 #endif // PRINTING_PDF_METAFILE_CG_MAC_H_ |
OLD | NEW |