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 28 matching lines...) Expand all Loading... |
39 #include "wtf/RefPtr.h" | 39 #include "wtf/RefPtr.h" |
40 | 40 |
41 namespace blink { | 41 namespace blink { |
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 DEFINE_WRAPPERTYPEINFO(); |
49 public: | 50 public: |
50 enum Priority { DefaultPriority, TransitionPriority }; | 51 enum Priority { DefaultPriority, TransitionPriority }; |
51 | 52 |
52 static PassRefPtrWillBeRawPtr<Animation> create(Element*, PassRefPtrWillBeRa
wPtr<AnimationEffect>, const Timing&, Priority = DefaultPriority, PassOwnPtrWill
BeRawPtr<EventDelegate> = nullptr); | 53 static PassRefPtrWillBeRawPtr<Animation> create(Element*, PassRefPtrWillBeRa
wPtr<AnimationEffect>, const Timing&, Priority = DefaultPriority, PassOwnPtrWill
BeRawPtr<EventDelegate> = nullptr); |
53 // Web Animations API Bindings constructors. | 54 // Web Animations API Bindings constructors. |
54 static PassRefPtrWillBeRawPtr<Animation> create(Element*, PassRefPtrWillBeRa
wPtr<AnimationEffect>, const Dictionary& timingInputDictionary); | 55 static PassRefPtrWillBeRawPtr<Animation> create(Element*, PassRefPtrWillBeRa
wPtr<AnimationEffect>, const Dictionary& timingInputDictionary); |
55 static PassRefPtrWillBeRawPtr<Animation> create(Element*, PassRefPtrWillBeRa
wPtr<AnimationEffect>, double duration); | 56 static PassRefPtrWillBeRawPtr<Animation> create(Element*, PassRefPtrWillBeRa
wPtr<AnimationEffect>, double duration); |
56 static PassRefPtrWillBeRawPtr<Animation> create(Element*, PassRefPtrWillBeRa
wPtr<AnimationEffect>); | 57 static PassRefPtrWillBeRawPtr<Animation> create(Element*, PassRefPtrWillBeRa
wPtr<AnimationEffect>); |
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, const Dictionary& timingInputDictionary, Excep
tionState&); |
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, double duration, ExceptionState&); |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
103 | 104 |
104 Vector<int> m_compositorAnimationIds; | 105 Vector<int> m_compositorAnimationIds; |
105 | 106 |
106 friend class AnimationAnimationV8Test; | 107 friend class AnimationAnimationV8Test; |
107 }; | 108 }; |
108 | 109 |
109 DEFINE_TYPE_CASTS(Animation, AnimationNode, animationNode, animationNode->isAnim
ation(), animationNode.isAnimation()); | 110 DEFINE_TYPE_CASTS(Animation, AnimationNode, animationNode, animationNode->isAnim
ation(), animationNode.isAnimation()); |
110 | 111 |
111 } // namespace blink | 112 } // namespace blink |
112 | 113 |
113 #endif | 114 #endif // Animation_h |
OLD | NEW |