Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(594)

Side by Side Diff: third_party/WebKit/Source/core/animation/KeyframeEffect.h

Issue 2234683002: Remove EffectModel IDL interface (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 50
51 // Represents the effect of an Animation on an Element's properties. 51 // Represents the effect of an Animation on an Element's properties.
52 // http://w3c.github.io/web-animations/#keyframe-effect 52 // http://w3c.github.io/web-animations/#keyframe-effect
53 class CORE_EXPORT KeyframeEffect final : public AnimationEffect { 53 class CORE_EXPORT KeyframeEffect final : public AnimationEffect {
54 DEFINE_WRAPPERTYPEINFO(); 54 DEFINE_WRAPPERTYPEINFO();
55 public: 55 public:
56 enum Priority { DefaultPriority, TransitionPriority }; 56 enum Priority { DefaultPriority, TransitionPriority };
57 57
58 static KeyframeEffect* create(Element*, EffectModel*, const Timing&, Priorit y = DefaultPriority, EventDelegate* = nullptr); 58 static KeyframeEffect* create(Element*, EffectModel*, const Timing&, Priorit y = DefaultPriority, EventDelegate* = nullptr);
59 // Web Animations API Bindings constructors. 59 // Web Animations API Bindings constructors.
60 static KeyframeEffect* create(ExecutionContext*, Element*, const EffectModel OrDictionarySequenceOrDictionary& effectInput, double duration, ExceptionState&) ; 60 static KeyframeEffect* create(ExecutionContext*, Element*, const DictionaryS equenceOrDictionary& effectInput, double duration, ExceptionState&);
61 static KeyframeEffect* create(ExecutionContext*, Element*, const EffectModel OrDictionarySequenceOrDictionary& effectInput, const KeyframeEffectOptions& timi ngInput, ExceptionState&); 61 static KeyframeEffect* create(ExecutionContext*, Element*, const DictionaryS equenceOrDictionary& effectInput, const KeyframeEffectOptions& timingInput, Exce ptionState&);
62 static KeyframeEffect* create(ExecutionContext*, Element*, const EffectModel OrDictionarySequenceOrDictionary& effectInput, ExceptionState&); 62 static KeyframeEffect* create(ExecutionContext*, Element*, const DictionaryS equenceOrDictionary& effectInput, ExceptionState&);
63 63
64 ~KeyframeEffect() override; 64 ~KeyframeEffect() override;
65 65
66 bool isKeyframeEffect() const override { return true; } 66 bool isKeyframeEffect() const override { return true; }
67 67
68 bool affects(PropertyHandle) const; 68 bool affects(PropertyHandle) const;
69 const EffectModel* model() const { return m_model.get(); } 69 const EffectModel* model() const { return m_model.get(); }
70 EffectModel* model() { return m_model.get(); } 70 EffectModel* model() { return m_model.get(); }
71 void setModel(EffectModel* model) { m_model = model; } 71 void setModel(EffectModel* model) { m_model = model; }
72 Priority getPriority() const { return m_priority; } 72 Priority getPriority() const { return m_priority; }
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
115 Vector<int> m_compositorAnimationIds; 115 Vector<int> m_compositorAnimationIds;
116 116
117 friend class AnimationAnimationV8Test; 117 friend class AnimationAnimationV8Test;
118 }; 118 };
119 119
120 DEFINE_TYPE_CASTS(KeyframeEffect, AnimationEffect, animationNode, animationNode- >isKeyframeEffect(), animationNode.isKeyframeEffect()); 120 DEFINE_TYPE_CASTS(KeyframeEffect, AnimationEffect, animationNode, animationNode- >isKeyframeEffect(), animationNode.isKeyframeEffect());
121 121
122 } // namespace blink 122 } // namespace blink
123 123
124 #endif // KeyframeEffect_h 124 #endif // KeyframeEffect_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698