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 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
149 | 149 |
150 virtual bool onEvent(const SkEvent& evt) SK_OVERRIDE; | 150 virtual bool onEvent(const SkEvent& evt) SK_OVERRIDE; |
151 virtual bool onQuery(SkEvent* evt) SK_OVERRIDE; | 151 virtual bool onQuery(SkEvent* evt) SK_OVERRIDE; |
152 | 152 |
153 virtual bool onDispatchClick(int x, int y, Click::State, void* owner, | 153 virtual bool onDispatchClick(int x, int y, Click::State, void* owner, |
154 unsigned modi) SK_OVERRIDE; | 154 unsigned modi) SK_OVERRIDE; |
155 virtual bool onClick(Click* click) SK_OVERRIDE; | 155 virtual bool onClick(Click* click) SK_OVERRIDE; |
156 virtual Click* onFindClickHandler(SkScalar x, SkScalar y, | 156 virtual Click* onFindClickHandler(SkScalar x, SkScalar y, |
157 unsigned modi) SK_OVERRIDE; | 157 unsigned modi) SK_OVERRIDE; |
158 | 158 |
159 void registerPictFileSamples(char** argv, int argc); | |
160 void registerPictFileSample(char** argv, int argc); | |
161 | |
162 #ifdef SAMPLE_PDF_FILE_VIEWER | |
163 void registerPdfFileViewerSamples(char** argv, int argc); | |
164 #endif // SAMPLE_PDF_FILE_VIEWER | |
165 | |
166 | |
167 private: | 159 private: |
168 class DefaultDeviceManager; | 160 class DefaultDeviceManager; |
169 | 161 |
170 int fCurrIndex; | 162 int fCurrIndex; |
171 | 163 |
172 SkPictureRecorder fRecorder; | 164 SkPictureRecorder fRecorder; |
173 SkPath fClipPath; | 165 SkPath fClipPath; |
174 | 166 |
175 SkTouchGesture fGesture; | 167 SkTouchGesture fGesture; |
176 SkScalar fZoomLevel; | 168 SkScalar fZoomLevel; |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
243 void postAnimatingEvent(); | 235 void postAnimatingEvent(); |
244 void installDrawFilter(SkCanvas*); | 236 void installDrawFilter(SkCanvas*); |
245 int findByTitle(const char*); | 237 int findByTitle(const char*); |
246 void listTitles(); | 238 void listTitles(); |
247 SkSize tileSize() const; | 239 SkSize tileSize() const; |
248 | 240 |
249 typedef SkOSWindow INHERITED; | 241 typedef SkOSWindow INHERITED; |
250 }; | 242 }; |
251 | 243 |
252 #endif | 244 #endif |
OLD | NEW |