blob: b9df411b7226c6448516803717f50dc17c9195da [file] [log] [blame]
rbpotter80cbe042017-12-08 07:00:521// Copyright (c) 2011 The Chromium Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5#include "printing/printed_page_win.h"
6
7#include <utility>
8
9namespace printing {
10
11PrintedPage::PrintedPage(int page_number,
12 std::unique_ptr<MetafilePlayer> metafile,
13 const gfx::Size& page_size,
14 const gfx::Rect& page_content_rect)
15 : page_number_(page_number),
16 metafile_(std::move(metafile)),
17 shrink_factor_(0.0f),
18 page_size_(page_size),
19 page_content_rect_(page_content_rect) {}
20
21PrintedPage::~PrintedPage() = default;
22
23const MetafilePlayer* PrintedPage::metafile() const {
24 return metafile_.get();
25}
26} // namespace printing