OLD | NEW |
1 | 1 |
2 /* | 2 /* |
3 * Copyright 2011 Google Inc. | 3 * Copyright 2011 Google Inc. |
4 * | 4 * |
5 * Use of this source code is governed by a BSD-style license that can be | 5 * Use of this source code is governed by a BSD-style license that can be |
6 * found in the LICENSE file. | 6 * found in the LICENSE file. |
7 */ | 7 */ |
8 | 8 |
9 #include "SampleCode.h" | 9 #include "SampleCode.h" |
10 #include "SkView.h" | 10 #include "SkView.h" |
(...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
194 } | 194 } |
195 canvas->restore(); | 195 canvas->restore(); |
196 | 196 |
197 canvas->translate(0, SkIntToScalar(200)); | 197 canvas->translate(0, SkIntToScalar(200)); |
198 } | 198 } |
199 | 199 |
200 this->nextStroke(); | 200 this->nextStroke(); |
201 this->inval(NULL); | 201 this->inval(NULL); |
202 } | 202 } |
203 | 203 |
204 virtual SkView::Click* onFindClickHandler(SkScalar x, SkScalar y, unsigned m
odi) SK_OVERRIDE { | 204 SkView::Click* onFindClickHandler(SkScalar x, SkScalar y, unsigned modi) SK_
OVERRIDE { |
205 fShowHairline = !fShowHairline; | 205 fShowHairline = !fShowHairline; |
206 this->inval(NULL); | 206 this->inval(NULL); |
207 return this->INHERITED::onFindClickHandler(x, y, modi); | 207 return this->INHERITED::onFindClickHandler(x, y, modi); |
208 } | 208 } |
209 | 209 |
210 private: | 210 private: |
211 typedef SampleView INHERITED; | 211 typedef SampleView INHERITED; |
212 }; | 212 }; |
213 DEF_SAMPLE( return new PathView; ) | 213 DEF_SAMPLE( return new PathView; ) |
214 | 214 |
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
332 } | 332 } |
333 } | 333 } |
334 return this->INHERITED::onFindClickHandler(x, y, modi); | 334 return this->INHERITED::onFindClickHandler(x, y, modi); |
335 } | 335 } |
336 | 336 |
337 private: | 337 private: |
338 typedef SampleView INHERITED; | 338 typedef SampleView INHERITED; |
339 }; | 339 }; |
340 DEF_SAMPLE( return new ArcToView; ) | 340 DEF_SAMPLE( return new ArcToView; ) |
341 | 341 |
OLD | NEW |