OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 CHROME_COMMON_GFX_EMF_H__ | 5 #ifndef PRINTING_EMF_WIN_H__ |
6 #define CHROME_COMMON_GFX_EMF_H__ | 6 #define PRINTING_EMF_WIN_H__ |
7 | 7 |
8 #include <windows.h> | 8 #include <windows.h> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
11 #include "base/basictypes.h" | 11 #include "base/basictypes.h" |
12 | 12 |
13 namespace gfx { | 13 namespace gfx { |
| 14 class Rect; |
| 15 } |
14 | 16 |
15 class Rect; | 17 namespace printing { |
16 | 18 |
17 // Simple wrapper class that manage an EMF data stream and its virtual HDC. | 19 // Simple wrapper class that manage an EMF data stream and its virtual HDC. |
18 class Emf { | 20 class Emf { |
19 public: | 21 public: |
20 class Record; | 22 class Record; |
21 class Enumerator; | 23 class Enumerator; |
22 struct EnumerationContext; | 24 struct EnumerationContext; |
23 | 25 |
24 Emf(); | 26 Emf(); |
25 ~Emf(); | 27 ~Emf(); |
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
167 // The collection of every EMF records in the currently loaded EMF buffer. | 169 // The collection of every EMF records in the currently loaded EMF buffer. |
168 // Initialized by Enumerate(). It keeps pointers to the EMF buffer held by | 170 // Initialized by Enumerate(). It keeps pointers to the EMF buffer held by |
169 // Emf::emf_. The entries become invalid once Emf::CloseEmf() is called. | 171 // Emf::emf_. The entries become invalid once Emf::CloseEmf() is called. |
170 std::vector<Record> items_; | 172 std::vector<Record> items_; |
171 | 173 |
172 EnumerationContext context_; | 174 EnumerationContext context_; |
173 | 175 |
174 DISALLOW_EVIL_CONSTRUCTORS(Enumerator); | 176 DISALLOW_EVIL_CONSTRUCTORS(Enumerator); |
175 }; | 177 }; |
176 | 178 |
177 } // namespace gfx | 179 } // namespace printing |
178 | 180 |
179 #endif // CHROME_COMMON_GFX_EMF_H__ | 181 #endif // PRINTING_EMF_WIN_H__ |
OLD | NEW |