diff options
author | Scroggo <Scroggo@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2011-06-21 14:44:57 +0000 |
---|---|---|
committer | Scroggo <Scroggo@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2011-06-21 14:44:57 +0000 |
commit | 8ac0d542b0226e68b0faa935b3402ffc91409a02 (patch) | |
tree | 0d4eca1c5c49361c036b368fd6affd3c53e55a3d /include | |
parent | ccb74eabccf19f66b6bf31f4acae89b62baa16c3 (diff) |
Add a way to save to PDF in SampleApp on Android and elsewhere.
In Android, add the PDF file to downloads, so it can be opened.
Reviewed at http://codereview.appspot.com/4638052/
git-svn-id: http://skia.googlecode.com/svn/trunk@1659 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'include')
-rw-r--r-- | include/views/SkOSWindow_Android.h | 3 | ||||
-rw-r--r-- | include/views/SkWindow.h | 2 |
2 files changed, 5 insertions, 0 deletions
diff --git a/include/views/SkOSWindow_Android.h b/include/views/SkOSWindow_Android.h index e547609e73..c84ff2ed96 100644 --- a/include/views/SkOSWindow_Android.h +++ b/include/views/SkOSWindow_Android.h @@ -29,6 +29,9 @@ public: void detachGL() {} void presentGL() {} + virtual void onPDFSaved(const char title[], const char desc[], + const char path[]); + protected: // overrides from SkWindow virtual void onHandleInval(const SkIRect&); diff --git a/include/views/SkWindow.h b/include/views/SkWindow.h index fd4ce0a91c..1477ec6060 100644 --- a/include/views/SkWindow.h +++ b/include/views/SkWindow.h @@ -70,6 +70,8 @@ public: void preConcat(const SkMatrix&); void postConcat(const SkMatrix&); + virtual void onPDFSaved(const char title[], const char desc[], + const char path[]) {} protected: virtual bool onEvent(const SkEvent&); virtual bool onDispatchClick(int x, int y, Click::State); |