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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
49 AnimationController(Frame*); | 49 AnimationController(Frame*); |
50 ~AnimationController(); | 50 ~AnimationController(); |
51 | 51 |
52 void cancelAnimations(RenderObject*); | 52 void cancelAnimations(RenderObject*); |
53 PassRefPtr<RenderStyle> updateAnimations(RenderObject*, RenderStyle* newStyl
e); | 53 PassRefPtr<RenderStyle> updateAnimations(RenderObject*, RenderStyle* newStyl
e); |
54 PassRefPtr<RenderStyle> getAnimatedStyleForRenderer(RenderObject*); | 54 PassRefPtr<RenderStyle> getAnimatedStyleForRenderer(RenderObject*); |
55 | 55 |
56 // This is called when an accelerated animation or transition has actually s
tarted to animate. | 56 // This is called when an accelerated animation or transition has actually s
tarted to animate. |
57 void notifyAnimationStarted(RenderObject*, double startTime); | 57 void notifyAnimationStarted(RenderObject*, double startTime); |
58 | 58 |
59 bool pauseAnimationAtTime(RenderObject*, const AtomicString& name, double t)
; // To be used only for testing | 59 void pauseAnimationsForTesting(double t); |
60 bool pauseTransitionAtTime(RenderObject*, const String& property, double t);
// To be used only for testing | |
61 unsigned numberOfActiveAnimations(Document*) const; // To be used only for t
esting | 60 unsigned numberOfActiveAnimations(Document*) const; // To be used only for t
esting |
62 | 61 |
63 bool isRunningAnimationOnRenderer(RenderObject*, CSSPropertyID, bool isRunni
ngNow = true) const; | 62 bool isRunningAnimationOnRenderer(RenderObject*, CSSPropertyID, bool isRunni
ngNow = true) const; |
64 bool isRunningAcceleratedAnimationOnRenderer(RenderObject*, CSSPropertyID, b
ool isRunningNow = true) const; | 63 bool isRunningAcceleratedAnimationOnRenderer(RenderObject*, CSSPropertyID, b
ool isRunningNow = true) const; |
65 | 64 |
66 void suspendAnimations(); | 65 void suspendAnimations(); |
67 void resumeAnimations(); | 66 void resumeAnimations(); |
68 void serviceAnimations(); | 67 void serviceAnimations(); |
69 | 68 |
70 void suspendAnimationsForDocument(Document*); | 69 void suspendAnimationsForDocument(Document*); |
(...skipping 23 matching lines...) Expand all Loading... |
94 if (m_animationController) | 93 if (m_animationController) |
95 m_animationController->endAnimationUpdate(); | 94 m_animationController->endAnimationUpdate(); |
96 } | 95 } |
97 | 96 |
98 AnimationController* m_animationController; | 97 AnimationController* m_animationController; |
99 }; | 98 }; |
100 | 99 |
101 } // namespace WebCore | 100 } // namespace WebCore |
102 | 101 |
103 #endif // AnimationController_h | 102 #endif // AnimationController_h |
OLD | NEW |