| 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_MAC_H_ | 5 #ifndef PRINTING_PDF_METAFILE_MAC_H_ |
| 6 #define PRINTING_PDF_METAFILE_MAC_H_ | 6 #define PRINTING_PDF_METAFILE_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 15 matching lines...) Expand all Loading... |
| 26 // This class creates a graphics context that renders into a PDF data stream. | 26 // This class creates a graphics context that renders into a PDF data stream. |
| 27 class PdfMetafile : public NativeMetafile { | 27 class PdfMetafile : public NativeMetafile { |
| 28 public: | 28 public: |
| 29 | 29 |
| 30 virtual ~PdfMetafile(); | 30 virtual ~PdfMetafile(); |
| 31 | 31 |
| 32 // NativeMetafile methods. | 32 // NativeMetafile 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. | |
| 37 virtual skia::PlatformDevice* StartPageForVectorCanvas( | |
| 38 const gfx::Size& page_size, const gfx::Point& content_origin, | |
| 39 const float& scale_factor); | |
| 40 virtual bool StartPage(const gfx::Size& page_size, | 36 virtual bool StartPage(const gfx::Size& page_size, |
| 41 const gfx::Point& content_origin, | 37 const gfx::Point& content_origin, |
| 42 const float& scale_factor); | 38 const float& scale_factor); |
| 43 virtual bool FinishPage(); | 39 virtual bool FinishPage(); |
| 44 virtual bool FinishDocument(); | 40 virtual bool FinishDocument(); |
| 45 | 41 |
| 46 virtual uint32 GetDataSize() const; | 42 virtual uint32 GetDataSize() const; |
| 47 virtual bool GetData(void* dst_buffer, uint32 dst_buffer_size) const; | 43 virtual bool GetData(void* dst_buffer, uint32 dst_buffer_size) const; |
| 48 | 44 |
| 49 // For testing purposes only. | 45 // For testing purposes only. |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 85 | 81 |
| 86 // Whether or not a page is currently open. | 82 // Whether or not a page is currently open. |
| 87 bool page_is_open_; | 83 bool page_is_open_; |
| 88 | 84 |
| 89 DISALLOW_COPY_AND_ASSIGN(PdfMetafile); | 85 DISALLOW_COPY_AND_ASSIGN(PdfMetafile); |
| 90 }; | 86 }; |
| 91 | 87 |
| 92 } // namespace printing | 88 } // namespace printing |
| 93 | 89 |
| 94 #endif // PRINTING_PDF_METAFILE_MAC_H_ | 90 #endif // PRINTING_PDF_METAFILE_MAC_H_ |
| OLD | NEW |