Chromium Code Reviews| Index: third_party/WebKit/Source/core/animation/CustomCompositorAnimations.h |
| diff --git a/third_party/WebKit/Source/core/animation/CustomCompositorAnimations.h b/third_party/WebKit/Source/core/animation/CustomCompositorAnimations.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..b0eadef9db0922ce921170e79f9f812e24255be5 |
| --- /dev/null |
| +++ b/third_party/WebKit/Source/core/animation/CustomCompositorAnimations.h |
| @@ -0,0 +1,36 @@ |
| +// Copyright 2016 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef CustomCompositorAnimations_h |
| +#define CustomCompositorAnimations_h |
| + |
| +#include "core/animation/Animation.h" |
| +#include "platform/heap/Handle.h" |
| +#include "wtf/Noncopyable.h" |
| + |
| +namespace blink { |
| + |
| +class Element; |
| +class CompositorMutation; |
| + |
| +class CustomCompositorAnimations final { |
| + DISALLOW_NEW(); |
| + WTF_MAKE_NONCOPYABLE(CustomCompositorAnimations); |
| + |
| +public: |
| + CustomCompositorAnimations() {} |
|
esprehn
2016/03/22 21:16:49
can we move these out of line?
|
| + void applyUpdate(Element&, const CompositorMutation&); |
| + |
| + DEFINE_INLINE_TRACE() |
| + { |
| + visitor->trace(m_animation); |
| + } |
| + |
| +private: |
| + Member<Animation> m_animation; |
| +}; |
| + |
| +} // namespace blink |
| + |
| +#endif |