Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(979)

Unified Diff: printing/printed_document_mac.cc

Issue 6673035: Move Start/EndPage() from NewPage/PageDone() to inside the metafile. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: printing/printed_document_mac.cc
diff --git a/printing/printed_document_mac.cc b/printing/printed_document_mac.cc
index 26515167a6a575dbc8ad403538f6395279dd1022..de14eb2ab879c0ae042f2f66b1f63c3985e3c08f 100644
--- a/printing/printed_document_mac.cc
+++ b/printing/printed_document_mac.cc
@@ -13,7 +13,7 @@
namespace printing {
-void PrintedDocument::RenderPrintedPage(
+bool PrintedDocument::RenderPrintedPage(
const PrintedPage& page, gfx::NativeDrawingContext context) const {
#ifndef NDEBUG
{
@@ -35,7 +35,7 @@ void PrintedDocument::RenderPrintedPage(
const int page_number = 1;
metafile->RenderPage(page_number, context, content_area.ToCGRect(),
false, false, false, false);
-
+ return true;
// TODO(stuartmorgan): Print the header and footer.
}

Powered by Google App Engine
This is Rietveld 408576698