summaryrefslogtreecommitdiffstats
path: root/printing/emf_win.h
diff options
context:
space:
mode:
authorjhawkins@chromium.org <jhawkins@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-10-07 20:11:24 +0000
committerjhawkins@chromium.org <jhawkins@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-10-07 20:11:24 +0000
commite8980a56e8dcc4657cd1304665c0c03ff44d20c2 (patch)
treed1c65e184609602981383b17ebaef868c99b499b /printing/emf_win.h
parent368ddad78d3f2eac1ea7a92cfb9716ecd0166279 (diff)
downloadchromium_src-e8980a56e8dcc4657cd1304665c0c03ff44d20c2.zip
chromium_src-e8980a56e8dcc4657cd1304665c0c03ff44d20c2.tar.gz
chromium_src-e8980a56e8dcc4657cd1304665c0c03ff44d20c2.tar.bz2
Printing: Standardize on Metafile::Init, removing Emf::CreateFromData in the
process and any ifdefs needed for this. BUG=none TEST=none Review URL: http://codereview.chromium.org/3595016 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@61834 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'printing/emf_win.h')
-rw-r--r--printing/emf_win.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/printing/emf_win.h b/printing/emf_win.h
index 459886e..f8a0558 100644
--- a/printing/emf_win.h
+++ b/printing/emf_win.h
@@ -28,6 +28,9 @@ class Emf {
Emf();
~Emf();
+ // Initializes the Emf with the data in |src_buffer|. Returns true on success.
+ bool Init(const void* src_buffer, uint32 src_buffer_size);
+
// Generates a virtual HDC that will record every GDI commands and compile it
// in a EMF data stream.
// hdc is used to setup the default DPI and color settings. hdc is optional.
@@ -38,9 +41,6 @@ class Emf {
// 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);