| 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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 46 | 46 |
| 47 uint32 GetDataSize() const override; | 47 uint32 GetDataSize() const override; |
| 48 bool GetData(void* dst_buffer, uint32 dst_buffer_size) const override; | 48 bool GetData(void* dst_buffer, uint32 dst_buffer_size) const override; |
| 49 | 49 |
| 50 gfx::Rect GetPageBounds(unsigned int page_number) const override; | 50 gfx::Rect GetPageBounds(unsigned int page_number) const override; |
| 51 unsigned int GetPageCount() const override; | 51 unsigned int GetPageCount() const override; |
| 52 | 52 |
| 53 gfx::NativeDrawingContext context() const override; | 53 gfx::NativeDrawingContext context() const override; |
| 54 | 54 |
| 55 #if defined(OS_WIN) | 55 #if defined(OS_WIN) |
| 56 virtual bool Playback(gfx::NativeDrawingContext hdc, | 56 bool Playback(gfx::NativeDrawingContext hdc, |
| 57 const RECT* rect) const override; | 57 const RECT* rect) const override; |
| 58 virtual bool SafePlayback(gfx::NativeDrawingContext hdc) const override; | 58 bool SafePlayback(gfx::NativeDrawingContext hdc) const override; |
| 59 #elif defined(OS_MACOSX) | 59 #elif defined(OS_MACOSX) |
| 60 bool RenderPage(unsigned int page_number, | 60 bool RenderPage(unsigned int page_number, |
| 61 gfx::NativeDrawingContext context, | 61 gfx::NativeDrawingContext context, |
| 62 const CGRect rect, | 62 const CGRect rect, |
| 63 const MacRenderPageParams& params) const override; | 63 const MacRenderPageParams& params) const override; |
| 64 #endif | 64 #endif |
| 65 | 65 |
| 66 bool SaveTo(base::File* file) const override; | 66 bool SaveTo(base::File* file) const override; |
| 67 | 67 |
| 68 #if defined(OS_CHROMEOS) || defined(OS_ANDROID) | 68 #if defined(OS_CHROMEOS) || defined(OS_ANDROID) |
| (...skipping 16 matching lines...) Expand all Loading... |
| 85 | 85 |
| 86 private: | 86 private: |
| 87 scoped_ptr<PdfMetafileSkiaData> data_; | 87 scoped_ptr<PdfMetafileSkiaData> data_; |
| 88 | 88 |
| 89 DISALLOW_COPY_AND_ASSIGN(PdfMetafileSkia); | 89 DISALLOW_COPY_AND_ASSIGN(PdfMetafileSkia); |
| 90 }; | 90 }; |
| 91 | 91 |
| 92 } // namespace printing | 92 } // namespace printing |
| 93 | 93 |
| 94 #endif // PRINTING_PDF_METAFILE_SKIA_H_ | 94 #endif // PRINTING_PDF_METAFILE_SKIA_H_ |
| OLD | NEW |