blob: b70a3c618ca578469ab8d0b7454624012d059ee5 (
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
|
// 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 WebAnimationImpl_h
#define WebAnimationImpl_h
#include "base/memory/scoped_ptr.h"
#include "third_party/WebKit/Source/Platform/chromium/public/WebAnimation.h"
#include "webkit/compositor_bindings/webkit_compositor_bindings_export.h"
namespace cc { class Animation; }
namespace WebKit {
class WebAnimationCurve;
class WebAnimationImpl : public WebAnimation {
public:
WEBKIT_COMPOSITOR_BINDINGS_EXPORT WebAnimationImpl(const WebAnimationCurve&,
TargetProperty,
int animation_id,
int group_id = 0);
virtual ~WebAnimationImpl();
// WebAnimation implementation
virtual int id();
virtual TargetProperty targetProperty() const;
virtual int iterations() const;
virtual void setIterations(int);
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);
scoped_ptr<cc::Animation> cloneToAnimation();
private:
scoped_ptr<cc::Animation> animation_;
};
}
#endif // WebAnimationImpl_h
|