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

Side by Side Diff: third_party/WebKit/Source/platform/animation/CompositorAnimationPlayer.h

Issue 1616653002: CC Animation: Move files from cc_blink to Source/platform/animation (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: GC Created 4 years, 10 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
OLDNEW
(Empty)
1 // Copyright 2015 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 CompositorAnimationPlayer_h
6 #define CompositorAnimationPlayer_h
7
8 #include "base/memory/ref_counted.h"
9 #include "base/memory/scoped_ptr.h"
10 #include "platform/PlatformExport.h"
11
12 namespace cc {
13 class AnimationPlayer;
14 }
15
16 namespace blink {
17
18 class CompositorAnimation;
19 class WebCompositorAnimationDelegate;
20 class WebLayer;
21 class WebToCCAnimationDelegateAdapter;
22
23 // A compositor representation for AnimationPlayer.
24 class PLATFORM_EXPORT CompositorAnimationPlayer {
25 public:
26 CompositorAnimationPlayer();
27 virtual ~CompositorAnimationPlayer();
28
29 cc::AnimationPlayer* animationPlayer() const;
30
31 // An animation delegate is notified when animations are started and
32 // stopped. The CompositorAnimationPlayer does not take ownership of the del egate, and it is
33 // the responsibility of the client to reset the layer's delegate before
34 // deleting the delegate.
35 virtual void setAnimationDelegate(WebCompositorAnimationDelegate*);
36
37 virtual void attachLayer(WebLayer*);
38 virtual void detachLayer();
39 virtual bool isLayerAttached() const;
40
41 virtual void addAnimation(CompositorAnimation*);
42 virtual void removeAnimation(int animationId);
43 virtual void pauseAnimation(int animationId, double timeOffset);
44 virtual void abortAnimation(int animationId);
45
46 private:
47 scoped_refptr<cc::AnimationPlayer> m_animationPlayer;
48 scoped_ptr<WebToCCAnimationDelegateAdapter> m_animationDelegateAdapter;
49 };
50
51 } // namespace blink
52
53 #endif // CompositorAnimationPlayer_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698