OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |