| 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 CustomCompositorAnimations_h | 5 #ifndef CustomCompositorAnimations_h |
| 6 #define CustomCompositorAnimations_h | 6 #define CustomCompositorAnimations_h |
| 7 | 7 |
| 8 #include "core/animation/Animation.h" | 8 #include "core/animation/Animation.h" |
| 9 #include "platform/heap/Handle.h" | 9 #include "platform/heap/Handle.h" |
| 10 #include "wtf/Noncopyable.h" | 10 #include "platform/wtf/Noncopyable.h" |
| 11 | 11 |
| 12 namespace blink { | 12 namespace blink { |
| 13 | 13 |
| 14 class Element; | 14 class Element; |
| 15 class CompositorMutation; | 15 class CompositorMutation; |
| 16 | 16 |
| 17 class CustomCompositorAnimations final { | 17 class CustomCompositorAnimations final { |
| 18 DISALLOW_NEW(); | 18 DISALLOW_NEW(); |
| 19 WTF_MAKE_NONCOPYABLE(CustomCompositorAnimations); | 19 WTF_MAKE_NONCOPYABLE(CustomCompositorAnimations); |
| 20 | 20 |
| 21 public: | 21 public: |
| 22 CustomCompositorAnimations() {} | 22 CustomCompositorAnimations() {} |
| 23 void applyUpdate(Element&, const CompositorMutation&); | 23 void applyUpdate(Element&, const CompositorMutation&); |
| 24 | 24 |
| 25 DEFINE_INLINE_TRACE() { visitor->trace(m_animation); } | 25 DEFINE_INLINE_TRACE() { visitor->trace(m_animation); } |
| 26 | 26 |
| 27 private: | 27 private: |
| 28 Member<Animation> m_animation; | 28 Member<Animation> m_animation; |
| 29 }; | 29 }; |
| 30 | 30 |
| 31 } // namespace blink | 31 } // namespace blink |
| 32 | 32 |
| 33 #endif | 33 #endif |
| OLD | NEW |