| 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 #include "SampleCode.h" | 8 #include "SampleCode.h" |
| 9 #include "SkView.h" | 9 #include "SkView.h" |
| 10 #include "SkCanvas.h" | 10 #include "SkCanvas.h" |
| (...skipping 242 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 253 unsigned modi) SK_OVERRIDE { | 253 unsigned modi) SK_OVERRIDE { |
| 254 this->inval(NULL); | 254 this->inval(NULL); |
| 255 | 255 |
| 256 return this->INHERITED::onFindClickHandler(x, y, modi); | 256 return this->INHERITED::onFindClickHandler(x, y, modi); |
| 257 } | 257 } |
| 258 | 258 |
| 259 virtual bool onClick(Click* click) { | 259 virtual bool onClick(Click* click) { |
| 260 return this->INHERITED::onClick(click); | 260 return this->INHERITED::onClick(click); |
| 261 } | 261 } |
| 262 | 262 |
| 263 virtual bool handleKey(SkKey key) { | 263 virtual bool handleKey(SkKey) { |
| 264 this->inval(NULL); | 264 this->inval(NULL); |
| 265 return true; | 265 return true; |
| 266 } | 266 } |
| 267 | 267 |
| 268 private: | 268 private: |
| 269 typedef SkView INHERITED; | 269 typedef SkView INHERITED; |
| 270 }; | 270 }; |
| 271 | 271 |
| 272 ////////////////////////////////////////////////////////////////////////////// | 272 ////////////////////////////////////////////////////////////////////////////// |
| 273 | 273 |
| 274 static SkView* MyFactory() { return new LayersView; } | 274 static SkView* MyFactory() { return new LayersView; } |
| 275 static SkViewRegister reg(MyFactory); | 275 static SkViewRegister reg(MyFactory); |
| OLD | NEW |