| 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 |
| 11 #include "base/basictypes.h" | 11 #include "base/basictypes.h" |
| 12 #include "base/gtest_prod_util.h" | 12 #include "base/gtest_prod_util.h" |
| 13 #include "base/mac/scoped_cftyperef.h" | 13 #include "base/mac/scoped_cftyperef.h" |
| 14 #include "base/threading/thread_checker.h" | 14 #include "base/threading/thread_checker.h" |
| 15 #include "printing/metafile.h" | 15 #include "printing/metafile.h" |
| 16 | 16 |
| 17 class FilePath; | 17 class FilePath; |
| 18 | 18 |
| 19 namespace gfx { | 19 namespace gfx { |
| 20 class Rect; | 20 class Rect; |
| 21 class Size; | 21 class Size; |
| 22 class Point; | |
| 23 } | 22 } |
| 24 | 23 |
| 25 namespace printing { | 24 namespace printing { |
| 26 | 25 |
| 27 // 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. |
| 28 class PRINTING_EXPORT PdfMetafileCg : public Metafile { | 27 class PRINTING_EXPORT PdfMetafileCg : public Metafile { |
| 29 public: | 28 public: |
| 30 PdfMetafileCg(); | 29 PdfMetafileCg(); |
| 31 virtual ~PdfMetafileCg(); | 30 virtual ~PdfMetafileCg(); |
| 32 | 31 |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 85 | 84 |
| 86 // Whether this instantiation of the PdfMetafileCg owns the thread_pdf_docs. | 85 // Whether this instantiation of the PdfMetafileCg owns the thread_pdf_docs. |
| 87 bool thread_pdf_docs_owned_; | 86 bool thread_pdf_docs_owned_; |
| 88 | 87 |
| 89 DISALLOW_COPY_AND_ASSIGN(PdfMetafileCg); | 88 DISALLOW_COPY_AND_ASSIGN(PdfMetafileCg); |
| 90 }; | 89 }; |
| 91 | 90 |
| 92 } // namespace printing | 91 } // namespace printing |
| 93 | 92 |
| 94 #endif // PRINTING_PDF_METAFILE_CG_MAC_H_ | 93 #endif // PRINTING_PDF_METAFILE_CG_MAC_H_ |
| OLD | NEW |