diff options
author | vandebo@chromium.org <vandebo@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-03-18 03:41:22 +0000 |
---|---|---|
committer | vandebo@chromium.org <vandebo@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-03-18 03:41:22 +0000 |
commit | 063f8db1c4ec940c6391a36f85c9bcb124fbed9a (patch) | |
tree | 62be78e0e699429c27ea0f1797c16ed0bdb2aacd /printing/emf_win.h | |
parent | 2aba747f04b9466ec85ff659285192da21195c32 (diff) | |
download | chromium_src-063f8db1c4ec940c6391a36f85c9bcb124fbed9a.zip chromium_src-063f8db1c4ec940c6391a36f85c9bcb124fbed9a.tar.gz chromium_src-063f8db1c4ec940c6391a36f85c9bcb124fbed9a.tar.bz2 |
Unfork VectorPlatformCanvas.
Unfork VectorPlatformCanvas by making NativeMetafile know how to create an appropriate VectorPlatformDevice. This will also be useful when we have multiple NativeMetafile implemenations (each requiring a different VectorPlatformDevices).
BUG=NONE
TEST=NONE
Review URL: http://codereview.chromium.org/6665046
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@78662 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'printing/emf_win.h')
-rw-r--r-- | printing/emf_win.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/printing/emf_win.h b/printing/emf_win.h index 5150356..241b4e4 100644 --- a/printing/emf_win.h +++ b/printing/emf_win.h @@ -15,6 +15,7 @@ class FilePath; namespace gfx { +class Point; class Rect; } @@ -33,6 +34,9 @@ class Emf : public NativeMetafile { virtual bool Init() { return true; } virtual bool InitFromData(const void* src_buffer, uint32 src_buffer_size); + virtual skia::PlatformDevice* StartPageForVectorCanvas( + const gfx::Size& page_size, const gfx::Point& content_origin, + const float& scale_factor); virtual bool StartPage(); virtual bool FinishPage(); virtual bool Close(); |