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 SkMemberInfo_DEFINED | 10 #ifndef SkMemberInfo_DEFINED |
(...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
176 public: \ | 176 public: \ |
177 static const SkMemberInfo fInfo[]; \ | 177 static const SkMemberInfo fInfo[]; \ |
178 static const int fInfoCount; \ | 178 static const int fInfoCount; \ |
179 virtual const SkMemberInfo* getMember(int index) SK_OVERRIDE; \ | 179 virtual const SkMemberInfo* getMember(int index) SK_OVERRIDE; \ |
180 virtual const SkMemberInfo* getMember(const char name[]) SK_OVERRIDE; \ | 180 virtual const SkMemberInfo* getMember(const char name[]) SK_OVERRIDE; \ |
181 virtual SkDisplayTypes getType() const SK_OVERRIDE { return SkType_##_type;
} \ | 181 virtual SkDisplayTypes getType() const SK_OVERRIDE { return SkType_##_type;
} \ |
182 typedef SkDisplay##_type BASE_CLASS | 182 typedef SkDisplay##_type BASE_CLASS |
183 | 183 |
184 #define DECLARE_EMPTY_MEMBER_INFO(_type) \ | 184 #define DECLARE_EMPTY_MEMBER_INFO(_type) \ |
185 public: \ | 185 public: \ |
186 virtual SkDisplayTypes getType() const { return SkType_##_type; } | 186 virtual SkDisplayTypes getType() const SK_OVERRIDE { return SkType_##_type;
} |
187 | 187 |
188 #define DECLARE_EXTRAS_MEMBER_INFO(_type) \ | 188 #define DECLARE_EXTRAS_MEMBER_INFO(_type) \ |
189 public: \ | 189 public: \ |
190 static const SkMemberInfo fInfo[]; \ | 190 static const SkMemberInfo fInfo[]; \ |
191 static const int fInfoCount; \ | 191 static const int fInfoCount; \ |
192 virtual const SkMemberInfo* getMember(int index); \ | 192 virtual const SkMemberInfo* getMember(int index) SK_OVERRIDE; \ |
193 virtual const SkMemberInfo* getMember(const char name[]); \ | 193 virtual const SkMemberInfo* getMember(const char name[]) SK_OVERRIDE; \ |
194 SkDisplayTypes fType; \ | 194 SkDisplayTypes fType; \ |
195 virtual SkDisplayTypes getType() const { return fType; } \ | 195 virtual SkDisplayTypes getType() const SK_OVERRIDE { return fType; } \ |
196 typedef _type BASE_CLASS | 196 typedef _type BASE_CLASS |
197 | 197 |
198 #define DECLARE_NO_VIRTUALS_MEMBER_INFO(_type) \ | 198 #define DECLARE_NO_VIRTUALS_MEMBER_INFO(_type) \ |
199 public: \ | 199 public: \ |
200 static const SkMemberInfo fInfo[]; \ | 200 static const SkMemberInfo fInfo[]; \ |
201 static const int fInfoCount; \ | 201 static const int fInfoCount; \ |
202 typedef Sk##_type BASE_CLASS | 202 typedef Sk##_type BASE_CLASS |
203 | 203 |
204 #define DEFINE_GET_MEMBER(_class) \ | 204 #define DEFINE_GET_MEMBER(_class) \ |
205 const SkMemberInfo* _class::getMember(int index) { \ | 205 const SkMemberInfo* _class::getMember(int index) { \ |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
261 #define DECLARE_NO_VIRTUALS_MEMBER_INFO(_type) \ | 261 #define DECLARE_NO_VIRTUALS_MEMBER_INFO(_type) \ |
262 public: \ | 262 public: \ |
263 typedef Sk##_type BASE_CLASS | 263 typedef Sk##_type BASE_CLASS |
264 | 264 |
265 #define DEFINE_GET_MEMBER(_class) | 265 #define DEFINE_GET_MEMBER(_class) |
266 #define DEFINE_NO_VIRTUALS_GET_MEMBER(_class) | 266 #define DEFINE_NO_VIRTUALS_GET_MEMBER(_class) |
267 | 267 |
268 #endif | 268 #endif |
269 | 269 |
270 #endif // SkMemberInfo_DEFINED | 270 #endif // SkMemberInfo_DEFINED |
OLD | NEW |