| 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 CONTENT_RENDERER_COMPOSITOR_BINDINGS_WEB_TO_CC_ANIMATION_DELEGATE_ADAPTE
R_H_ |
| 6 #define WEBKIT_RENDERER_COMPOSITOR_BINDINGS_WEB_TO_CC_ANIMATION_DELEGATE_ADAPTER
_H_ | 6 #define CONTENT_RENDERER_COMPOSITOR_BINDINGS_WEB_TO_CC_ANIMATION_DELEGATE_ADAPTE
R_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 blink { class WebAnimationDelegate; } | 12 namespace blink { |
| 13 class WebAnimationDelegate; |
| 14 } |
| 13 | 15 |
| 14 namespace webkit { | 16 namespace content { |
| 15 | 17 |
| 16 class WebToCCAnimationDelegateAdapter : public cc::AnimationDelegate { | 18 class WebToCCAnimationDelegateAdapter : public cc::AnimationDelegate { |
| 17 public: | 19 public: |
| 18 explicit WebToCCAnimationDelegateAdapter( | 20 explicit WebToCCAnimationDelegateAdapter( |
| 19 blink::WebAnimationDelegate* delegate); | 21 blink::WebAnimationDelegate* delegate); |
| 20 | 22 |
| 21 private: | 23 private: |
| 22 virtual void NotifyAnimationStarted( | 24 virtual void NotifyAnimationStarted( |
| 23 base::TimeTicks monotonic_time, | 25 base::TimeTicks monotonic_time, |
| 24 cc::Animation::TargetProperty target_property) OVERRIDE; | 26 cc::Animation::TargetProperty target_property) OVERRIDE; |
| 25 virtual void NotifyAnimationFinished( | 27 virtual void NotifyAnimationFinished( |
| 26 base::TimeTicks monotonic_time, | 28 base::TimeTicks monotonic_time, |
| 27 cc::Animation::TargetProperty target_property) OVERRIDE; | 29 cc::Animation::TargetProperty target_property) OVERRIDE; |
| 28 | 30 |
| 29 blink::WebAnimationDelegate* delegate_; | 31 blink::WebAnimationDelegate* delegate_; |
| 30 | 32 |
| 31 DISALLOW_COPY_AND_ASSIGN(WebToCCAnimationDelegateAdapter); | 33 DISALLOW_COPY_AND_ASSIGN(WebToCCAnimationDelegateAdapter); |
| 32 }; | 34 }; |
| 33 | 35 |
| 34 } // namespace webkit | 36 } // namespace content |
| 35 | 37 |
| 36 #endif // WEBKIT_RENDERER_COMPOSITOR_BINDINGS_WEB_TO_CC_ANIMATION_DELEGATE_ADAP
TER_H_ | 38 #endif // CONTENT_RENDERER_COMPOSITOR_BINDINGS_WEB_TO_CC_ANIMATION_DELEGATE_ADA
PTER_H_ |
| 39 |
| OLD | NEW |