| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2006 The Android Open Source Project | 2 * Copyright 2006 The Android Open Source Project |
| 3 * | 3 * |
| 4 * Use of this source code is governed by a BSD-style license that can be | 4 * Use of this source code is governed by a BSD-style license that can be |
| 5 * found in the LICENSE file. | 5 * found in the LICENSE file. |
| 6 */ | 6 */ |
| 7 | 7 |
| 8 #ifndef SkWindow_DEFINED | 8 #ifndef SkWindow_DEFINED |
| 9 #define SkWindow_DEFINED | 9 #define SkWindow_DEFINED |
| 10 | 10 |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 72 | 72 |
| 73 const SkMatrix& getMatrix() const { return fMatrix; } | 73 const SkMatrix& getMatrix() const { return fMatrix; } |
| 74 void setMatrix(const SkMatrix&); | 74 void setMatrix(const SkMatrix&); |
| 75 void preConcat(const SkMatrix&); | 75 void preConcat(const SkMatrix&); |
| 76 void postConcat(const SkMatrix&); | 76 void postConcat(const SkMatrix&); |
| 77 | 77 |
| 78 virtual SkSurface* createSurface(); | 78 virtual SkSurface* createSurface(); |
| 79 | 79 |
| 80 virtual void onPDFSaved(const char title[], const char desc[], | 80 virtual void onPDFSaved(const char title[], const char desc[], |
| 81 const char path[]) {} | 81 const char path[]) {} |
| 82 |
| 83 virtual void setFullscreen(bool) {} |
| 84 virtual void setVsync(bool) {} |
| 85 |
| 82 protected: | 86 protected: |
| 83 virtual bool onEvent(const SkEvent&); | 87 virtual bool onEvent(const SkEvent&); |
| 84 virtual bool onDispatchClick(int x, int y, Click::State, void* owner, unsign
ed modi); | 88 virtual bool onDispatchClick(int x, int y, Click::State, void* owner, unsign
ed modi); |
| 85 // called if part of our bitmap is invalidated | 89 // called if part of our bitmap is invalidated |
| 86 virtual void onHandleInval(const SkIRect&); | 90 virtual void onHandleInval(const SkIRect&); |
| 87 virtual bool onHandleChar(SkUnichar); | 91 virtual bool onHandleChar(SkUnichar); |
| 88 virtual bool onHandleKey(SkKey); | 92 virtual bool onHandleKey(SkKey); |
| 89 virtual bool onHandleKeyUp(SkKey); | 93 virtual bool onHandleKeyUp(SkKey); |
| 90 virtual void onAddMenu(const SkOSMenu*) {}; | 94 virtual void onAddMenu(const SkOSMenu*) {}; |
| 91 virtual void onUpdateMenu(const SkOSMenu*) {}; | 95 virtual void onUpdateMenu(const SkOSMenu*) {}; |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 130 #include "SkOSWindow_Android.h" | 134 #include "SkOSWindow_Android.h" |
| 131 #elif defined(SK_BUILD_FOR_UNIX) | 135 #elif defined(SK_BUILD_FOR_UNIX) |
| 132 #include "SkOSWindow_Unix.h" | 136 #include "SkOSWindow_Unix.h" |
| 133 #elif defined(SK_BUILD_FOR_SDL) | 137 #elif defined(SK_BUILD_FOR_SDL) |
| 134 #include "SkOSWindow_SDL.h" | 138 #include "SkOSWindow_SDL.h" |
| 135 #elif defined(SK_BUILD_FOR_IOS) | 139 #elif defined(SK_BUILD_FOR_IOS) |
| 136 #include "SkOSWindow_iOS.h" | 140 #include "SkOSWindow_iOS.h" |
| 137 #endif | 141 #endif |
| 138 | 142 |
| 139 #endif | 143 #endif |
| OLD | NEW |