Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(304)

Side by Side Diff: printing/emf_win.h

Issue 149181: Move Emf class to the printing library. Also creates a platform agnostic Nat... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/renderer/webplugin_delegate_proxy.cc ('k') | printing/emf_win.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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__
OLDNEW
« no previous file with comments | « chrome/renderer/webplugin_delegate_proxy.cc ('k') | printing/emf_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698