OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2011 Skia | 2 * Copyright 2011 Skia |
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 SampleApp_DEFINED | 8 #ifndef SampleApp_DEFINED |
9 #define SampleApp_DEFINED | 9 #define SampleApp_DEFINED |
10 | 10 |
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
151 | 151 |
152 virtual bool onDispatchClick(int x, int y, Click::State, void* owner, | 152 virtual bool onDispatchClick(int x, int y, Click::State, void* owner, |
153 unsigned modi) SK_OVERRIDE; | 153 unsigned modi) SK_OVERRIDE; |
154 virtual bool onClick(Click* click) SK_OVERRIDE; | 154 virtual bool onClick(Click* click) SK_OVERRIDE; |
155 virtual Click* onFindClickHandler(SkScalar x, SkScalar y, | 155 virtual Click* onFindClickHandler(SkScalar x, SkScalar y, |
156 unsigned modi) SK_OVERRIDE; | 156 unsigned modi) SK_OVERRIDE; |
157 | 157 |
158 void registerPictFileSamples(char** argv, int argc); | 158 void registerPictFileSamples(char** argv, int argc); |
159 void registerPictFileSample(char** argv, int argc); | 159 void registerPictFileSample(char** argv, int argc); |
160 | 160 |
| 161 #ifdef SAMPLE_PDF_FILE_VIEWER |
| 162 void registerPdfFileViewerSamples(char** argv, int argc); |
| 163 #endif // SAMPLE_PDF_FILE_VIEWER |
| 164 |
| 165 |
161 private: | 166 private: |
162 class DefaultDeviceManager; | 167 class DefaultDeviceManager; |
163 | 168 |
164 int fCurrIndex; | 169 int fCurrIndex; |
165 | 170 |
166 SkPicture* fPicture; | 171 SkPicture* fPicture; |
167 SkPath fClipPath; | 172 SkPath fClipPath; |
168 | 173 |
169 SkTouchGesture fGesture; | 174 SkTouchGesture fGesture; |
170 SkScalar fZoomLevel; | 175 SkScalar fZoomLevel; |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
236 void updateMatrix(); | 241 void updateMatrix(); |
237 void postAnimatingEvent(); | 242 void postAnimatingEvent(); |
238 void installDrawFilter(SkCanvas*); | 243 void installDrawFilter(SkCanvas*); |
239 int findByTitle(const char*); | 244 int findByTitle(const char*); |
240 void listTitles(); | 245 void listTitles(); |
241 | 246 |
242 typedef SkOSWindow INHERITED; | 247 typedef SkOSWindow INHERITED; |
243 }; | 248 }; |
244 | 249 |
245 #endif | 250 #endif |
OLD | NEW |