| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2009 Apple Inc. All rights reserved. | 2 * Copyright (C) 2009 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 12 matching lines...) Expand all Loading... |
| 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 AnimationControllerPrivate_h | 29 #ifndef AnimationControllerPrivate_h |
| 30 #define AnimationControllerPrivate_h | 30 #define AnimationControllerPrivate_h |
| 31 | 31 |
| 32 #include "AtomicString.h" | 32 #include "AtomicString.h" |
| 33 #include "CSSPropertyNames.h" |
| 33 #include "PlatformString.h" | 34 #include "PlatformString.h" |
| 34 #include "Timer.h" | 35 #include "Timer.h" |
| 35 #include <wtf/HashMap.h> | 36 #include <wtf/HashMap.h> |
| 36 #include <wtf/PassRefPtr.h> | 37 #include <wtf/PassRefPtr.h> |
| 37 #include <wtf/RefPtr.h> | 38 #include <wtf/RefPtr.h> |
| 38 #include <wtf/Vector.h> | 39 #include <wtf/Vector.h> |
| 39 | 40 |
| 40 namespace WebCore { | 41 namespace WebCore { |
| 41 | 42 |
| 42 class AnimationBase; | 43 class AnimationBase; |
| (...skipping 19 matching lines...) Expand all Loading... |
| 62 void updateRenderingDispatcherFired(Timer<AnimationControllerPrivate>*); | 63 void updateRenderingDispatcherFired(Timer<AnimationControllerPrivate>*); |
| 63 void startUpdateRenderingDispatcher(); | 64 void startUpdateRenderingDispatcher(); |
| 64 void addEventToDispatch(PassRefPtr<Element> element, const AtomicString& eve
ntType, const String& name, double elapsedTime); | 65 void addEventToDispatch(PassRefPtr<Element> element, const AtomicString& eve
ntType, const String& name, double elapsedTime); |
| 65 void addNodeChangeToDispatch(PassRefPtr<Node>); | 66 void addNodeChangeToDispatch(PassRefPtr<Node>); |
| 66 | 67 |
| 67 bool hasAnimations() const { return !m_compositeAnimations.isEmpty(); } | 68 bool hasAnimations() const { return !m_compositeAnimations.isEmpty(); } |
| 68 | 69 |
| 69 void suspendAnimations(Document*); | 70 void suspendAnimations(Document*); |
| 70 void resumeAnimations(Document*); | 71 void resumeAnimations(Document*); |
| 71 | 72 |
| 72 bool isAnimatingPropertyOnRenderer(RenderObject*, int property, bool isRunni
ngNow) const; | 73 bool isAnimatingPropertyOnRenderer(RenderObject*, CSSPropertyID, bool isRunn
ingNow) const; |
| 73 | 74 |
| 74 bool pauseAnimationAtTime(RenderObject*, const String& name, double t); | 75 bool pauseAnimationAtTime(RenderObject*, const String& name, double t); |
| 75 bool pauseTransitionAtTime(RenderObject*, const String& property, double t); | 76 bool pauseTransitionAtTime(RenderObject*, const String& property, double t); |
| 76 unsigned numberOfActiveAnimations() const; | 77 unsigned numberOfActiveAnimations() const; |
| 77 | 78 |
| 78 PassRefPtr<RenderStyle> getAnimatedStyleForRenderer(RenderObject* renderer); | 79 PassRefPtr<RenderStyle> getAnimatedStyleForRenderer(RenderObject* renderer); |
| 79 | 80 |
| 80 double beginAnimationUpdateTime(); | 81 double beginAnimationUpdateTime(); |
| 81 void setBeginAnimationUpdateTime(double t) { m_beginAnimationUpdateTime = t;
} | 82 void setBeginAnimationUpdateTime(double t) { m_beginAnimationUpdateTime = t;
} |
| 82 void endAnimationUpdate() | 83 void endAnimationUpdate() |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 125 AnimationBase* m_lastStyleAvailableWaiter; | 126 AnimationBase* m_lastStyleAvailableWaiter; |
| 126 | 127 |
| 127 AnimationBase* m_responseWaiters; | 128 AnimationBase* m_responseWaiters; |
| 128 AnimationBase* m_lastResponseWaiter; | 129 AnimationBase* m_lastResponseWaiter; |
| 129 bool m_waitingForAResponse; | 130 bool m_waitingForAResponse; |
| 130 }; | 131 }; |
| 131 | 132 |
| 132 } // namespace WebCore | 133 } // namespace WebCore |
| 133 | 134 |
| 134 #endif // AnimationControllerPrivate_h | 135 #endif // AnimationControllerPrivate_h |
| OLD | NEW |