OLD | NEW |
1 // Copyright 2012 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef WEBKIT_RENDERER_COMPOSITOR_BINDINGS_WEB_ANIMATION_IMPL_H_ | 5 #ifndef CONTENT_RENDERER_COMPOSITOR_BINDINGS_WEB_ANIMATION_IMPL_H_ |
6 #define WEBKIT_RENDERER_COMPOSITOR_BINDINGS_WEB_ANIMATION_IMPL_H_ | 6 #define CONTENT_RENDERER_COMPOSITOR_BINDINGS_WEB_ANIMATION_IMPL_H_ |
7 | 7 |
8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
| 9 #include "content/common/content_export.h" |
9 #include "third_party/WebKit/public/platform/WebAnimation.h" | 10 #include "third_party/WebKit/public/platform/WebAnimation.h" |
10 #include "webkit/renderer/compositor_bindings/webkit_compositor_bindings_export.
h" | |
11 | 11 |
12 namespace cc { class Animation; } | 12 namespace cc { |
| 13 class Animation; |
| 14 } |
13 | 15 |
14 namespace blink { class WebAnimationCurve; } | 16 namespace blink { |
| 17 class WebAnimationCurve; |
| 18 } |
15 | 19 |
16 namespace webkit { | 20 namespace content { |
17 | 21 |
18 class WebAnimationImpl : public blink::WebAnimation { | 22 class WebAnimationImpl : public blink::WebAnimation { |
19 public: | 23 public: |
20 WEBKIT_COMPOSITOR_BINDINGS_EXPORT WebAnimationImpl( | 24 CONTENT_EXPORT WebAnimationImpl( |
21 const blink::WebAnimationCurve& curve, | 25 const blink::WebAnimationCurve& curve, |
22 TargetProperty target, | 26 TargetProperty target, |
23 int animation_id, | 27 int animation_id, |
24 int group_id); | 28 int group_id); |
25 virtual ~WebAnimationImpl(); | 29 virtual ~WebAnimationImpl(); |
26 | 30 |
27 // blink::WebAnimation implementation | 31 // blink::WebAnimation implementation |
28 virtual int id(); | 32 virtual int id(); |
29 virtual TargetProperty targetProperty() const; | 33 virtual TargetProperty targetProperty() const; |
30 virtual int iterations() const; | 34 virtual int iterations() const; |
(...skipping 11 matching lines...) Expand all Loading... |
42 #endif | 46 #endif |
43 | 47 |
44 scoped_ptr<cc::Animation> PassAnimation(); | 48 scoped_ptr<cc::Animation> PassAnimation(); |
45 | 49 |
46 private: | 50 private: |
47 scoped_ptr<cc::Animation> animation_; | 51 scoped_ptr<cc::Animation> animation_; |
48 | 52 |
49 DISALLOW_COPY_AND_ASSIGN(WebAnimationImpl); | 53 DISALLOW_COPY_AND_ASSIGN(WebAnimationImpl); |
50 }; | 54 }; |
51 | 55 |
52 } // namespace webkit | 56 } // namespace content |
53 | 57 |
54 #endif // WEBKIT_RENDERER_COMPOSITOR_BINDINGS_WEB_ANIMATION_IMPL_H_ | 58 #endif // CONTENT_RENDERER_COMPOSITOR_BINDINGS_WEB_ANIMATION_IMPL_H_ |
OLD | NEW |