printed_page_win.cc 803 B

1234567891011121314151617181920212223242526
  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. #include "printing/printed_page_win.h"
  5. #include <utility>
  6. namespace printing {
  7. PrintedPage::PrintedPage(uint32_t page_number,
  8. std::unique_ptr<MetafilePlayer> metafile,
  9. const gfx::Size& page_size,
  10. const gfx::Rect& page_content_rect)
  11. : page_number_(page_number),
  12. metafile_(std::move(metafile)),
  13. shrink_factor_(0.0f),
  14. page_size_(page_size),
  15. page_content_rect_(page_content_rect) {}
  16. PrintedPage::~PrintedPage() = default;
  17. const MetafilePlayer* PrintedPage::metafile() const {
  18. return metafile_.get();
  19. }
  20. } // namespace printing