OLD | NEW |
1 | 1 |
2 /* | 2 /* |
3 * Copyright 2006 The Android Open Source Project | 3 * Copyright 2006 The Android Open Source Project |
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 | 9 |
10 #ifndef SkEventSink_DEFINED | 10 #ifndef SkEventSink_DEFINED |
11 #define SkEventSink_DEFINED | 11 #define SkEventSink_DEFINED |
12 | 12 |
13 #include "SkRefCnt.h" | 13 #include "SkRefCnt.h" |
14 #include "SkEvent.h" | 14 #include "SkEvent.h" |
15 | 15 |
16 struct SkTagList; | 16 struct SkTagList; |
17 | 17 |
18 /** \class SkEventSink | 18 /** \class SkEventSink |
19 | 19 |
20 SkEventSink is the base class for all objects that receive SkEvents. | 20 SkEventSink is the base class for all objects that receive SkEvents. |
21 */ | 21 */ |
22 class SkEventSink : public SkRefCnt { | 22 class SkEventSink : public SkRefCnt { |
23 public: | 23 public: |
24 SK_DECLARE_INST_COUNT(SkEventSink) | 24 |
25 | 25 |
26 SkEventSink(); | 26 SkEventSink(); |
27 virtual ~SkEventSink(); | 27 virtual ~SkEventSink(); |
28 | 28 |
29 /** | 29 /** |
30 * Returns this eventsink's unique ID. Use this to post SkEvents to | 30 * Returns this eventsink's unique ID. Use this to post SkEvents to |
31 * this eventsink. | 31 * this eventsink. |
32 */ | 32 */ |
33 SkEventSinkID getSinkID() const { return fID; } | 33 SkEventSinkID getSinkID() const { return fID; } |
34 | 34 |
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
103 SkEventSinkID fID; | 103 SkEventSinkID fID; |
104 SkTagList* fTagHead; | 104 SkTagList* fTagHead; |
105 | 105 |
106 // for our private link-list | 106 // for our private link-list |
107 SkEventSink* fNextSink; | 107 SkEventSink* fNextSink; |
108 | 108 |
109 typedef SkRefCnt INHERITED; | 109 typedef SkRefCnt INHERITED; |
110 }; | 110 }; |
111 | 111 |
112 #endif | 112 #endif |
OLD | NEW |