Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 /* | 1 /* |
| 2 * Copyright 2006 The Android Open Source Project | 2 * Copyright 2006 The Android Open Source Project |
| 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 SkWidget_DEFINED | 8 #ifndef SkWidget_DEFINED |
| 9 #define SkWidget_DEFINED | 9 #define SkWidget_DEFINED |
| 10 | 10 |
| (...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 96 | 96 |
| 97 //////////////////////////////////////////////////////////////////////////////// | 97 //////////////////////////////////////////////////////////////////////////////// |
| 98 | 98 |
| 99 class SkPushButtonWidget : public SkButtonWidget { | 99 class SkPushButtonWidget : public SkButtonWidget { |
| 100 public: | 100 public: |
| 101 SkPushButtonWidget(uint32_t flags = 0) : SkButtonWidget(flags) {} | 101 SkPushButtonWidget(uint32_t flags = 0) : SkButtonWidget(flags) {} |
| 102 | 102 |
| 103 protected: | 103 protected: |
| 104 virtual bool onEvent(const SkEvent&); | 104 virtual bool onEvent(const SkEvent&); |
| 105 virtual void onDraw(SkCanvas*); | 105 virtual void onDraw(SkCanvas*); |
| 106 virtual Click* onFindClickHandler(SkScalar x, SkScalar y); | 106 virtual Click* onFindClickHandler(SkScalar x, SkScalar y, unsigned modi); |
|
sugoi
2013/03/06 16:14:59
virtual function's signature did not fit base clas
| |
| 107 virtual bool onClick(Click* click); | 107 virtual bool onClick(Click* click); |
| 108 | 108 |
| 109 private: | 109 private: |
| 110 typedef SkButtonWidget INHERITED; | 110 typedef SkButtonWidget INHERITED; |
| 111 }; | 111 }; |
| 112 | 112 |
| 113 //////////////////////////////////////////////////////////////////////////////// | 113 //////////////////////////////////////////////////////////////////////////////// |
| 114 | 114 |
| 115 class SkCheckBoxWidget : public SkButtonWidget { | 115 class SkCheckBoxWidget : public SkButtonWidget { |
| 116 public: | 116 public: |
| (...skipping 286 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 403 | 403 |
| 404 int logicalToVisualIndex(int index) const { return index; } | 404 int logicalToVisualIndex(int index) const { return index; } |
| 405 void invalSelection(); | 405 void invalSelection(); |
| 406 bool getCellRect(int index, SkRect*) const; | 406 bool getCellRect(int index, SkRect*) const; |
| 407 void ensureSelectionIsVisible(); | 407 void ensureSelectionIsVisible(); |
| 408 | 408 |
| 409 typedef SkView INHERITED; | 409 typedef SkView INHERITED; |
| 410 }; | 410 }; |
| 411 | 411 |
| 412 #endif | 412 #endif |
| OLD | NEW |