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

Unified Diff: printing/printed_document.h

Issue 268036: Implement the basic OS-level printing mechanics on Mac (Closed)
Patch Set: Address review comments Created 11 years, 2 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.h
diff --git a/printing/printed_document.h b/printing/printed_document.h
index cedaddd927b39caa4a1a598dbd3c4ce04193d257..6e20d334bb970ef064d1098c6bddd9188c51958f 100644
--- a/printing/printed_document.h
+++ b/printing/printed_document.h
@@ -7,6 +7,7 @@
#include <map>
+#include "app/gfx/native_widget_types.h"
#include "base/lock.h"
#include "base/ref_counted.h"
#include "base/scoped_ptr.h"
@@ -51,12 +52,14 @@ class PrintedDocument : public base::RefCountedThreadSafe<PrintedDocument> {
// Draws the page in the context.
// Note: locks for a short amount of time in debug only.
- void RenderPrintedPage(const PrintedPage& page, HDC context) const;
+ void RenderPrintedPage(const PrintedPage& page,
+ gfx::NativeDrawingContext context) const;
// Draws the page in the context. If the page is not available right now, it
// requests to have this page be rendered and returns false.
// Note: locks for a short amount of time.
- bool RenderPrintedPageNumber(int page_number, HDC context);
+ bool RenderPrintedPageNumber(int page_number,
+ gfx::NativeDrawingContext context);
// Returns true if all the necessary pages for the settings are already
// rendered.
@@ -166,7 +169,7 @@ class PrintedDocument : public base::RefCountedThreadSafe<PrintedDocument> {
// Prints the headers and footers for one page in the specified context
// according to the current settings.
- void PrintHeaderFooter(HDC context,
+ void PrintHeaderFooter(gfx::NativeDrawingContext context,
const PrintedPage& page,
PageOverlays::HorizontalPosition x,
PageOverlays::VerticalPosition y,

Powered by Google App Engine
This is Rietveld 408576698