| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "printing/printed_page.h" | 5 #include "printing/printed_page.h" |
| 6 | 6 |
| 7 namespace printing { | 7 namespace printing { |
| 8 | 8 |
| 9 PrintedPage::PrintedPage(int page_number, | 9 PrintedPage::PrintedPage(int page_number, |
| 10 NativeMetafile* native_metafile, | 10 NativeMetafile* native_metafile, |
| 11 const gfx::Size& page_size, | 11 const gfx::Size& page_size, |
| 12 const gfx::Rect& page_content_rect) | 12 const gfx::Rect& page_content_rect, |
| 13 bool has_visible_overlays) |
| 13 : page_number_(page_number), | 14 : page_number_(page_number), |
| 14 native_metafile_(native_metafile), | 15 native_metafile_(native_metafile), |
| 15 page_size_(page_size), | 16 page_size_(page_size), |
| 16 page_content_rect_(page_content_rect) { | 17 page_content_rect_(page_content_rect), |
| 18 has_visible_overlays_(has_visible_overlays) { |
| 17 } | 19 } |
| 18 | 20 |
| 19 PrintedPage::~PrintedPage() { | 21 PrintedPage::~PrintedPage() { |
| 20 } | 22 } |
| 21 | 23 |
| 22 const NativeMetafile* PrintedPage::native_metafile() const { | 24 const NativeMetafile* PrintedPage::native_metafile() const { |
| 23 return native_metafile_.get(); | 25 return native_metafile_.get(); |
| 24 } | 26 } |
| 25 | 27 |
| 26 } // namespace printing | 28 } // namespace printing |
| OLD | NEW |