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

Side by Side Diff: cc/blink/web_compositor_animation_timeline_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
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 CC_BLINK_WEB_COMPOSITOR_ANIMATION_TIMELINE_IMPL_H_
6 #define CC_BLINK_WEB_COMPOSITOR_ANIMATION_TIMELINE_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/WebCompositorAnimationTimeline.h"
12
13 namespace blink {
14 class WebCompositorAnimationPlayerClient;
15 }
16
17 namespace cc {
18 class AnimationTimeline;
19 }
20
21 namespace cc_blink {
22
23 class WebCompositorAnimationTimelineImpl
24 : public blink::WebCompositorAnimationTimeline {
25 public:
26 CC_BLINK_EXPORT explicit WebCompositorAnimationTimelineImpl();
27 virtual ~WebCompositorAnimationTimelineImpl();
28
29 CC_BLINK_EXPORT cc::AnimationTimeline* animation_timeline() const;
30
31 // blink::WebCompositorAnimationTimeline implementation
32 virtual void playerAttached(
33 const blink::WebCompositorAnimationPlayerClient& client);
34 virtual void playerDestroyed(
35 const blink::WebCompositorAnimationPlayerClient& client);
36
37 private:
38 scoped_refptr<cc::AnimationTimeline> animation_timeline_;
39
40 DISALLOW_COPY_AND_ASSIGN(WebCompositorAnimationTimelineImpl);
41 };
42
43 } // namespace cc_blink
44
45 #endif // CC_BLINK_WEB_COMPOSITOR_ANIMATION_TIMELINE_IMPL_H_
OLDNEW
« no previous file with comments | « cc/blink/web_compositor_animation_player_impl.cc ('k') | cc/blink/web_compositor_animation_timeline_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698