| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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_PS_METAFILE_CAIRO_H_ | 5 #ifndef PRINTING_PDF_PS_METAFILE_CAIRO_H_ |
| 6 #define PRINTING_PDF_PS_METAFILE_CAIRO_H_ | 6 #define PRINTING_PDF_PS_METAFILE_CAIRO_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| 11 | 11 |
| 12 typedef struct _cairo_surface cairo_surface_t; | 12 typedef struct _cairo_surface cairo_surface_t; |
| 13 typedef struct _cairo cairo_t; | 13 typedef struct _cairo cairo_t; |
| 14 | 14 |
| 15 namespace base { | 15 namespace base { |
| 16 class FileDescriptor; | 16 struct FileDescriptor; |
| 17 } | 17 } |
| 18 | 18 |
| 19 class FilePath; | 19 class FilePath; |
| 20 | 20 |
| 21 namespace printing { | 21 namespace printing { |
| 22 | 22 |
| 23 // This class uses Cairo graphics library to generate PostScript/PDF stream | 23 // This class uses Cairo graphics library to generate PostScript/PDF stream |
| 24 // and stores rendering results in a string buffer. | 24 // and stores rendering results in a string buffer. |
| 25 class PdfPsMetafile { | 25 class PdfPsMetafile { |
| 26 public: | 26 public: |
| (...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 101 | 101 |
| 102 // Buffer stores PDF/PS contents for current page only. | 102 // Buffer stores PDF/PS contents for current page only. |
| 103 std::string current_page_; | 103 std::string current_page_; |
| 104 | 104 |
| 105 DISALLOW_COPY_AND_ASSIGN(PdfPsMetafile); | 105 DISALLOW_COPY_AND_ASSIGN(PdfPsMetafile); |
| 106 }; | 106 }; |
| 107 | 107 |
| 108 } // namespace printing | 108 } // namespace printing |
| 109 | 109 |
| 110 #endif // PRINTING_PDF_PS_METAFILE_CAIRO_H_ | 110 #endif // PRINTING_PDF_PS_METAFILE_CAIRO_H_ |
| OLD | NEW |