diff options
author | sanjeevr@chromium.org <sanjeevr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-09-29 21:39:45 +0000 |
---|---|---|
committer | sanjeevr@chromium.org <sanjeevr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-09-29 21:39:45 +0000 |
commit | e6cddc57b52f1d9fc848d76f7b2825add49f62bd (patch) | |
tree | c430ba0ee3cfb943efc3d293ee91ca3353d1ff2e /printing/emf_win.h | |
parent | 1c608a40c01d1529840126b0af6cdcea286949b1 (diff) | |
download | chromium_src-e6cddc57b52f1d9fc848d76f7b2825add49f62bd.zip chromium_src-e6cddc57b52f1d9fc848d76f7b2825add49f62bd.tar.gz chromium_src-e6cddc57b52f1d9fc848d76f7b2825add49f62bd.tar.bz2 |
Added methods to create and read from file-backed metafiles to the Windows Emf class.
BUG=None
TEST=Unittests
Review URL: http://codereview.chromium.org/3538003
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@60994 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'printing/emf_win.h')
-rw-r--r-- | printing/emf_win.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/printing/emf_win.h b/printing/emf_win.h index fc947cb..459886e 100644 --- a/printing/emf_win.h +++ b/printing/emf_win.h @@ -10,6 +10,8 @@ #include "base/basictypes.h" +class FilePath; + namespace gfx { class Rect; } @@ -33,9 +35,15 @@ class Emf { // optional. bool CreateDc(HDC sibling, const RECT* rect); + // Similar to the above method but the metafile is backed by a file. + bool CreateFileBackedDc(HDC sibling, const RECT* rect, const FilePath& path); + // Load a EMF data stream. buffer contains EMF data. bool CreateFromData(const void* buffer, uint32 size); + // Load an EMF file. + bool CreateFromFile(const FilePath& metafile_path); + // TODO(maruel): CreateFromFile(). If ever used. Maybe users would like to // have the ability to save web pages to an EMF file? Afterward, it is easy to // convert to PDF or PS. |