| 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 #ifndef PRINTING_PDF_METAFILE_SKIA_H_ | 5 #ifndef PRINTING_PDF_METAFILE_SKIA_H_ |
| 6 #define PRINTING_PDF_METAFILE_SKIA_H_ | 6 #define PRINTING_PDF_METAFILE_SKIA_H_ |
| 7 | 7 |
| 8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "base/logging.h" | 9 #include "base/logging.h" |
| 10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
| (...skipping 12 matching lines...) Expand all Loading... |
| 23 class PRINTING_EXPORT PdfMetafileSkia : public Metafile { | 23 class PRINTING_EXPORT PdfMetafileSkia : public Metafile { |
| 24 public: | 24 public: |
| 25 PdfMetafileSkia(); | 25 PdfMetafileSkia(); |
| 26 virtual ~PdfMetafileSkia(); | 26 virtual ~PdfMetafileSkia(); |
| 27 | 27 |
| 28 // Metafile methods. | 28 // Metafile methods. |
| 29 virtual bool Init() OVERRIDE; | 29 virtual bool Init() OVERRIDE; |
| 30 virtual bool InitFromData(const void* src_buffer, | 30 virtual bool InitFromData(const void* src_buffer, |
| 31 uint32 src_buffer_size) OVERRIDE; | 31 uint32 src_buffer_size) OVERRIDE; |
| 32 | 32 |
| 33 virtual SkDevice* StartPageForVectorCanvas( | 33 virtual SkBaseDevice* StartPageForVectorCanvas( |
| 34 const gfx::Size& page_size, | 34 const gfx::Size& page_size, |
| 35 const gfx::Rect& content_area, | 35 const gfx::Rect& content_area, |
| 36 const float& scale_factor) OVERRIDE; | 36 const float& scale_factor) OVERRIDE; |
| 37 | 37 |
| 38 virtual bool StartPage(const gfx::Size& page_size, | 38 virtual bool StartPage(const gfx::Size& page_size, |
| 39 const gfx::Rect& content_area, | 39 const gfx::Rect& content_area, |
| 40 const float& scale_factor) OVERRIDE; | 40 const float& scale_factor) OVERRIDE; |
| 41 virtual bool FinishPage() OVERRIDE; | 41 virtual bool FinishPage() OVERRIDE; |
| 42 virtual bool FinishDocument() OVERRIDE; | 42 virtual bool FinishDocument() OVERRIDE; |
| 43 | 43 |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 75 | 75 |
| 76 // True when finish page is outstanding for current page. | 76 // True when finish page is outstanding for current page. |
| 77 bool page_outstanding_; | 77 bool page_outstanding_; |
| 78 | 78 |
| 79 DISALLOW_COPY_AND_ASSIGN(PdfMetafileSkia); | 79 DISALLOW_COPY_AND_ASSIGN(PdfMetafileSkia); |
| 80 }; | 80 }; |
| 81 | 81 |
| 82 } // namespace printing | 82 } // namespace printing |
| 83 | 83 |
| 84 #endif // PRINTING_PDF_METAFILE_SKIA_H_ | 84 #endif // PRINTING_PDF_METAFILE_SKIA_H_ |
| OLD | NEW |