summaryrefslogtreecommitdiffstats
path: root/printing/printed_document_win.cc
diff options
context:
space:
mode:
authorthestig@chromium.org <thestig@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-03-16 18:45:02 +0000
committerthestig@chromium.org <thestig@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-03-16 18:45:02 +0000
commitaf55ed545c8983a913f172c039740252b155c60f (patch)
treebfa2fcd7cf43d784de2ea801011e42c0563f36b1 /printing/printed_document_win.cc
parent32a1d6f49bbbe0449267e4f386964b9c9af6099d (diff)
downloadchromium_src-af55ed545c8983a913f172c039740252b155c60f.zip
chromium_src-af55ed545c8983a913f172c039740252b155c60f.tar.gz
chromium_src-af55ed545c8983a913f172c039740252b155c60f.tar.bz2
Printing: Disable printing the header/footer on Windows.
BUG=none TEST=Print output on Windows no longer includes header/footer. Review URL: http://codereview.chromium.org/6682034 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@78403 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'printing/printed_document_win.cc')
-rw-r--r--printing/printed_document_win.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/printing/printed_document_win.cc b/printing/printed_document_win.cc
index 938e2b5..a0719b4 100644
--- a/printing/printed_document_win.cc
+++ b/printing/printed_document_win.cc
@@ -139,6 +139,10 @@ void PrintedDocument::RenderPrintedPage(
DCHECK(old_font != NULL);
// We don't want a white square around the text ever if overflowing.
SetBkMode(context, TRANSPARENT);
+ // Disabling printing the header/footer on Windows for now to make the
+ // behavior consistent with Mac/Linux.
+ // TODO(thestig) re-enable this for print preview.
+#if 0
PrintHeaderFooter(context, page, PageOverlays::LEFT, PageOverlays::TOP,
font);
PrintHeaderFooter(context, page, PageOverlays::CENTER, PageOverlays::TOP,
@@ -151,6 +155,7 @@ void PrintedDocument::RenderPrintedPage(
font);
PrintHeaderFooter(context, page, PageOverlays::RIGHT, PageOverlays::BOTTOM,
font);
+#endif
int res = RestoreDC(context, saved_state);
DCHECK_NE(res, 0);
}