diff options
author | thestig@chromium.org <thestig@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-02-19 00:09:22 +0000 |
---|---|---|
committer | thestig@chromium.org <thestig@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-02-19 00:09:22 +0000 |
commit | 5cc4c42d46ac837b79333091b110391c2ca1c996 (patch) | |
tree | 02764336dcbc316b1725fc614f658f391de8326c /printing/printed_document.h | |
parent | 38a0a14f438057e1c8c0ddcf1e903c8d53620141 (diff) | |
download | chromium_src-5cc4c42d46ac837b79333091b110391c2ca1c996.zip chromium_src-5cc4c42d46ac837b79333091b110391c2ca1c996.tar.gz chromium_src-5cc4c42d46ac837b79333091b110391c2ca1c996.tar.bz2 |
Linux: Refactor printing to be more linux Windows/Mac.
BUG=41543,59732
TEST=Printing works on Linux and CrOS, Linux printing respect print dialog settings.
Review URL: http://codereview.chromium.org/6516022
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@75475 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'printing/printed_document.h')
-rw-r--r-- | printing/printed_document.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/printing/printed_document.h b/printing/printed_document.h index e71f431..f95ddcf 100644 --- a/printing/printed_document.h +++ b/printing/printed_document.h @@ -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 @@ namespace printing { 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 @@ class PrintedDocument : public base::RefCountedThreadSafe<PrintedDocument> { // 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. |