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 "chrome/browser/printing/printed_page.h" | 5 #include "chrome/browser/printing/printed_page.h" |
6 | 6 |
7 #include "chrome/common/gfx/emf.h" | |
8 | |
9 namespace printing { | 7 namespace printing { |
10 | 8 |
11 PrintedPage::PrintedPage(int page_number, | 9 PrintedPage::PrintedPage(int page_number, |
12 gfx::Emf* emf, | 10 NativeMetafile* native_metafile, |
13 const gfx::Size& page_size) | 11 const gfx::Size& page_size) |
14 : page_number_(page_number), | 12 : page_number_(page_number), |
15 emf_(emf), | 13 native_metafile_(native_metafile), |
16 page_size_(page_size) { | 14 page_size_(page_size) { |
17 } | 15 } |
18 | 16 |
19 PrintedPage::~PrintedPage() { | 17 PrintedPage::~PrintedPage() { |
20 } | 18 } |
21 | 19 |
22 const gfx::Emf* PrintedPage::emf() const { | 20 const NativeMetafile* PrintedPage::native_metafile() const { |
23 return emf_.get(); | 21 return native_metafile_.get(); |
24 } | 22 } |
25 | 23 |
26 } // namespace printing | 24 } // namespace printing |
OLD | NEW |