Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(230)

Side by Side Diff: cc/blink/web_compositor_animation_player_impl.h

Issue 947033002: CC Animations: Establish AnimationHost, AnimationTimeline and AnimationPlayer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Set up impl-only timelines for ScrollOffset animations Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « cc/blink/cc_blink.gyp ('k') | cc/blink/web_compositor_animation_player_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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.
4
5 #ifndef CC_BLINK_WEB_COMPOSITOR_ANIMATION_PLAYER_IMPL_H_
6 #define CC_BLINK_WEB_COMPOSITOR_ANIMATION_PLAYER_IMPL_H_
7
8 #include "base/memory/ref_counted.h"
9 #include "base/memory/scoped_ptr.h"
10 #include "cc/blink/cc_blink_export.h"
11 #include "third_party/WebKit/public/platform/WebCompositorAnimationPlayer.h"
12
13 namespace cc {
14 class AnimationPlayer;
15 }
16
17 namespace cc_blink {
18
19 class WebToCCAnimationDelegateAdapter;
20
21 class WebCompositorAnimationPlayerImpl
22 : public blink::WebCompositorAnimationPlayer {
23 public:
24 CC_BLINK_EXPORT WebCompositorAnimationPlayerImpl();
25 virtual ~WebCompositorAnimationPlayerImpl();
26
27 CC_BLINK_EXPORT cc::AnimationPlayer* animation_player() const;
28
29 // blink::WebCompositorAnimationPlayer implementation
30 virtual void setAnimationDelegate(
31 blink::WebCompositorAnimationDelegate* delegate);
32 virtual void attachLayer(blink::WebLayer* web_layer);
33 virtual void detachLayer();
34 virtual bool isLayerAttached() const;
35 virtual void addAnimation(blink::WebCompositorAnimation* animation);
36 virtual void removeAnimation(int animation_id);
37 virtual void pauseAnimation(int animation_id, double time_offset);
38
39 private:
40 scoped_refptr<cc::AnimationPlayer> animation_player_;
41 scoped_ptr<WebToCCAnimationDelegateAdapter> animation_delegate_adapter_;
42
43 DISALLOW_COPY_AND_ASSIGN(WebCompositorAnimationPlayerImpl);
44 };
45
46 } // namespace cc_blink
47
48 #endif // CC_BLINK_WEB_COMPOSITOR_ANIMATION_PLAYER_IMPL_H_
OLDNEW
« no previous file with comments | « cc/blink/cc_blink.gyp ('k') | cc/blink/web_compositor_animation_player_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698