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

Side by Side 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: Format. 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 | « Source/web/WebViewImpl.cpp ('k') | public/platform/WebCompositorAnimationPlayerClient.h » ('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 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 WebCompositorAnimationPlayer_h
6 #define WebCompositorAnimationPlayer_h
7
8 namespace blink {
9
10 class WebCompositorAnimation;
11 class WebCompositorAnimationDelegate;
12 class WebLayer;
13
14 // A compositor representation for AnimationPlayer.
15 class WebCompositorAnimationPlayer {
16 public:
17 virtual ~WebCompositorAnimationPlayer() { }
18
19 // An animation delegate is notified when animations are started and
20 // stopped. The WebCompositorAnimationPlayer does not take ownership of the delegate, and it is
21 // the responsibility of the client to reset the layer's delegate before
22 // deleting the delegate.
23 virtual void setAnimationDelegate(WebCompositorAnimationDelegate*) = 0;
24
25 virtual void attachLayer(WebLayer*) = 0;
26 virtual void detachLayer() = 0;
27 virtual bool isLayerAttached() const = 0;
28
29 virtual void addAnimation(WebCompositorAnimation*) = 0;
30 virtual void removeAnimation(int animationId) = 0;
31 virtual void pauseAnimation(int animationId, double timeOffset) = 0;
32 };
33
34 } // namespace blink
35
36 #endif // WebCompositorAnimationPlayer_h
OLDNEW
« no previous file with comments | « Source/web/WebViewImpl.cpp ('k') | public/platform/WebCompositorAnimationPlayerClient.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698