| 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 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 65 const char* getTitle() const { return fTitle.c_str(); } | 65 const char* getTitle() const { return fTitle.c_str(); } |
| 66 void setTitle(const char title[]); | 66 void setTitle(const char title[]); |
| 67 | 67 |
| 68 const SkMatrix& getMatrix() const { return fMatrix; } | 68 const SkMatrix& getMatrix() const { return fMatrix; } |
| 69 void setMatrix(const SkMatrix&); | 69 void setMatrix(const SkMatrix&); |
| 70 void preConcat(const SkMatrix&); | 70 void preConcat(const SkMatrix&); |
| 71 void postConcat(const SkMatrix&); | 71 void postConcat(const SkMatrix&); |
| 72 | 72 |
| 73 virtual SkSurface* createSurface(); | 73 virtual SkSurface* createSurface(); |
| 74 | 74 |
| 75 virtual void onPDFSaved(const char title[], const char desc[], | |
| 76 const char path[]) {} | |
| 77 | |
| 78 protected: | 75 protected: |
| 79 virtual bool onEvent(const SkEvent&); | 76 virtual bool onEvent(const SkEvent&); |
| 80 virtual bool onDispatchClick(int x, int y, Click::State, void* owner, unsign
ed modi); | 77 virtual bool onDispatchClick(int x, int y, Click::State, void* owner, unsign
ed modi); |
| 81 // called if part of our bitmap is invalidated | 78 // called if part of our bitmap is invalidated |
| 82 virtual void onHandleInval(const SkIRect&); | 79 virtual void onHandleInval(const SkIRect&); |
| 83 virtual bool onHandleChar(SkUnichar); | 80 virtual bool onHandleChar(SkUnichar); |
| 84 virtual bool onHandleKey(SkKey); | 81 virtual bool onHandleKey(SkKey); |
| 85 virtual bool onHandleKeyUp(SkKey); | 82 virtual bool onHandleKeyUp(SkKey); |
| 86 virtual void onAddMenu(const SkOSMenu*) {}; | 83 virtual void onAddMenu(const SkOSMenu*) {}; |
| 87 virtual void onUpdateMenu(const SkOSMenu*) {}; | 84 virtual void onUpdateMenu(const SkOSMenu*) {}; |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 126 #include "SkOSWindow_Win.h" | 123 #include "SkOSWindow_Win.h" |
| 127 #elif defined(SK_BUILD_FOR_ANDROID) | 124 #elif defined(SK_BUILD_FOR_ANDROID) |
| 128 #include "SkOSWindow_Android.h" | 125 #include "SkOSWindow_Android.h" |
| 129 #elif defined(SK_BUILD_FOR_UNIX) | 126 #elif defined(SK_BUILD_FOR_UNIX) |
| 130 #include "SkOSWindow_Unix.h" | 127 #include "SkOSWindow_Unix.h" |
| 131 #elif defined(SK_BUILD_FOR_IOS) | 128 #elif defined(SK_BUILD_FOR_IOS) |
| 132 #include "SkOSWindow_iOS.h" | 129 #include "SkOSWindow_iOS.h" |
| 133 #endif | 130 #endif |
| 134 | 131 |
| 135 #endif | 132 #endif |
| OLD | NEW |