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

Unified Diff: chrome/browser/printing/printed_page.h

Issue 149181: Move Emf class to the printing library. Also creates a platform agnostic Nat... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 5 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 | « chrome/browser/printing/printed_document.cc ('k') | chrome/browser/printing/printed_page.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/printing/printed_page.h
===================================================================
--- chrome/browser/printing/printed_page.h (revision 19913)
+++ chrome/browser/printing/printed_page.h (working copy)
@@ -9,11 +9,8 @@
#include "base/gfx/size.h"
#include "base/ref_counted.h"
#include "base/scoped_ptr.h"
+#include "printing/native_metafile.h"
-namespace gfx {
-class Emf;
-}
-
namespace printing {
// Contains the data to reproduce a printed page, either on screen or on
@@ -25,13 +22,13 @@
class PrintedPage : public base::RefCountedThreadSafe<PrintedPage> {
public:
PrintedPage(int page_number,
- gfx::Emf* emf,
+ NativeMetafile* native_metafile,
const gfx::Size& page_size);
~PrintedPage();
// Getters
int page_number() const { return page_number_; }
- const gfx::Emf* emf() const;
+ const NativeMetafile* native_metafile() const;
const gfx::Size& page_size() const { return page_size_; }
private:
@@ -39,7 +36,7 @@
const int page_number_;
// Actual paint data.
- const scoped_ptr<gfx::Emf> emf_;
+ const scoped_ptr<NativeMetafile> native_metafile_;
// The physical page size. To support multiple page formats inside on print
// job.
« no previous file with comments | « chrome/browser/printing/printed_document.cc ('k') | chrome/browser/printing/printed_page.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698