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 26 matching lines...) Expand all Loading... |
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 |
44 virtual uint32 GetDataSize() const OVERRIDE; | 44 virtual uint32 GetDataSize() const OVERRIDE; |
45 virtual bool GetData(void* dst_buffer, uint32 dst_buffer_size) const OVERRIDE; | 45 virtual bool GetData(void* dst_buffer, uint32 dst_buffer_size) const OVERRIDE; |
46 | 46 |
47 virtual bool SaveTo(const FilePath& file_path) const OVERRIDE; | 47 virtual bool SaveTo(const base::FilePath& file_path) const OVERRIDE; |
48 | 48 |
49 virtual gfx::Rect GetPageBounds(unsigned int page_number) const OVERRIDE; | 49 virtual gfx::Rect GetPageBounds(unsigned int page_number) const OVERRIDE; |
50 virtual unsigned int GetPageCount() const OVERRIDE; | 50 virtual unsigned int GetPageCount() const OVERRIDE; |
51 | 51 |
52 virtual gfx::NativeDrawingContext context() const OVERRIDE; | 52 virtual gfx::NativeDrawingContext context() const OVERRIDE; |
53 | 53 |
54 #if defined(OS_WIN) | 54 #if defined(OS_WIN) |
55 virtual bool Playback(gfx::NativeDrawingContext hdc, | 55 virtual bool Playback(gfx::NativeDrawingContext hdc, |
56 const RECT* rect) const OVERRIDE; | 56 const RECT* rect) const OVERRIDE; |
57 virtual bool SafePlayback(gfx::NativeDrawingContext hdc) const OVERRIDE; | 57 virtual bool SafePlayback(gfx::NativeDrawingContext hdc) const OVERRIDE; |
(...skipping 17 matching lines...) Expand all 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 |