Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(292)

Unified Diff: printing/printed_page.cc

Issue 568633002: Extracted MetafilePlayer interface from printing::MetafilePlayer. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@no_expose
Patch Set: Thu Sep 11 22:54:16 PDT 2014 Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « printing/printed_page.h ('k') | printing/printed_page_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: printing/printed_page.cc
diff --git a/printing/printed_page.cc b/printing/printed_page.cc
index 19b9fd38f3056d992bc1ff7297cf97da18f23995..998f8be5e51fc488dd28001b1534fb047af716f5 100644
--- a/printing/printed_page.cc
+++ b/printing/printed_page.cc
@@ -7,11 +7,11 @@
namespace printing {
PrintedPage::PrintedPage(int page_number,
- Metafile* metafile,
+ scoped_ptr<MetafilePlayer> metafile,
const gfx::Size& page_size,
const gfx::Rect& page_content_rect)
: page_number_(page_number),
- metafile_(metafile),
+ metafile_(metafile.Pass()),
#if defined(OS_WIN)
shrink_factor_(0.0f),
#endif // OS_WIN
@@ -22,7 +22,7 @@ PrintedPage::PrintedPage(int page_number,
PrintedPage::~PrintedPage() {
}
-const Metafile* PrintedPage::metafile() const {
+const MetafilePlayer* PrintedPage::metafile() const {
return metafile_.get();
}
« no previous file with comments | « printing/printed_page.h ('k') | printing/printed_page_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698