Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(245)

Side by Side Diff: printing/pdf_metafile_mac.cc

Issue 6312156: Change includes of gfx/* to ui/gfx/* (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « printing/page_setup.h ('k') | printing/pdf_metafile_mac_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 #include "printing/pdf_metafile_mac.h" 5 #include "printing/pdf_metafile_mac.h"
6 6
7 #include "base/file_path.h" 7 #include "base/file_path.h"
8 #include "base/logging.h" 8 #include "base/logging.h"
9 #include "base/mac/scoped_cftyperef.h" 9 #include "base/mac/scoped_cftyperef.h"
10 #include "base/sys_string_conversions.h" 10 #include "base/sys_string_conversions.h"
11 #include "gfx/rect.h" 11 #include "ui/gfx/rect.h"
12 12
13 using base::mac::ScopedCFTypeRef; 13 using base::mac::ScopedCFTypeRef;
14 14
15 namespace printing { 15 namespace printing {
16 16
17 PdfMetafile::PdfMetafile() 17 PdfMetafile::PdfMetafile()
18 : page_is_open_(false) { 18 : page_is_open_(false) {
19 } 19 }
20 20
21 CGContextRef PdfMetafile::Init() { 21 CGContextRef PdfMetafile::Init() {
(...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after
228 228
229 if (!pdf_doc_.get()) { 229 if (!pdf_doc_.get()) {
230 ScopedCFTypeRef<CGDataProviderRef> pdf_data_provider( 230 ScopedCFTypeRef<CGDataProviderRef> pdf_data_provider(
231 CGDataProviderCreateWithCFData(pdf_data_)); 231 CGDataProviderCreateWithCFData(pdf_data_));
232 pdf_doc_.reset(CGPDFDocumentCreateWithProvider(pdf_data_provider)); 232 pdf_doc_.reset(CGPDFDocumentCreateWithProvider(pdf_data_provider));
233 } 233 }
234 return pdf_doc_.get(); 234 return pdf_doc_.get();
235 } 235 }
236 236
237 } // namespace printing 237 } // namespace printing
OLDNEW
« no previous file with comments | « printing/page_setup.h ('k') | printing/pdf_metafile_mac_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698