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

Side by Side Diff: printing/emf_win.h

Issue 6708046: Revert 78812 - Unfork VectorPlatformCanvas. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 9 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/print_web_view_helper_win.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) 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_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 #include <vector> 9 #include <vector>
10 10
(...skipping 17 matching lines...) Expand all
28 class Record; 28 class Record;
29 class Enumerator; 29 class Enumerator;
30 struct EnumerationContext; 30 struct EnumerationContext;
31 31
32 virtual ~Emf(); 32 virtual ~Emf();
33 33
34 // NativeMetafile methods. 34 // NativeMetafile methods.
35 virtual bool Init() { return true; } 35 virtual bool Init() { return true; }
36 virtual bool InitFromData(const void* src_buffer, uint32 src_buffer_size); 36 virtual bool InitFromData(const void* src_buffer, uint32 src_buffer_size);
37 37
38 virtual skia::PlatformDevice* StartPageForVectorCanvas(
39 const gfx::Size& page_size, const gfx::Point& content_origin,
40 const float& scale_factor);
41 // Inserts a custom GDICOMMENT records indicating StartPage/EndPage calls 38 // Inserts a custom GDICOMMENT records indicating StartPage/EndPage calls
42 // (since StartPage and EndPage do not work in a metafile DC). Only valid 39 // (since StartPage and EndPage do not work in a metafile DC). Only valid
43 // when hdc_ is non-NULL. |page_size| and |content_origin| are ignored. 40 // when hdc_ is non-NULL. |page_size| and |content_origin| are ignored.
44 // |scale_factor| must be 1.0. 41 // |scale_factor| must be 1.0.
45 virtual bool StartPage(const gfx::Size& page_size, 42 virtual bool StartPage(const gfx::Size& page_size,
46 const gfx::Point& content_origin, 43 const gfx::Point& content_origin,
47 const float& scale_factor); 44 const float& scale_factor);
48 virtual bool FinishPage(); 45 virtual bool FinishPage();
49 virtual bool FinishDocument(); 46 virtual bool FinishDocument();
50 47
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
175 std::vector<Record> items_; 172 std::vector<Record> items_;
176 173
177 EnumerationContext context_; 174 EnumerationContext context_;
178 175
179 DISALLOW_COPY_AND_ASSIGN(Enumerator); 176 DISALLOW_COPY_AND_ASSIGN(Enumerator);
180 }; 177 };
181 178
182 } // namespace printing 179 } // namespace printing
183 180
184 #endif // PRINTING_EMF_WIN_H_ 181 #endif // PRINTING_EMF_WIN_H_
OLDNEW
« no previous file with comments | « chrome/renderer/print_web_view_helper_win.cc ('k') | printing/emf_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698