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

Unified Diff: printing/printed_document.h

Issue 6516022: Linux: Refactor printing to be more like Windows/Mac.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix mac build Created 9 years, 10 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
===================================================================
--- printing/printed_document.h (revision 75320)
+++ printing/printed_document.h (working copy)
@@ -1,4 +1,4 @@
-// Copyright (c) 2010 The Chromium Authors. All rights reserved.
+// Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -27,6 +27,7 @@
class PrintedPage;
class PrintedPagesSource;
+class PrintingContext;
// A collection of rendered pages. The settings are immutable. If the print
// settings are changed, a new PrintedDocument must be created.
@@ -55,8 +56,13 @@
// Draws the page in the context.
// Note: locks for a short amount of time in debug only.
+#if defined(OS_WIN) || defined(OS_MACOSX)
void RenderPrintedPage(const PrintedPage& page,
gfx::NativeDrawingContext context) const;
+#elif defined(OS_POSIX)
+ void RenderPrintedPage(const PrintedPage& page,
+ PrintingContext* context) const;
+#endif
// Returns true if all the necessary pages for the settings are already
// rendered.

Powered by Google App Engine
This is Rietveld 408576698