Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(171)

Side by Side Diff: samplecode/SampleApp.h

Issue 344873004: Port SampleApp to SkCommandLineFlags. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | samplecode/SampleApp.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « no previous file | samplecode/SampleApp.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698