| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2013 Google Inc. All rights reserved. | 2 * Copyright (C) 2013 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 are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * 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 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 42 | 42 |
| 43 class Dictionary; | 43 class Dictionary; |
| 44 class Element; | 44 class Element; |
| 45 class ExceptionState; | 45 class ExceptionState; |
| 46 class SampledEffect; | 46 class SampledEffect; |
| 47 | 47 |
| 48 class Animation FINAL : public AnimationNode { | 48 class Animation FINAL : public AnimationNode { |
| 49 public: | 49 public: |
| 50 enum Priority { DefaultPriority, TransitionPriority }; | 50 enum Priority { DefaultPriority, TransitionPriority }; |
| 51 | 51 |
| 52 static PassRefPtrWillBeRawPtr<Animation> create(Element*, PassRefPtrWillBeRa
wPtr<AnimationEffect>, const Timing&, Priority = DefaultPriority, PassOwnPtr<Eve
ntDelegate> = nullptr); | 52 static PassRefPtrWillBeRawPtr<Animation> create(Element*, PassRefPtrWillBeRa
wPtr<AnimationEffect>, const Timing&, Priority = DefaultPriority, PassOwnPtrWill
BeRawPtr<EventDelegate> = nullptr); |
| 53 // Web Animations API Bindings constructors. | 53 // Web Animations API Bindings constructors. |
| 54 static PassRefPtrWillBeRawPtr<Animation> create(Element*, PassRefPtrWillBeRa
wPtr<AnimationEffect>, const Dictionary& timingInputDictionary); | 54 static PassRefPtrWillBeRawPtr<Animation> create(Element*, PassRefPtrWillBeRa
wPtr<AnimationEffect>, const Dictionary& timingInputDictionary); |
| 55 static PassRefPtrWillBeRawPtr<Animation> create(Element*, PassRefPtrWillBeRa
wPtr<AnimationEffect>, double duration); | 55 static PassRefPtrWillBeRawPtr<Animation> create(Element*, PassRefPtrWillBeRa
wPtr<AnimationEffect>, double duration); |
| 56 static PassRefPtrWillBeRawPtr<Animation> create(Element*, PassRefPtrWillBeRa
wPtr<AnimationEffect>); | 56 static PassRefPtrWillBeRawPtr<Animation> create(Element*, PassRefPtrWillBeRa
wPtr<AnimationEffect>); |
| 57 static PassRefPtrWillBeRawPtr<Animation> create(Element*, const Vector<Dicti
onary>& keyframeDictionaryVector, const Dictionary& timingInputDictionary, Excep
tionState&); | 57 static PassRefPtrWillBeRawPtr<Animation> create(Element*, const Vector<Dicti
onary>& keyframeDictionaryVector, const Dictionary& timingInputDictionary, Excep
tionState&); |
| 58 static PassRefPtrWillBeRawPtr<Animation> create(Element*, const Vector<Dicti
onary>& keyframeDictionaryVector, double duration, ExceptionState&); | 58 static PassRefPtrWillBeRawPtr<Animation> create(Element*, const Vector<Dicti
onary>& keyframeDictionaryVector, double duration, ExceptionState&); |
| 59 static PassRefPtrWillBeRawPtr<Animation> create(Element*, const Vector<Dicti
onary>& keyframeDictionaryVector, ExceptionState&); | 59 static PassRefPtrWillBeRawPtr<Animation> create(Element*, const Vector<Dicti
onary>& keyframeDictionaryVector, ExceptionState&); |
| 60 | 60 |
| 61 virtual ~Animation(); | 61 virtual ~Animation(); |
| 62 | 62 |
| (...skipping 23 matching lines...) Expand all Loading... |
| 86 protected: | 86 protected: |
| 87 void applyEffects(); | 87 void applyEffects(); |
| 88 void clearEffects(); | 88 void clearEffects(); |
| 89 virtual void updateChildrenAndEffects() const OVERRIDE; | 89 virtual void updateChildrenAndEffects() const OVERRIDE; |
| 90 virtual void attach(AnimationPlayer*) OVERRIDE; | 90 virtual void attach(AnimationPlayer*) OVERRIDE; |
| 91 virtual void detach() OVERRIDE; | 91 virtual void detach() OVERRIDE; |
| 92 virtual void specifiedTimingChanged() OVERRIDE; | 92 virtual void specifiedTimingChanged() OVERRIDE; |
| 93 virtual double calculateTimeToEffectChange(bool forwards, double inheritedTi
me, double timeToNextIteration) const OVERRIDE; | 93 virtual double calculateTimeToEffectChange(bool forwards, double inheritedTi
me, double timeToNextIteration) const OVERRIDE; |
| 94 | 94 |
| 95 private: | 95 private: |
| 96 Animation(Element*, PassRefPtrWillBeRawPtr<AnimationEffect>, const Timing&,
Priority, PassOwnPtr<EventDelegate>); | 96 Animation(Element*, PassRefPtrWillBeRawPtr<AnimationEffect>, const Timing&,
Priority, PassOwnPtrWillBeRawPtr<EventDelegate>); |
| 97 | 97 |
| 98 RawPtrWillBeMember<Element> m_target; | 98 RawPtrWillBeMember<Element> m_target; |
| 99 RefPtrWillBeMember<AnimationEffect> m_effect; | 99 RefPtrWillBeMember<AnimationEffect> m_effect; |
| 100 RawPtrWillBeMember<SampledEffect> m_sampledEffect; | 100 RawPtrWillBeMember<SampledEffect> m_sampledEffect; |
| 101 | 101 |
| 102 Priority m_priority; | 102 Priority m_priority; |
| 103 | 103 |
| 104 Vector<int> m_compositorAnimationIds; | 104 Vector<int> m_compositorAnimationIds; |
| 105 | 105 |
| 106 friend class AnimationAnimationV8Test; | 106 friend class AnimationAnimationV8Test; |
| 107 }; | 107 }; |
| 108 | 108 |
| 109 DEFINE_TYPE_CASTS(Animation, AnimationNode, animationNode, animationNode->isAnim
ation(), animationNode.isAnimation()); | 109 DEFINE_TYPE_CASTS(Animation, AnimationNode, animationNode, animationNode->isAnim
ation(), animationNode.isAnimation()); |
| 110 | 110 |
| 111 } // namespace blink | 111 } // namespace blink |
| 112 | 112 |
| 113 #endif | 113 #endif |
| OLD | NEW |