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

Unified Diff: printing/pdf_metafile_skia.h

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/pdf_metafile_cg_mac.h ('k') | printing/print_dialog_gtk_interface.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: printing/pdf_metafile_skia.h
diff --git a/printing/pdf_metafile_skia.h b/printing/pdf_metafile_skia.h
index 4e8a003de0e937b1d7984fb524854d77e93ec6e2..515c3a8a7359a63ebd82ba36de4ceabd54ca6fe3 100644
--- a/printing/pdf_metafile_skia.h
+++ b/printing/pdf_metafile_skia.h
@@ -9,7 +9,7 @@
#include "base/logging.h"
#include "base/scoped_ptr.h"
#include "build/build_config.h"
-#include "printing/native_metafile.h"
+#include "printing/metafile.h"
#if defined(OS_WIN)
#include <windows.h>
@@ -20,11 +20,12 @@ namespace printing {
struct PdfMetafileSkiaData;
// This class uses Skia graphics library to generate a PDF document.
-class PdfMetafileSkia : public NativeMetafile {
+class PdfMetafileSkia : public Metafile {
public:
+ PdfMetafileSkia();
virtual ~PdfMetafileSkia();
- // NativeMetafile interface
+ // Metafile methods.
virtual bool Init();
virtual bool InitFromData(const void* src_buffer, uint32 src_buffer_size);
@@ -55,15 +56,9 @@ class PdfMetafileSkia : public NativeMetafile {
#endif // if defined(OS_WIN)
#if defined(OS_CHROMEOS)
- virtual bool SaveToFD(const base::FileDescriptor& fd) const = 0;
+ virtual bool SaveToFD(const base::FileDescriptor& fd) const;
#endif // if defined(OS_CHROMEOS)
-
- protected:
- PdfMetafileSkia();
-
private:
- friend class NativeMetafileFactory;
-
scoped_ptr<PdfMetafileSkiaData> data_;
DISALLOW_COPY_AND_ASSIGN(PdfMetafileSkia);
« no previous file with comments | « printing/pdf_metafile_cg_mac.h ('k') | printing/print_dialog_gtk_interface.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698