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_EMF_WIN_H_ | 5 #ifndef PRINTING_EMF_WIN_H_ |
6 #define PRINTING_EMF_WIN_H_ | 6 #define PRINTING_EMF_WIN_H_ |
7 | 7 |
8 #include <windows.h> | 8 #include <windows.h> |
9 | 9 |
10 #include <vector> | 10 #include <vector> |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
47 virtual bool InitToFile(const base::FilePath& metafile_path); | 47 virtual bool InitToFile(const base::FilePath& metafile_path); |
48 | 48 |
49 // Initializes the Emf with the data in |metafile_path|. | 49 // Initializes the Emf with the data in |metafile_path|. |
50 virtual bool InitFromFile(const base::FilePath& metafile_path); | 50 virtual bool InitFromFile(const base::FilePath& metafile_path); |
51 | 51 |
52 // Metafile methods. | 52 // Metafile methods. |
53 virtual bool Init() OVERRIDE; | 53 virtual bool Init() OVERRIDE; |
54 virtual bool InitFromData(const void* src_buffer, | 54 virtual bool InitFromData(const void* src_buffer, |
55 uint32 src_buffer_size) OVERRIDE; | 55 uint32 src_buffer_size) OVERRIDE; |
56 | 56 |
57 virtual SkDevice* StartPageForVectorCanvas( | 57 virtual SkBaseDevice* StartPageForVectorCanvas( |
58 const gfx::Size& page_size, const gfx::Rect& content_area, | 58 const gfx::Size& page_size, const gfx::Rect& content_area, |
59 const float& scale_factor) OVERRIDE; | 59 const float& scale_factor) OVERRIDE; |
60 // Inserts a custom GDICOMMENT records indicating StartPage/EndPage calls | 60 // Inserts a custom GDICOMMENT records indicating StartPage/EndPage calls |
61 // (since StartPage and EndPage do not work in a metafile DC). Only valid | 61 // (since StartPage and EndPage do not work in a metafile DC). Only valid |
62 // when hdc_ is non-NULL. |page_size|, |content_area|, and |scale_factor| are | 62 // when hdc_ is non-NULL. |page_size|, |content_area|, and |scale_factor| are |
63 // ignored. | 63 // ignored. |
64 virtual bool StartPage(const gfx::Size& page_size, | 64 virtual bool StartPage(const gfx::Size& page_size, |
65 const gfx::Rect& content_area, | 65 const gfx::Rect& content_area, |
66 const float& scale_factor) OVERRIDE; | 66 const float& scale_factor) OVERRIDE; |
67 virtual bool FinishPage() OVERRIDE; | 67 virtual bool FinishPage() OVERRIDE; |
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
198 std::vector<Record> items_; | 198 std::vector<Record> items_; |
199 | 199 |
200 EnumerationContext context_; | 200 EnumerationContext context_; |
201 | 201 |
202 DISALLOW_COPY_AND_ASSIGN(Enumerator); | 202 DISALLOW_COPY_AND_ASSIGN(Enumerator); |
203 }; | 203 }; |
204 | 204 |
205 } // namespace printing | 205 } // namespace printing |
206 | 206 |
207 #endif // PRINTING_EMF_WIN_H_ | 207 #endif // PRINTING_EMF_WIN_H_ |
OLD | NEW |