summaryrefslogtreecommitdiffstats
path: root/printing/emf_win.h
diff options
context:
space:
mode:
authorsanjeevr@chromium.org <sanjeevr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-07-12 16:25:04 +0000
committersanjeevr@chromium.org <sanjeevr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-07-12 16:25:04 +0000
commit2aa8e1835e136a1979210121cca1b68f25187a66 (patch)
tree229a5abbc11360cca47c8ed128f8d46f927c3059 /printing/emf_win.h
parent98a94ee562ef36213099a153ca6f3fa4b3b5d09c (diff)
downloadchromium_src-2aa8e1835e136a1979210121cca1b68f25187a66.zip
chromium_src-2aa8e1835e136a1979210121cca1b68f25187a66.tar.gz
chromium_src-2aa8e1835e136a1979210121cca1b68f25187a66.tar.bz2
Added StartPage and EndPage methods to the Emf class because the GDI StartPage and EndPage APIs do not work in a metafile DC. We write custom GDICOMMENT records to designate a StartPage and EndPage.
BUG=None TEST=Unit-tests provided. Review URL: http://codereview.chromium.org/2947006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@52084 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'printing/emf_win.h')
-rw-r--r--printing/emf_win.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/printing/emf_win.h b/printing/emf_win.h
index 9f3dffe..9581d77 100644
--- a/printing/emf_win.h
+++ b/printing/emf_win.h
@@ -84,6 +84,12 @@ class Emf {
return hdc_;
}
+ // Inserts a custom GDICOMMENT records indicating StartPage/EndPage calls
+ // (since StartPage and EndPage do not work in a metafile DC). Only valid
+ // when hdc_ is non-NULL.
+ bool StartPage();
+ bool EndPage();
+
// Saves the EMF data to a file as-is. It is recommended to use the .emf file
// extension but it is not enforced. This function synchronously writes to the
// file. For testing only.