OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 CC_BLINK_WEB_TO_CC_ANIMATION_DELEGATE_ADAPTER_H_ | 5 #ifndef CC_BLINK_WEB_TO_CC_ANIMATION_DELEGATE_ADAPTER_H_ |
6 #define CC_BLINK_WEB_TO_CC_ANIMATION_DELEGATE_ADAPTER_H_ | 6 #define CC_BLINK_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 #include "third_party/WebKit/public/platform/WebCompositorAnimationDelegate.h" | 11 |
| 12 namespace blink { |
| 13 class WebCompositorAnimationDelegate; |
| 14 } |
12 | 15 |
13 namespace cc_blink { | 16 namespace cc_blink { |
14 | 17 |
15 class WebToCCAnimationDelegateAdapter : public cc::AnimationDelegate { | 18 class WebToCCAnimationDelegateAdapter : public cc::AnimationDelegate { |
16 public: | 19 public: |
17 explicit WebToCCAnimationDelegateAdapter( | 20 explicit WebToCCAnimationDelegateAdapter( |
18 blink::WebCompositorAnimationDelegate* delegate); | 21 blink::WebCompositorAnimationDelegate* delegate); |
19 | 22 |
20 private: | 23 private: |
21 virtual void NotifyAnimationStarted( | 24 virtual void NotifyAnimationStarted( |
22 base::TimeTicks monotonic_time, | 25 base::TimeTicks monotonic_time, |
23 cc::Animation::TargetProperty target_property) OVERRIDE; | 26 cc::Animation::TargetProperty target_property) OVERRIDE; |
24 virtual void NotifyAnimationFinished( | 27 virtual void NotifyAnimationFinished( |
25 base::TimeTicks monotonic_time, | 28 base::TimeTicks monotonic_time, |
26 cc::Animation::TargetProperty target_property) OVERRIDE; | 29 cc::Animation::TargetProperty target_property) OVERRIDE; |
27 | 30 |
28 blink::WebCompositorAnimationDelegate* delegate_; | 31 blink::WebCompositorAnimationDelegate* delegate_; |
29 | 32 |
30 DISALLOW_COPY_AND_ASSIGN(WebToCCAnimationDelegateAdapter); | 33 DISALLOW_COPY_AND_ASSIGN(WebToCCAnimationDelegateAdapter); |
31 }; | 34 }; |
32 | 35 |
33 } // namespace cc_blink | 36 } // namespace cc_blink |
34 | 37 |
35 #endif // CC_BLINK_WEB_TO_CC_ANIMATION_DELEGATE_ADAPTER_H_ | 38 #endif // CC_BLINK_WEB_TO_CC_ANIMATION_DELEGATE_ADAPTER_H_ |
OLD | NEW |