OLD | NEW |
(Empty) | |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef KeyframeEffectReadOnly_h |
| 6 #define KeyframeEffectReadOnly_h |
| 7 |
| 8 #include "core/CoreExport.h" |
| 9 #include "core/animation/AnimationEffectReadOnly.h" |
| 10 #include "core/animation/EffectModel.h" |
| 11 |
| 12 namespace blink { |
| 13 |
| 14 class KeyframeEffectOptions; |
| 15 class DictionarySequenceOrDictionary; |
| 16 class Element; |
| 17 class ExceptionState; |
| 18 class ExecutionContext; |
| 19 class SampledEffect; |
| 20 |
| 21 // Represents the effect of an Animation on an Element's properties. |
| 22 // http://w3c.github.io/web-animations/#the-keyframeeffect-interfaces |
| 23 class CORE_EXPORT KeyframeEffectReadOnly : public AnimationEffectReadOnly { |
| 24 DEFINE_WRAPPERTYPEINFO(); |
| 25 public: |
| 26 static KeyframeEffectReadOnly* create(ExecutionContext*, Element*, const Dic
tionarySequenceOrDictionary& effectInput, double duration, ExceptionState&); |
| 27 static KeyframeEffectReadOnly* create(ExecutionContext*, Element*, const Dic
tionarySequenceOrDictionary& effectInput, const KeyframeEffectOptions& timingInp
ut, ExceptionState&); |
| 28 static KeyframeEffectReadOnly* create(ExecutionContext*, Element*, const Dic
tionarySequenceOrDictionary& effectInput, ExceptionState&); |
| 29 |
| 30 ~KeyframeEffectReadOnly() override {} |
| 31 |
| 32 DECLARE_VIRTUAL_TRACE(); |
| 33 |
| 34 protected: |
| 35 KeyframeEffectReadOnly(Element*, EffectModel*, const Timing&, EventDelegate*
); |
| 36 |
| 37 Member<Element> m_target; |
| 38 Member<EffectModel> m_model; |
| 39 Member<SampledEffect> m_sampledEffect; |
| 40 }; |
| 41 |
| 42 } // namespace blink |
| 43 |
| 44 #endif // KeyframeEffectReadOnly_h |
OLD | NEW |