summaryrefslogtreecommitdiffstats
path: root/printing/printed_document.cc
diff options
context:
space:
mode:
authorhamaji@chromium.org <hamaji@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-07-01 07:04:05 +0000
committerhamaji@chromium.org <hamaji@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-07-01 07:04:05 +0000
commit40c7cfe39957248d38d8c376fbfc7d332c796741 (patch)
tree1e9cbc2bda99a4b4bc3286504dbca59a7542fb70 /printing/printed_document.cc
parent829c9bbc87035a0e6a5606ff7654b761a2d9d0bf (diff)
downloadchromium_src-40c7cfe39957248d38d8c376fbfc7d332c796741.zip
chromium_src-40c7cfe39957248d38d8c376fbfc7d332c796741.tar.gz
chromium_src-40c7cfe39957248d38d8c376fbfc7d332c796741.tar.bz2
Implement limited paged media support for mac.
BUG=47277 TEST=none Review URL: http://codereview.chromium.org/2876020 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@51347 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'printing/printed_document.cc')
-rw-r--r--printing/printed_document.cc9
1 files changed, 6 insertions, 3 deletions
diff --git a/printing/printed_document.cc b/printing/printed_document.cc
index f49e1e6..333f1d87 100644
--- a/printing/printed_document.cc
+++ b/printing/printed_document.cc
@@ -70,13 +70,16 @@ PrintedDocument::~PrintedDocument() {
void PrintedDocument::SetPage(int page_number,
NativeMetafile* metafile,
- double shrink) {
+ double shrink,
+ const gfx::Size& paper_size,
+ const gfx::Rect& page_rect) {
// Notice the page_number + 1, the reason is that this is the value that will
// be shown. Users dislike 0-based counting.
scoped_refptr<PrintedPage> page(
new PrintedPage(page_number + 1,
- metafile,
- immutable_.settings_.page_setup_device_units().physical_size()));
+ metafile,
+ paper_size,
+ page_rect));
{
AutoLock lock(lock_);
mutable_.pages_[page_number] = page;