Roll leveldb to r78 / 1.15.
[chromium-blink-merge.git] / webkit / renderer / compositor_bindings / web_to_cc_animation_delegate_adapter.h
blob7338322e99d846211527a81b3ad2cc84797282b7
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
3 // found in the LICENSE file.
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_
8 #include "base/basictypes.h"
9 #include "base/compiler_specific.h"
10 #include "cc/animation/animation_delegate.h"
12 namespace blink { class WebAnimationDelegate; }
14 namespace webkit {
16 class WebToCCAnimationDelegateAdapter : public cc::AnimationDelegate {
17 public:
18 explicit WebToCCAnimationDelegateAdapter(
19 blink::WebAnimationDelegate* delegate);
21 private:
22 virtual void NotifyAnimationStarted(
23 double wall_clock_time,
24 base::TimeTicks monotonic_time,
25 cc::Animation::TargetProperty target_property) OVERRIDE;
26 virtual void NotifyAnimationFinished(
27 double wall_clock_time,
28 base::TimeTicks monotonic_time,
29 cc::Animation::TargetProperty target_property) OVERRIDE;
31 blink::WebAnimationDelegate* delegate_;
33 DISALLOW_COPY_AND_ASSIGN(WebToCCAnimationDelegateAdapter);
36 } // namespace webkit
38 #endif // WEBKIT_RENDERER_COMPOSITOR_BINDINGS_WEB_TO_CC_ANIMATION_DELEGATE_ADAPTER_H_