OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_TO_CC_ANIMATION_DELEGATE_ADAPTER
_H_ | 5 #ifndef WEBKIT_RENDERER_COMPOSITOR_BINDINGS_WEB_TO_CC_ANIMATION_DELEGATE_ADAPTER
_H_ |
6 #define WEBKIT_RENDERER_COMPOSITOR_BINDINGS_WEB_TO_CC_ANIMATION_DELEGATE_ADAPTER
_H_ | 6 #define WEBKIT_RENDERER_COMPOSITOR_BINDINGS_WEB_TO_CC_ANIMATION_DELEGATE_ADAPTER
_H_ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
10 #include "cc/animation/animation_delegate.h" | 10 #include "cc/animation/animation_delegate.h" |
11 | 11 |
12 namespace WebKit { class WebAnimationDelegate; } | 12 namespace blink { class WebAnimationDelegate; } |
13 | 13 |
14 namespace webkit { | 14 namespace webkit { |
15 | 15 |
16 class WebToCCAnimationDelegateAdapter : public cc::AnimationDelegate { | 16 class WebToCCAnimationDelegateAdapter : public cc::AnimationDelegate { |
17 public: | 17 public: |
18 explicit WebToCCAnimationDelegateAdapter( | 18 explicit WebToCCAnimationDelegateAdapter( |
19 WebKit::WebAnimationDelegate* delegate); | 19 blink::WebAnimationDelegate* delegate); |
20 | 20 |
21 private: | 21 private: |
22 virtual void NotifyAnimationStarted(double time) OVERRIDE; | 22 virtual void NotifyAnimationStarted(double time) OVERRIDE; |
23 virtual void NotifyAnimationFinished(double time) OVERRIDE; | 23 virtual void NotifyAnimationFinished(double time) OVERRIDE; |
24 | 24 |
25 WebKit::WebAnimationDelegate* delegate_; | 25 blink::WebAnimationDelegate* delegate_; |
26 | 26 |
27 DISALLOW_COPY_AND_ASSIGN(WebToCCAnimationDelegateAdapter); | 27 DISALLOW_COPY_AND_ASSIGN(WebToCCAnimationDelegateAdapter); |
28 }; | 28 }; |
29 | 29 |
30 } // namespace webkit | 30 } // namespace webkit |
31 | 31 |
32 #endif // WEBKIT_RENDERER_COMPOSITOR_BINDINGS_WEB_TO_CC_ANIMATION_DELEGATE_ADAP
TER_H_ | 32 #endif // WEBKIT_RENDERER_COMPOSITOR_BINDINGS_WEB_TO_CC_ANIMATION_DELEGATE_ADAP
TER_H_ |
OLD | NEW |