blob: faedf905b3a7d0177f9b4b6a6d27ccafc699dd77 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
// Copyright 2012 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 WEBKIT_RENDERER_COMPOSITOR_BINDINGS_WEB_ANIMATION_IMPL_H_
#define WEBKIT_RENDERER_COMPOSITOR_BINDINGS_WEB_ANIMATION_IMPL_H_
#include "base/memory/scoped_ptr.h"
#include "third_party/WebKit/public/platform/WebAnimation.h"
#include "webkit/renderer/compositor_bindings/webkit_compositor_bindings_export.h"
namespace cc { class Animation; }
namespace WebKit { class WebAnimationCurve; }
namespace webkit {
class WebAnimationImpl : public WebKit::WebAnimation {
public:
WEBKIT_COMPOSITOR_BINDINGS_EXPORT WebAnimationImpl(
const WebKit::WebAnimationCurve& curve,
TargetProperty target,
int animation_id,
int group_id);
virtual ~WebAnimationImpl();
// WebKit::WebAnimation implementation
virtual int id();
virtual TargetProperty targetProperty() const;
virtual int iterations() const;
virtual void setIterations(int iterations);
virtual double startTime() const;
virtual void setStartTime(double monotonic_time);
virtual double timeOffset() const;
virtual void setTimeOffset(double monotonic_time);
virtual bool alternatesDirection() const;
virtual void setAlternatesDirection(bool alternates);
scoped_ptr<cc::Animation> CloneToAnimation();
private:
scoped_ptr<cc::Animation> animation_;
DISALLOW_COPY_AND_ASSIGN(WebAnimationImpl);
};
} // namespace webkit
#endif // WEBKIT_RENDERER_COMPOSITOR_BINDINGS_WEB_ANIMATION_IMPL_H_
|