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

Side by Side Diff: printing/emf_win.h

Issue 22796028: Updating Chromium to Skia SkBaseDevice/SkBitmapDevice split (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added TODOs Created 7 years, 3 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
« no previous file with comments | « media/filters/skcanvas_video_renderer_unittest.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) 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
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
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_
OLDNEW
« no previous file with comments | « media/filters/skcanvas_video_renderer_unittest.cc ('k') | printing/emf_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698