Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(268)

Side by Side Diff: webkit/renderer/compositor_bindings/web_animation_impl.h

Issue 317163002: Moving compositor_bindings from webkit to content (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Changing dependencies due to failing ios bots Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef WEBKIT_RENDERER_COMPOSITOR_BINDINGS_WEB_ANIMATION_IMPL_H_
6 #define WEBKIT_RENDERER_COMPOSITOR_BINDINGS_WEB_ANIMATION_IMPL_H_
7
8 #include "base/memory/scoped_ptr.h"
9 #include "third_party/WebKit/public/platform/WebAnimation.h"
10 #include "webkit/renderer/compositor_bindings/webkit_compositor_bindings_export. h"
11
12 namespace cc { class Animation; }
13
14 namespace blink { class WebAnimationCurve; }
15
16 namespace webkit {
17
18 class WebAnimationImpl : public blink::WebAnimation {
19 public:
20 WEBKIT_COMPOSITOR_BINDINGS_EXPORT WebAnimationImpl(
21 const blink::WebAnimationCurve& curve,
22 TargetProperty target,
23 int animation_id,
24 int group_id);
25 virtual ~WebAnimationImpl();
26
27 // blink::WebAnimation implementation
28 virtual int id();
29 virtual TargetProperty targetProperty() const;
30 virtual int iterations() const;
31 virtual void setIterations(int iterations);
32 virtual double startTime() const;
33 virtual void setStartTime(double monotonic_time);
34 virtual double timeOffset() const;
35 virtual void setTimeOffset(double monotonic_time);
36 #if WEB_ANIMATION_SUPPORTS_FULL_DIRECTION
37 virtual Direction direction() const;
38 virtual void setDirection(Direction);
39 #else
40 virtual bool alternatesDirection() const;
41 virtual void setAlternatesDirection(bool alternates);
42 #endif
43
44 scoped_ptr<cc::Animation> PassAnimation();
45
46 private:
47 scoped_ptr<cc::Animation> animation_;
48
49 DISALLOW_COPY_AND_ASSIGN(WebAnimationImpl);
50 };
51
52 } // namespace webkit
53
54 #endif // WEBKIT_RENDERER_COMPOSITOR_BINDINGS_WEB_ANIMATION_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698