Upload upstream chromium 73.0.3683.0
[platform/framework/web/chromium-efl.git] / printing / printed_page_win.cc
1 // 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
9 namespace printing {
10
11 PrintedPage::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
21 PrintedPage::~PrintedPage() = default;
22
23 const MetafilePlayer* PrintedPage::metafile() const {
24   return metafile_.get();
25 }
26 }  // namespace printing