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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: cc/blink/web_compositor_animation_timeline_impl.h
diff --git a/cc/blink/web_compositor_animation_timeline_impl.h b/cc/blink/web_compositor_animation_timeline_impl.h
new file mode 100644
index 0000000000000000000000000000000000000000..65d05d831578e52843accfaa45cdf70b5027d167
--- /dev/null
+++ b/cc/blink/web_compositor_animation_timeline_impl.h
@@ -0,0 +1,45 @@
+// Copyright 2015 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CC_BLINK_WEB_COMPOSITOR_ANIMATION_TIMELINE_IMPL_H_
+#define CC_BLINK_WEB_COMPOSITOR_ANIMATION_TIMELINE_IMPL_H_
+
+#include "base/memory/ref_counted.h"
+#include "base/memory/scoped_ptr.h"
+#include "cc/blink/cc_blink_export.h"
+#include "third_party/WebKit/public/platform/WebCompositorAnimationTimeline.h"
+
+namespace blink {
+class WebCompositorAnimationPlayerClient;
+}
+
+namespace cc {
+class AnimationTimeline;
+}
+
+namespace cc_blink {
+
+class WebCompositorAnimationTimelineImpl
+ : public blink::WebCompositorAnimationTimeline {
+ public:
+ CC_BLINK_EXPORT explicit WebCompositorAnimationTimelineImpl();
+ virtual ~WebCompositorAnimationTimelineImpl();
+
+ CC_BLINK_EXPORT cc::AnimationTimeline* animation_timeline() const;
+
+ // blink::WebCompositorAnimationTimeline implementation
+ virtual void playerAttached(
+ const blink::WebCompositorAnimationPlayerClient& client);
+ virtual void playerDestroyed(
+ const blink::WebCompositorAnimationPlayerClient& client);
+
+ private:
+ scoped_refptr<cc::AnimationTimeline> animation_timeline_;
+
+ DISALLOW_COPY_AND_ASSIGN(WebCompositorAnimationTimelineImpl);
+};
+
+} // namespace cc_blink
+
+#endif // CC_BLINK_WEB_COMPOSITOR_ANIMATION_TIMELINE_IMPL_H_
« 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