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

Unified Diff: public/platform/WebCompositorAnimationPlayer.h

Issue 946323002: Animations: Introduce compositor AnimationPlayer and AnimationTimeline. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 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 side-by-side diff with in-line comments
Download patch
Index: public/platform/WebCompositorAnimationPlayer.h
diff --git a/public/platform/WebCompositorAnimationPlayer.h b/public/platform/WebCompositorAnimationPlayer.h
new file mode 100644
index 0000000000000000000000000000000000000000..6387c6a18b2121951d2d4dc51fa72e0e03c98c6d
--- /dev/null
+++ b/public/platform/WebCompositorAnimationPlayer.h
@@ -0,0 +1,35 @@
+// 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 WebCompositorAnimationPlayer_h
+#define WebCompositorAnimationPlayer_h
+
+namespace blink {
+
+class WebCompositorAnimation;
+class WebCompositorAnimationDelegate;
+class WebLayer;
+
+// A compositor representation for AnimationPlayer.
+class WebCompositorAnimationPlayer {
+public:
+ virtual ~WebCompositorAnimationPlayer() { }
+
+ // An animation delegate is notified when animations are started and
+ // stopped. The WebCompositorAnimationPlayer does not take ownership of the delegate, and it is
+ // the responsibility of the client to reset the layer's delegate before
+ // deleting the delegate.
+ virtual void setAnimationDelegate(WebCompositorAnimationDelegate*) = 0;
+
+ virtual void attachLayer(WebLayer*) = 0;
+ virtual void detachLayer() = 0;
+
+ virtual void addAnimation(WebCompositorAnimation*) = 0;
+ virtual void removeAnimation(int animationId) = 0;
+ virtual void pauseAnimation(int animationId, double timeOffset) = 0;
+};
+
+} // namespace blink
+
+#endif // WebCompositorAnimationPlayer_h

Powered by Google App Engine
This is Rietveld 408576698