borenet@google.com | 7158e6a | 2012-11-01 17:43:44 +0000 | [diff] [blame] | 1 | |
| 2 | /* |
| 3 | * Copyright 2012 Skia |
| 4 | * |
| 5 | * Use of this source code is governed by a BSD-style license that can be |
| 6 | * found in the LICENSE file. |
| 7 | */ |
| 8 | |
| 9 | |
| 10 | #ifndef SkOSWindow_NaCl_DEFINED |
| 11 | #define SkOSWindow_NaCl_DEFINED |
| 12 | |
| 13 | #include "SkWindow.h" |
| 14 | |
| 15 | class SkIRect; |
| 16 | |
| 17 | class SkOSWindow : public SkWindow { |
| 18 | public: |
| 19 | SkOSWindow(void*) {} |
| 20 | ~SkOSWindow() {} |
| 21 | |
| 22 | enum SkBackEndTypes { |
| 23 | kNone_BackEndType, |
| 24 | kNativeGL_BackEndType, |
| 25 | }; |
| 26 | |
| 27 | bool attach(SkBackEndTypes /* attachType */, int /* msaaSampleCount */) { |
| 28 | return true; |
| 29 | } |
| 30 | void detach() {} |
| 31 | void present() {} |
| 32 | |
| 33 | virtual void onPDFSaved(const char title[], const char desc[], |
| 34 | const char path[]); |
| 35 | |
| 36 | protected: |
| 37 | // overrides from SkWindow |
| 38 | virtual void onHandleInval(const SkIRect&); |
| 39 | virtual void onSetTitle(const char title[]); |
| 40 | |
| 41 | private: |
| 42 | typedef SkWindow INHERITED; |
| 43 | }; |
| 44 | |
| 45 | #endif |