summaryrefslogtreecommitdiffstats
path: root/printing/printed_document_win.cc
diff options
context:
space:
mode:
authorjhawkins@chromium.org <jhawkins@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-09-27 19:58:06 +0000
committerjhawkins@chromium.org <jhawkins@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-09-27 19:58:06 +0000
commit079548b6cea329582d60143cc18f00a59a6cc4cd (patch)
treea7028636cef3e65ff15997e2fff6f6e9b19707a6 /printing/printed_document_win.cc
parent3f00be8c4d2a6226a310ad349cc4be8750449a56 (diff)
downloadchromium_src-079548b6cea329582d60143cc18f00a59a6cc4cd.zip
chromium_src-079548b6cea329582d60143cc18f00a59a6cc4cd.tar.gz
chromium_src-079548b6cea329582d60143cc18f00a59a6cc4cd.tar.bz2
Printing: Remove OS_WIN ifdef in a win-only file. Remove an unused debugging
block. BUG=none TEST=none Review URL: http://codereview.chromium.org/3474014 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@60694 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'printing/printed_document_win.cc')
-rw-r--r--printing/printed_document_win.cc28
1 files changed, 0 insertions, 28 deletions
diff --git a/printing/printed_document_win.cc b/printing/printed_document_win.cc
index 3a57b94..081bddc 100644
--- a/printing/printed_document_win.cc
+++ b/printing/printed_document_win.cc
@@ -14,7 +14,6 @@
#include "printing/units.h"
#include "skia/ext/platform_device.h"
-#if defined(OS_WIN)
namespace {
void SimpleModifyWorldTransform(HDC context,
@@ -34,7 +33,6 @@ void DrawRect(HDC context, gfx::Rect rect) {
}
} // namespace
-#endif // OS_WIN
namespace printing {
@@ -63,32 +61,6 @@ void PrintedDocument::RenderPrintedPage(
int saved_state = SaveDC(context);
DCHECK_NE(saved_state, 0);
-#if 0
- // Debug code to visually verify margins (leaks GDI handles).
- XFORM debug_xform = { 0 };
- ModifyWorldTransform(context, &debug_xform, MWT_IDENTITY);
- // Printable area:
- SelectObject(context, CreatePen(PS_SOLID, 1, RGB(0, 0, 0)));
- SelectObject(context, CreateSolidBrush(RGB(0x90, 0x90, 0x90)));
- Rectangle(context,
- 0,
- 0,
- page_setup.printable_area().width(),
- page_setup.printable_area().height());
- // Overlay area:
- gfx::Rect debug_overlay_area(page_setup.overlay_area());
- debug_overlay_area.Offset(-page_setup.printable_area().x(),
- -page_setup.printable_area().y());
- SelectObject(context, CreateSolidBrush(RGB(0xb0, 0xb0, 0xb0)));
- DrawRect(context, debug_overlay_area);
- // Content area:
- gfx::Rect debug_content_area(content_area());
- debug_content_area.Offset(-page_setup.printable_area().x(),
- -page_setup.printable_area().y());
- SelectObject(context, CreateSolidBrush(RGB(0xd0, 0xd0, 0xd0)));
- DrawRect(context, debug_content_area);
-#endif
-
// Setup the matrix to translate and scale to the right place. Take in
// account the actual shrinking factor.
// Note that the printing output is relative to printable area of the page.