OLD | NEW |
(Empty) | |
| 1 // Copyright 2016 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 WebToCCAnimationDelegateAdapter_h |
| 6 #define WebToCCAnimationDelegateAdapter_h |
| 7 |
| 8 #include "cc/animation/animation_delegate.h" |
| 9 #include "platform/PlatformExport.h" |
| 10 #include "wtf/Noncopyable.h" |
| 11 |
| 12 namespace blink { |
| 13 |
| 14 class WebCompositorAnimationDelegate; |
| 15 |
| 16 class PLATFORM_EXPORT WebToCCAnimationDelegateAdapter : public cc::AnimationDele
gate { |
| 17 WTF_MAKE_NONCOPYABLE(WebToCCAnimationDelegateAdapter); |
| 18 public: |
| 19 explicit WebToCCAnimationDelegateAdapter(WebCompositorAnimationDelegate*); |
| 20 |
| 21 private: |
| 22 void NotifyAnimationStarted(base::TimeTicks monotonicTime, cc::Animation::Ta
rgetProperty, int group) override; |
| 23 void NotifyAnimationFinished(base::TimeTicks monotonicTime, cc::Animation::T
argetProperty, int group) override; |
| 24 void NotifyAnimationAborted(base::TimeTicks monotonicTime, cc::Animation::Ta
rgetProperty, int group) override; |
| 25 |
| 26 WebCompositorAnimationDelegate* m_delegate; |
| 27 }; |
| 28 |
| 29 } // namespace blink |
| 30 |
| 31 #endif // WebToCCAnimationDelegateAdapter_h |
OLD | NEW |