Requiem for client_screen.js
[chromium-blink-merge.git] / cc / blink / web_to_cc_animation_delegate_adapter.h
blob4d52cb478b940033b230000e7b96da41c5f711ad
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
3 // found in the LICENSE file.
5 #ifndef CC_BLINK_WEB_TO_CC_ANIMATION_DELEGATE_ADAPTER_H_
6 #define CC_BLINK_WEB_TO_CC_ANIMATION_DELEGATE_ADAPTER_H_
8 #include "base/basictypes.h"
9 #include "base/compiler_specific.h"
10 #include "cc/animation/animation_delegate.h"
12 namespace blink {
13 class WebCompositorAnimationDelegate;
16 namespace cc_blink {
18 class WebToCCAnimationDelegateAdapter : public cc::AnimationDelegate {
19 public:
20 explicit WebToCCAnimationDelegateAdapter(
21 blink::WebCompositorAnimationDelegate* delegate);
23 private:
24 void NotifyAnimationStarted(base::TimeTicks monotonic_time,
25 cc::Animation::TargetProperty target_property,
26 int group) override;
27 void NotifyAnimationFinished(base::TimeTicks monotonic_time,
28 cc::Animation::TargetProperty target_property,
29 int group) override;
31 blink::WebCompositorAnimationDelegate* delegate_;
33 DISALLOW_COPY_AND_ASSIGN(WebToCCAnimationDelegateAdapter);
36 } // namespace cc_blink
38 #endif // CC_BLINK_WEB_TO_CC_ANIMATION_DELEGATE_ADAPTER_H_