| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef KeyframeEffectReadOnly_h | 5 #ifndef KeyframeEffectReadOnly_h |
| 6 #define KeyframeEffectReadOnly_h | 6 #define KeyframeEffectReadOnly_h |
| 7 | 7 |
| 8 #include "core/CoreExport.h" | 8 #include "core/CoreExport.h" |
| 9 #include "core/animation/AnimationEffectReadOnly.h" | 9 #include "core/animation/AnimationEffectReadOnly.h" |
| 10 #include "core/animation/CompositorAnimations.h" | 10 #include "core/animation/CompositorAnimations.h" |
| 11 #include "core/animation/EffectModel.h" | 11 #include "core/animation/EffectModel.h" |
| 12 | 12 |
| 13 namespace blink { | 13 namespace blink { |
| 14 | 14 |
| 15 class DictionarySequenceOrDictionary; | 15 class DictionarySequenceOrDictionary; |
| 16 class CompositorAnimationPlayer; |
| 16 class Element; | 17 class Element; |
| 17 class ExceptionState; | 18 class ExceptionState; |
| 18 class ExecutionContext; | 19 class ExecutionContext; |
| 19 class PropertyHandle; | 20 class PropertyHandle; |
| 20 class SampledEffect; | 21 class SampledEffect; |
| 21 class UnrestrictedDoubleOrKeyframeEffectOptions; | 22 class UnrestrictedDoubleOrKeyframeEffectOptions; |
| 22 | 23 |
| 23 // Represents the effect of an Animation on an Element's properties. | 24 // Represents the effect of an Animation on an Element's properties. |
| 24 // http://w3c.github.io/web-animations/#the-keyframeeffect-interfaces | 25 // http://w3c.github.io/web-animations/#the-keyframeeffect-interfaces |
| 25 class CORE_EXPORT KeyframeEffectReadOnly : public AnimationEffectReadOnly { | 26 class CORE_EXPORT KeyframeEffectReadOnly : public AnimationEffectReadOnly { |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 58 Element* Target() const { return target_; } | 59 Element* Target() const { return target_; } |
| 59 | 60 |
| 60 void NotifySampledEffectRemovedFromEffectStack(); | 61 void NotifySampledEffectRemovedFromEffectStack(); |
| 61 | 62 |
| 62 CompositorAnimations::FailureCode CheckCanStartAnimationOnCompositor( | 63 CompositorAnimations::FailureCode CheckCanStartAnimationOnCompositor( |
| 63 double animation_playback_rate) const; | 64 double animation_playback_rate) const; |
| 64 // Must only be called once. | 65 // Must only be called once. |
| 65 void StartAnimationOnCompositor(int group, | 66 void StartAnimationOnCompositor(int group, |
| 66 double start_time, | 67 double start_time, |
| 67 double time_offset, | 68 double time_offset, |
| 68 double animation_playback_rate); | 69 double animation_playback_rate, |
| 70 CompositorAnimationPlayer*); |
| 69 bool HasActiveAnimationsOnCompositor() const; | 71 bool HasActiveAnimationsOnCompositor() const; |
| 70 bool HasActiveAnimationsOnCompositor(const PropertyHandle&) const; | 72 bool HasActiveAnimationsOnCompositor(const PropertyHandle&) const; |
| 71 bool CancelAnimationOnCompositor(); | 73 bool CancelAnimationOnCompositor(); |
| 72 void RestartAnimationOnCompositor(); | 74 void RestartAnimationOnCompositor(); |
| 73 void CancelIncompatibleAnimationsOnCompositor(); | 75 void CancelIncompatibleAnimationsOnCompositor(); |
| 74 void PauseAnimationForTestingOnCompositor(double pause_time); | 76 void PauseAnimationForTestingOnCompositor(double pause_time); |
| 75 | 77 |
| 76 void AttachCompositedLayers(); | 78 void AttachCompositedLayers(); |
| 77 | 79 |
| 78 void SetCompositorAnimationIdsForTesting( | 80 void SetCompositorAnimationIdsForTesting( |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 116 | 118 |
| 117 DEFINE_TYPE_CASTS(KeyframeEffectReadOnly, | 119 DEFINE_TYPE_CASTS(KeyframeEffectReadOnly, |
| 118 AnimationEffectReadOnly, | 120 AnimationEffectReadOnly, |
| 119 animationNode, | 121 animationNode, |
| 120 animationNode->IsKeyframeEffectReadOnly(), | 122 animationNode->IsKeyframeEffectReadOnly(), |
| 121 animationNode.IsKeyframeEffectReadOnly()); | 123 animationNode.IsKeyframeEffectReadOnly()); |
| 122 | 124 |
| 123 } // namespace blink | 125 } // namespace blink |
| 124 | 126 |
| 125 #endif // KeyframeEffectReadOnly_h | 127 #endif // KeyframeEffectReadOnly_h |
| OLD | NEW |