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

Side by Side Diff: samplecode/SampleApp.h

Issue 17904006: Add an option to have a PdfViewer in SampleApp. Add a parameter --pdfDir to pass the dir with pdfs.… (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: Created 7 years, 5 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 | Annotate | Revision Log
« no previous file with comments | « gyp/SampleApp.gyp ('k') | 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 140 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
OLDNEW
« no previous file with comments | « gyp/SampleApp.gyp ('k') | samplecode/SampleApp.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698