OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2013 Google Inc. All rights reserved. | 2 * Copyright (C) 2013 Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
65 bool isDoubleAndBool() const { return type() == TypeDoubleAndBool; } | 65 bool isDoubleAndBool() const { return type() == TypeDoubleAndBool; } |
66 bool isFilterOperations() const { return type() == TypeFilterOperations; } | 66 bool isFilterOperations() const { return type() == TypeFilterOperations; } |
67 bool isImage() const { return type() == TypeImage; } | 67 bool isImage() const { return type() == TypeImage; } |
68 bool isLength() const { return type() == TypeLength; } | 68 bool isLength() const { return type() == TypeLength; } |
69 bool isLengthBox() const { return type() == TypeLengthBox; } | 69 bool isLengthBox() const { return type() == TypeLengthBox; } |
70 bool isLengthBoxAndBool() const { return type() == TypeLengthBoxAndBool; } | 70 bool isLengthBoxAndBool() const { return type() == TypeLengthBoxAndBool; } |
71 bool isLengthPoint() const { return type() == TypeLengthPoint; } | 71 bool isLengthPoint() const { return type() == TypeLengthPoint; } |
72 bool isLengthPoint3D() const { return type() == TypeLengthPoint3D; } | 72 bool isLengthPoint3D() const { return type() == TypeLengthPoint3D; } |
73 bool isLengthSize() const { return type() == TypeLengthSize; } | 73 bool isLengthSize() const { return type() == TypeLengthSize; } |
74 bool isNeutral() const { return type() == TypeNeutral; } | 74 bool isNeutral() const { return type() == TypeNeutral; } |
| 75 bool isPath() const { return type() == TypePath; } |
75 bool isRepeatable() const { return type() == TypeRepeatable; } | 76 bool isRepeatable() const { return type() == TypeRepeatable; } |
76 bool isSVGLength() const { return type() == TypeSVGLength; } | 77 bool isSVGLength() const { return type() == TypeSVGLength; } |
77 bool isSVGPaint() const { return type() == TypeSVGPaint; } | 78 bool isSVGPaint() const { return type() == TypeSVGPaint; } |
78 bool isShadow() const { return type() == TypeShadow; } | 79 bool isShadow() const { return type() == TypeShadow; } |
79 bool isShapeValue() const { return type() == TypeShapeValue; } | 80 bool isShapeValue() const { return type() == TypeShapeValue; } |
80 bool isStrokeDasharrayList() const { return type() == TypeStrokeDasharrayLis
t; } | 81 bool isStrokeDasharrayList() const { return type() == TypeStrokeDasharrayLis
t; } |
81 bool isTransform() const { return type() == TypeTransform; } | 82 bool isTransform() const { return type() == TypeTransform; } |
82 bool isUnknown() const { return type() == TypeUnknown; } | 83 bool isUnknown() const { return type() == TypeUnknown; } |
83 bool isVisibility() const { return type() == TypeVisibility; } | 84 bool isVisibility() const { return type() == TypeVisibility; } |
84 | 85 |
(...skipping 11 matching lines...) Expand all Loading... |
96 TypeDoubleAndBool, | 97 TypeDoubleAndBool, |
97 TypeFilterOperations, | 98 TypeFilterOperations, |
98 TypeImage, | 99 TypeImage, |
99 TypeLength, | 100 TypeLength, |
100 TypeLengthBox, | 101 TypeLengthBox, |
101 TypeLengthBoxAndBool, | 102 TypeLengthBoxAndBool, |
102 TypeLengthPoint, | 103 TypeLengthPoint, |
103 TypeLengthPoint3D, | 104 TypeLengthPoint3D, |
104 TypeLengthSize, | 105 TypeLengthSize, |
105 TypeNeutral, | 106 TypeNeutral, |
| 107 TypePath, |
106 TypeRepeatable, | 108 TypeRepeatable, |
107 TypeSVGLength, | 109 TypeSVGLength, |
108 TypeSVGPaint, | 110 TypeSVGPaint, |
109 TypeShadow, | 111 TypeShadow, |
110 TypeShapeValue, | 112 TypeShapeValue, |
111 TypeStrokeDasharrayList, | 113 TypeStrokeDasharrayList, |
112 TypeTransform, | 114 TypeTransform, |
113 TypeUnknown, | 115 TypeUnknown, |
114 TypeVisibility, | 116 TypeVisibility, |
115 }; | 117 }; |
(...skipping 12 matching lines...) Expand all Loading... |
128 | 130 |
129 template <class Keyframe> friend class KeyframeEffectModel; | 131 template <class Keyframe> friend class KeyframeEffectModel; |
130 }; | 132 }; |
131 | 133 |
132 #define DEFINE_ANIMATABLE_VALUE_TYPE_CASTS(thisType, predicate) \ | 134 #define DEFINE_ANIMATABLE_VALUE_TYPE_CASTS(thisType, predicate) \ |
133 DEFINE_TYPE_CASTS(thisType, AnimatableValue, value, value->predicate, value.
predicate) | 135 DEFINE_TYPE_CASTS(thisType, AnimatableValue, value, value->predicate, value.
predicate) |
134 | 136 |
135 } // namespace blink | 137 } // namespace blink |
136 | 138 |
137 #endif // AnimatableValue_h | 139 #endif // AnimatableValue_h |
OLD | NEW |