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 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
70 virtual SkView::Click* onFindClickHandler(SkScalar x, SkScalar y, unsigned m
odi) SK_OVERRIDE { | 70 virtual SkView::Click* onFindClickHandler(SkScalar x, SkScalar y, unsigned m
odi) SK_OVERRIDE { |
71 this->inval(NULL); | 71 this->inval(NULL); |
72 | 72 |
73 return this->INHERITED::onFindClickHandler(x, y, modi); | 73 return this->INHERITED::onFindClickHandler(x, y, modi); |
74 } | 74 } |
75 | 75 |
76 virtual bool onClick(Click* click) { | 76 virtual bool onClick(Click* click) { |
77 return this->INHERITED::onClick(click); | 77 return this->INHERITED::onClick(click); |
78 } | 78 } |
79 | 79 |
80 virtual bool handleKey(SkKey key) { | 80 virtual bool handleKey(SkKey) { |
81 this->inval(NULL); | 81 this->inval(NULL); |
82 return true; | 82 return true; |
83 } | 83 } |
84 | 84 |
85 private: | 85 private: |
86 typedef SampleView INHERITED; | 86 typedef SampleView INHERITED; |
87 }; | 87 }; |
88 | 88 |
89 ////////////////////////////////////////////////////////////////////////////// | 89 ////////////////////////////////////////////////////////////////////////////// |
90 | 90 |
91 static SkView* MyFactory() { return new RepeatTileView; } | 91 static SkView* MyFactory() { return new RepeatTileView; } |
92 static SkViewRegister reg(MyFactory); | 92 static SkViewRegister reg(MyFactory); |
OLD | NEW |