Chromium Code Reviews| OLD | NEW |
|---|---|
| 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_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/scoped_ptr.h" | 10 #include "base/scoped_ptr.h" |
| (...skipping 13 matching lines...) Expand all Loading... | |
| 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(); | 29 virtual bool Init(); |
| 30 virtual bool InitFromData(const void* src_buffer, uint32 src_buffer_size); | 30 virtual bool InitFromData(const void* src_buffer, uint32 src_buffer_size); |
| 31 | 31 |
| 32 virtual skia::PlatformDevice* StartPageForVectorCanvas( | 32 virtual skia::PlatformDevice* StartPageForVectorCanvas( |
| 33 const gfx::Size& page_size, | 33 const gfx::Size& page_size, |
| 34 const gfx::Size& content_size, | |
| 34 const gfx::Point& content_origin, | 35 const gfx::Point& content_origin, |
| 35 const float& scale_factor); | 36 const float& scale_factor); |
| 36 virtual bool StartPage(const gfx::Size& page_size, | 37 virtual bool StartPage(const gfx::Size& page_size, |
| 37 const gfx::Point& content_origin, | 38 const gfx::Point& content_origin, |
| 38 const float& scale_factor); | 39 const float& scale_factor); |
| 39 virtual bool FinishPage(); | 40 virtual bool FinishPage(); |
| 40 virtual bool FinishDocument(); | 41 virtual bool FinishDocument(); |
| 41 | 42 |
| 42 virtual uint32 GetDataSize() const; | 43 virtual uint32 GetDataSize() const; |
| 43 virtual bool GetData(void* dst_buffer, uint32 dst_buffer_size) const; | 44 virtual bool GetData(void* dst_buffer, uint32 dst_buffer_size) const; |
| (...skipping 15 matching lines...) Expand all Loading... | |
| 59 virtual bool SaveToFD(const base::FileDescriptor& fd) const; | 60 virtual bool SaveToFD(const base::FileDescriptor& fd) const; |
| 60 #endif // if defined(OS_CHROMEOS) | 61 #endif // if defined(OS_CHROMEOS) |
| 61 private: | 62 private: |
| 62 scoped_ptr<PdfMetafileSkiaData> data_; | 63 scoped_ptr<PdfMetafileSkiaData> data_; |
| 63 | 64 |
| 64 DISALLOW_COPY_AND_ASSIGN(PdfMetafileSkia); | 65 DISALLOW_COPY_AND_ASSIGN(PdfMetafileSkia); |
| 65 }; | 66 }; |
| 66 | 67 |
| 67 } // namespace printing | 68 } // namespace printing |
| 68 | 69 |
| 69 #endif // PRINTING_PDF_METAFILE_MAC_H_ | 70 #endif // PRINTING_PDF_METAFILE_SKIA_H_ |
|
vandebo (ex-Chrome)
2011/04/25 22:11:47
thanks
Chris Guillory
2011/04/25 23:47:12
Np.
| |
| OLD | NEW |