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

Side by Side Diff: printing/pdf_metafile_cg_mac.h

Issue 7019013: Removal of dependencies on PlatformDevice classes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Syncing merge conflicts. Created 9 years, 7 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/pdf_metafile_cairo_linux.cc ('k') | printing/pdf_metafile_cg_mac.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) 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
(...skipping 17 matching lines...) Expand all
28 class PdfMetafileCg : public Metafile, public base::ThreadChecker { 28 class PdfMetafileCg : public Metafile, public base::ThreadChecker {
29 public: 29 public:
30 PdfMetafileCg(); 30 PdfMetafileCg();
31 virtual ~PdfMetafileCg(); 31 virtual ~PdfMetafileCg();
32 32
33 // Metafile methods. 33 // Metafile methods.
34 virtual bool Init(); 34 virtual bool Init();
35 virtual bool InitFromData(const void* src_buffer, uint32 src_buffer_size); 35 virtual bool InitFromData(const void* src_buffer, uint32 src_buffer_size);
36 36
37 // Not implemented on mac. 37 // Not implemented on mac.
38 virtual skia::PlatformDevice* StartPageForVectorCanvas( 38 virtual SkDevice* StartPageForVectorCanvas(
39 const gfx::Size& page_size, const gfx::Rect& content_area, 39 const gfx::Size& page_size, const gfx::Rect& content_area,
40 const float& scale_factor); 40 const float& scale_factor);
41 virtual bool StartPage(const gfx::Size& page_size, 41 virtual bool StartPage(const gfx::Size& page_size,
42 const gfx::Rect& content_area, 42 const gfx::Rect& content_area,
43 const float& scale_factor); 43 const float& scale_factor);
44 virtual bool FinishPage(); 44 virtual bool FinishPage();
45 virtual bool FinishDocument(); 45 virtual bool FinishDocument();
46 46
47 virtual uint32 GetDataSize() const; 47 virtual uint32 GetDataSize() const;
48 virtual bool GetData(void* dst_buffer, uint32 dst_buffer_size) const; 48 virtual bool GetData(void* dst_buffer, uint32 dst_buffer_size) const;
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 83
84 // Whether this instantiation of the PdfMetafileCg owns the thread_pdf_docs. 84 // Whether this instantiation of the PdfMetafileCg owns the thread_pdf_docs.
85 bool thread_pdf_docs_owned_; 85 bool thread_pdf_docs_owned_;
86 86
87 DISALLOW_COPY_AND_ASSIGN(PdfMetafileCg); 87 DISALLOW_COPY_AND_ASSIGN(PdfMetafileCg);
88 }; 88 };
89 89
90 } // namespace printing 90 } // namespace printing
91 91
92 #endif // PRINTING_PDF_METAFILE_CG_MAC_H_ 92 #endif // PRINTING_PDF_METAFILE_CG_MAC_H_
OLDNEW
« no previous file with comments | « printing/pdf_metafile_cairo_linux.cc ('k') | printing/pdf_metafile_cg_mac.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698