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_SKIA_H_ | 5 #ifndef PRINTING_PDF_METAFILE_SKIA_H_ |
6 #define PRINTING_PDF_METAFILE_SKIA_H_ | 6 #define PRINTING_PDF_METAFILE_SKIA_H_ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "base/logging.h" | 9 #include "base/logging.h" |
10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
11 #include "build/build_config.h" | 11 #include "build/build_config.h" |
12 #include "printing/metafile.h" | 12 #include "printing/metafile.h" |
13 | 13 |
14 #if defined(OS_WIN) | 14 #if defined(OS_WIN) |
15 #include <windows.h> | 15 #include <windows.h> |
16 #endif | 16 #endif |
17 | 17 |
18 namespace printing { | 18 namespace printing { |
19 | 19 |
20 struct PdfMetafileSkiaData; | 20 struct PdfMetafileSkiaData; |
21 | 21 |
22 // This class uses Skia graphics library to generate a PDF document. | 22 // This class uses Skia graphics library to generate a PDF document. |
23 class PdfMetafileSkia : public Metafile { | 23 class PRINTING_EXPORT PdfMetafileSkia : public Metafile { |
24 public: | 24 public: |
25 PdfMetafileSkia(); | 25 PdfMetafileSkia(); |
26 virtual ~PdfMetafileSkia(); | 26 virtual ~PdfMetafileSkia(); |
27 | 27 |
28 // Metafile methods. | 28 // Metafile methods. |
29 virtual bool Init(); | 29 virtual bool Init(); |
30 virtual bool InitFromData(const void* src_buffer, uint32 src_buffer_size); | 30 virtual bool InitFromData(const void* src_buffer, uint32 src_buffer_size); |
31 | 31 |
32 virtual SkDevice* StartPageForVectorCanvas( | 32 virtual SkDevice* StartPageForVectorCanvas( |
33 const gfx::Size& page_size, | 33 const gfx::Size& page_size, |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
76 | 76 |
77 // True when finish page is outstanding for current page. | 77 // True when finish page is outstanding for current page. |
78 bool page_outstanding_; | 78 bool page_outstanding_; |
79 | 79 |
80 DISALLOW_COPY_AND_ASSIGN(PdfMetafileSkia); | 80 DISALLOW_COPY_AND_ASSIGN(PdfMetafileSkia); |
81 }; | 81 }; |
82 | 82 |
83 } // namespace printing | 83 } // namespace printing |
84 | 84 |
85 #endif // PRINTING_PDF_METAFILE_SKIA_H_ | 85 #endif // PRINTING_PDF_METAFILE_SKIA_H_ |
OLD | NEW |