| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2007 Apple Inc. All rights reserved. | 2 * Copyright (C) 2007 Apple 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 11 matching lines...) Expand all Loading... |
| 22 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; | 22 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; |
| 23 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND | 23 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND |
| 24 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 24 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
| 25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF | 25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF |
| 26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 27 */ | 27 */ |
| 28 | 28 |
| 29 #ifndef AnimationController_h | 29 #ifndef AnimationController_h |
| 30 #define AnimationController_h | 30 #define AnimationController_h |
| 31 | 31 |
| 32 #include "CSSPropertyNames.h" |
| 32 #include <wtf/Forward.h> | 33 #include <wtf/Forward.h> |
| 33 | 34 |
| 34 namespace WebCore { | 35 namespace WebCore { |
| 35 | 36 |
| 36 class AnimationBase; | 37 class AnimationBase; |
| 37 class AnimationControllerPrivate; | 38 class AnimationControllerPrivate; |
| 38 class AtomicString; | 39 class AtomicString; |
| 39 class Document; | 40 class Document; |
| 40 class Element; | 41 class Element; |
| 41 class Frame; | 42 class Frame; |
| (...skipping 11 matching lines...) Expand all Loading... |
| 53 PassRefPtr<RenderStyle> updateAnimations(RenderObject*, RenderStyle* newStyl
e); | 54 PassRefPtr<RenderStyle> updateAnimations(RenderObject*, RenderStyle* newStyl
e); |
| 54 PassRefPtr<RenderStyle> getAnimatedStyleForRenderer(RenderObject*); | 55 PassRefPtr<RenderStyle> getAnimatedStyleForRenderer(RenderObject*); |
| 55 | 56 |
| 56 // This is called when an accelerated animation or transition has actually s
tarted to animate. | 57 // This is called when an accelerated animation or transition has actually s
tarted to animate. |
| 57 void notifyAnimationStarted(RenderObject*, double startTime); | 58 void notifyAnimationStarted(RenderObject*, double startTime); |
| 58 | 59 |
| 59 bool pauseAnimationAtTime(RenderObject*, const String& name, double t); // T
o be used only for testing | 60 bool pauseAnimationAtTime(RenderObject*, const String& name, double t); // T
o be used only for testing |
| 60 bool pauseTransitionAtTime(RenderObject*, const String& property, double t);
// To be used only for testing | 61 bool pauseTransitionAtTime(RenderObject*, const String& property, double t);
// To be used only for testing |
| 61 unsigned numberOfActiveAnimations() const; // To be used only for testing | 62 unsigned numberOfActiveAnimations() const; // To be used only for testing |
| 62 | 63 |
| 63 bool isAnimatingPropertyOnRenderer(RenderObject*, int property, bool isRunni
ngNow = true) const; | 64 bool isAnimatingPropertyOnRenderer(RenderObject*, CSSPropertyID, bool isRunn
ingNow = true) const; |
| 64 | 65 |
| 65 void suspendAnimations(Document*); | 66 void suspendAnimations(Document*); |
| 66 void resumeAnimations(Document*); | 67 void resumeAnimations(Document*); |
| 67 | 68 |
| 68 void beginAnimationUpdate(); | 69 void beginAnimationUpdate(); |
| 69 void endAnimationUpdate(); | 70 void endAnimationUpdate(); |
| 71 |
| 72 static bool supportsAcceleratedAnimationOfProperty(CSSPropertyID); |
| 70 | 73 |
| 71 private: | 74 private: |
| 72 AnimationControllerPrivate* m_data; | 75 AnimationControllerPrivate* m_data; |
| 73 }; | 76 }; |
| 74 | 77 |
| 75 } // namespace WebCore | 78 } // namespace WebCore |
| 76 | 79 |
| 77 #endif // AnimationController_h | 80 #endif // AnimationController_h |
| 78 | 81 |
| OLD | NEW |