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

Unified Diff: printing/printed_document.cc

Issue 6826027: Connect the right metafiles for print preview on Linux and Windows. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix compile problems Created 9 years, 8 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_document.h ('k') | printing/printed_document_cairo.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: printing/printed_document.cc
diff --git a/printing/printed_document.cc b/printing/printed_document.cc
index 07eeec6dd901029043e4665c1241fbd6dd56c0b5..5a85c1a3798b3be4ad10027644c18329fbd8de6a 100644
--- a/printing/printed_document.cc
+++ b/printing/printed_document.cc
@@ -64,7 +64,7 @@ PrintedDocument::~PrintedDocument() {
}
void PrintedDocument::SetPage(int page_number,
- NativeMetafile* metafile,
+ Metafile* metafile,
double shrink,
const gfx::Size& paper_size,
const gfx::Rect& page_rect,
@@ -125,7 +125,7 @@ bool PrintedDocument::IsComplete() const {
PrintedPages::const_iterator itr = mutable_.pages_.find(page.ToInt());
if (itr == mutable_.pages_.end() || !itr->second.get())
return false;
- if (metafile_must_be_valid && !itr->second->native_metafile())
+ if (metafile_must_be_valid && !itr->second->metafile())
return false;
}
return true;
@@ -151,7 +151,7 @@ uint32 PrintedDocument::MemoryUsage() const {
}
uint32 total = 0;
for (size_t i = 0; i < pages_copy.size(); ++i) {
- total += pages_copy[i]->native_metafile()->GetDataSize();
+ total += pages_copy[i]->metafile()->GetDataSize();
}
return total;
}
@@ -263,11 +263,11 @@ void PrintedDocument::DebugDump(const PrintedPage& page) {
filename += ASCIIToUTF16(StringPrintf("%02d", page.page_number()));
#if defined(OS_WIN)
filename += ASCIIToUTF16("_.emf");
- page.native_metafile()->SaveTo(
+ page.metafile()->SaveTo(
g_debug_dump_info.Get().debug_dump_path.Append(filename));
#else // OS_WIN
filename += ASCIIToUTF16("_.pdf");
- page.native_metafile()->SaveTo(
+ page.metafile()->SaveTo(
g_debug_dump_info.Get().debug_dump_path.Append(UTF16ToUTF8(filename)));
#endif // OS_WIN
}
« no previous file with comments | « printing/printed_document.h ('k') | printing/printed_document_cairo.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698