Chromium Code Reviews| Index: third_party/WebKit/Source/platform/animation/CompositorAnimationHost.h |
| diff --git a/third_party/WebKit/Source/platform/animation/CompositorAnimationHost.h b/third_party/WebKit/Source/platform/animation/CompositorAnimationHost.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..0496cd36ed1f2b64438526020832c18444347fad |
| --- /dev/null |
| +++ b/third_party/WebKit/Source/platform/animation/CompositorAnimationHost.h |
| @@ -0,0 +1,41 @@ |
| +// 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 CompositorAnimationHost_h |
| +#define CompositorAnimationHost_h |
| + |
| +#include "base/memory/ref_counted.h" |
| +#include "platform/PlatformExport.h" |
| +#include "ui/gfx/geometry/vector2d.h" |
| +#include "wtf/Noncopyable.h" |
| + |
| +#include <memory> |
| + |
| +namespace cc { |
| +class AnimationHost; |
| +struct ScrollOffsetAnimationUpdate; |
| +} |
| + |
| +namespace blink { |
| + |
| +// A compositor representation for cc::AnimationHost. |
| +// This class wraps cc::AnimationHost and is currently only created from |
| +// CompositorAnimationTimeline::compositorAnimationHost. |
| +// TODO(ymalik): Correctly introduce CompositorAnimationHost to blink. See |
| +// crbug.com/610763. |
|
loyso (OOO)
2016/05/11 06:25:45
Probably same bug link needed on CompositorAnimati
ymalik
2016/05/12 22:31:25
Done.
|
| +class PLATFORM_EXPORT CompositorAnimationHost { |
| +public: |
| + CompositorAnimationHost(cc::AnimationHost*); |
|
loyso (OOO)
2016/05/11 06:25:45
explicit
ymalik
2016/05/12 22:31:25
Done.
|
| + |
| + cc::AnimationHost* animationHost() const; |
| + |
| + void updateImplOnlyScrollOffsetAnimation(const gfx::Vector2dF& adjustment, int elementId); |
|
loyso (OOO)
2016/05/11 06:25:45
cc::ElementId
ymalik
2016/05/12 22:31:25
Done.
|
| + |
| +private: |
| + cc::AnimationHost* m_animationHost; |
| +}; |
| + |
| +} // namespace blink |
| + |
| +#endif // CompositorAnimationTimeline_h |