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. | |
skobes
2015/12/18 19:05:58
Explain how aborting is different from removing.
ymalik
2015/12/18 19:35:47
Done.
| |
164 virtual void abortAnimation(int animationId) = 0; | |
165 | |
163 // Returns true if this layer has any active animations - useful for tests. | 166 // Returns true if this layer has any active animations - useful for tests. |
164 virtual bool hasActiveAnimation() = 0; | 167 virtual bool hasActiveAnimation() = 0; |
165 | 168 |
166 // If a scroll parent is set, this layer will inherit its parent's scroll | 169 // 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 | 170 // delta and offset even though it will not be a descendant of the scroll |
168 // in the layer hierarchy. | 171 // in the layer hierarchy. |
169 virtual void setScrollParent(WebLayer*) = 0; | 172 virtual void setScrollParent(WebLayer*) = 0; |
170 | 173 |
171 // A layer will not respect any clips established by layers between it and | 174 // 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. | 175 // 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; | 254 virtual void setElementId(uint64_t) = 0; |
252 virtual uint64_t elementId() const = 0; | 255 virtual uint64_t elementId() const = 0; |
253 | 256 |
254 virtual void setCompositorMutableProperties(uint32_t) = 0; | 257 virtual void setCompositorMutableProperties(uint32_t) = 0; |
255 virtual uint32_t compositorMutableProperties() const = 0; | 258 virtual uint32_t compositorMutableProperties() const = 0; |
256 }; | 259 }; |
257 | 260 |
258 } // namespace blink | 261 } // namespace blink |
259 | 262 |
260 #endif // WebLayer_h | 263 #endif // WebLayer_h |
OLD | NEW |