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

Side by Side Diff: public/platform/WebCompositorAnimation.h

Issue 652593003: Web Animations: Plumb compositor group id through animation creation and start/finish notifications (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Pass groupId to createAnimation. Created 6 years, 2 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 | Annotate | Revision Log
« no previous file with comments | « Source/web/PageOverlay.cpp ('k') | public/platform/WebCompositorAnimationDelegate.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef WebCompositorAnimation_h 5 #ifndef WebCompositorAnimation_h
6 #define WebCompositorAnimation_h 6 #define WebCompositorAnimation_h
7 7
8 #define WEB_ANIMATION_SUPPORTS_FILL_MODE 1 8 #define WEB_ANIMATION_SUPPORTS_FILL_MODE 1
9 9
10 namespace blink { 10 namespace blink {
(...skipping 19 matching lines...) Expand all
30 FillModeNone = 0, 30 FillModeNone = 0,
31 FillModeForwards, 31 FillModeForwards,
32 FillModeBackwards, 32 FillModeBackwards,
33 FillModeBoth 33 FillModeBoth
34 }; 34 };
35 35
36 virtual ~WebCompositorAnimation() { } 36 virtual ~WebCompositorAnimation() { }
37 37
38 // An id is effectively the animation's name, and it is not unique. 38 // An id is effectively the animation's name, and it is not unique.
39 virtual int id() = 0; 39 virtual int id() = 0;
40 virtual int group() = 0;
40 41
41 virtual TargetProperty targetProperty() const = 0; 42 virtual TargetProperty targetProperty() const = 0;
42 43
43 // This is the number of times that the animation will play. If this 44 // This is the number of times that the animation will play. If this
44 // value is zero the animation will not play. If it is negative, then 45 // value is zero the animation will not play. If it is negative, then
45 // the animation will loop indefinitely. 46 // the animation will loop indefinitely.
46 virtual double iterations() const = 0; 47 virtual double iterations() const = 0;
47 virtual void setIterations(double) = 0; 48 virtual void setIterations(double) = 0;
48 49
49 virtual double startTime() const = 0; 50 virtual double startTime() const = 0;
(...skipping 11 matching lines...) Expand all
61 virtual FillMode fillMode() const = 0; 62 virtual FillMode fillMode() const = 0;
62 virtual void setFillMode(FillMode) = 0; 63 virtual void setFillMode(FillMode) = 0;
63 64
64 virtual double iterationStart() const = 0; 65 virtual double iterationStart() const = 0;
65 virtual void setIterationStart(double) = 0; 66 virtual void setIterationStart(double) = 0;
66 }; 67 };
67 68
68 } // namespace blink 69 } // namespace blink
69 70
70 #endif // WebCompositorAnimation_h 71 #endif // WebCompositorAnimation_h
OLDNEW
« no previous file with comments | « Source/web/PageOverlay.cpp ('k') | public/platform/WebCompositorAnimationDelegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698