| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 #include "printing/pdf_metafile_cg_mac.h" | 5 #include "printing/pdf_metafile_cg_mac.h" |
| 6 | 6 |
| 7 #include <stdint.h> |
| 8 |
| 7 #include <algorithm> | 9 #include <algorithm> |
| 8 | 10 |
| 9 #include "base/files/file_path.h" | 11 #include "base/files/file_path.h" |
| 10 #include "base/lazy_instance.h" | 12 #include "base/lazy_instance.h" |
| 11 #include "base/logging.h" | 13 #include "base/logging.h" |
| 12 #include "base/mac/mac_util.h" | 14 #include "base/mac/mac_util.h" |
| 13 #include "base/mac/scoped_cftyperef.h" | 15 #include "base/mac/scoped_cftyperef.h" |
| 14 #include "base/strings/sys_string_conversions.h" | 16 #include "base/strings/sys_string_conversions.h" |
| 15 #include "base/threading/thread_local.h" | 17 #include "base/threading/thread_local.h" |
| 16 #include "ui/gfx/geometry/rect.h" | 18 #include "ui/gfx/geometry/rect.h" |
| (...skipping 315 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 332 | 334 |
| 333 if (!pdf_doc_.get()) { | 335 if (!pdf_doc_.get()) { |
| 334 ScopedCFTypeRef<CGDataProviderRef> pdf_data_provider( | 336 ScopedCFTypeRef<CGDataProviderRef> pdf_data_provider( |
| 335 CGDataProviderCreateWithCFData(pdf_data_)); | 337 CGDataProviderCreateWithCFData(pdf_data_)); |
| 336 pdf_doc_.reset(CGPDFDocumentCreateWithProvider(pdf_data_provider)); | 338 pdf_doc_.reset(CGPDFDocumentCreateWithProvider(pdf_data_provider)); |
| 337 } | 339 } |
| 338 return pdf_doc_.get(); | 340 return pdf_doc_.get(); |
| 339 } | 341 } |
| 340 | 342 |
| 341 } // namespace printing | 343 } // namespace printing |
| OLD | NEW |