OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2011 Google Inc. All rights reserved. | 2 * Copyright (C) 2011 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 | 5 * modification, are permitted provided that the following conditions |
6 * are met: | 6 * are met: |
7 * | 7 * |
8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. 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 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
153 | 153 |
154 // Removes all animations with the given id. | 154 // Removes all animations with the given id. |
155 virtual void removeAnimation(int animationId) = 0; | 155 virtual void removeAnimation(int animationId) = 0; |
156 | 156 |
157 // Removes all animations with the given id targeting the given property. | 157 // Removes all animations with the given id targeting the given property. |
158 virtual void removeAnimation(int animationId, WebCompositorAnimation::Target
Property) = 0; | 158 virtual void removeAnimation(int animationId, WebCompositorAnimation::Target
Property) = 0; |
159 | 159 |
160 // Pauses all animations with the given id. | 160 // Pauses all animations with the given id. |
161 virtual void pauseAnimation(int animationId, double timeOffset) = 0; | 161 virtual void pauseAnimation(int animationId, double timeOffset) = 0; |
162 | 162 |
| 163 // Aborts all animations with the given id. Different from removeAnimation |
| 164 // in that aborting an animation stops it from affecting both the pending |
| 165 // and active tree. |
| 166 virtual void abortAnimation(int animationId) = 0; |
| 167 |
163 // Returns true if this layer has any active animations - useful for tests. | 168 // Returns true if this layer has any active animations - useful for tests. |
164 virtual bool hasActiveAnimation() = 0; | 169 virtual bool hasActiveAnimation() = 0; |
165 | 170 |
166 // If a scroll parent is set, this layer will inherit its parent's scroll | 171 // If a scroll parent is set, this layer will inherit its parent's scroll |
167 // delta and offset even though it will not be a descendant of the scroll | 172 // delta and offset even though it will not be a descendant of the scroll |
168 // in the layer hierarchy. | 173 // in the layer hierarchy. |
169 virtual void setScrollParent(WebLayer*) = 0; | 174 virtual void setScrollParent(WebLayer*) = 0; |
170 | 175 |
171 // A layer will not respect any clips established by layers between it and | 176 // A layer will not respect any clips established by layers between it and |
172 // its nearest clipping ancestor. Note, the clip parent must be an ancestor. | 177 // its nearest clipping ancestor. Note, the clip parent must be an ancestor. |
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
251 virtual void setElementId(uint64_t) = 0; | 256 virtual void setElementId(uint64_t) = 0; |
252 virtual uint64_t elementId() const = 0; | 257 virtual uint64_t elementId() const = 0; |
253 | 258 |
254 virtual void setCompositorMutableProperties(uint32_t) = 0; | 259 virtual void setCompositorMutableProperties(uint32_t) = 0; |
255 virtual uint32_t compositorMutableProperties() const = 0; | 260 virtual uint32_t compositorMutableProperties() const = 0; |
256 }; | 261 }; |
257 | 262 |
258 } // namespace blink | 263 } // namespace blink |
259 | 264 |
260 #endif // WebLayer_h | 265 #endif // WebLayer_h |
OLD | NEW |