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

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

Issue 874633003: Remove WebCompositorSupport (Closed) Base URL: git@github.com:domokit/mojo.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 unified diff | Download patch
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef SKY_ENGINE_PUBLIC_PLATFORM_WEBCOMPOSITORANIMATION_H_
6 #define SKY_ENGINE_PUBLIC_PLATFORM_WEBCOMPOSITORANIMATION_H_
7
8 #define WEB_ANIMATION_SUPPORTS_FRACTIONAL_ITERATIONS 1
9
10 namespace blink {
11
12 // A compositor driven animation.
13 class WebCompositorAnimation {
14 public:
15 enum TargetProperty {
16 TargetPropertyTransform = 0,
17 TargetPropertyOpacity,
18 TargetPropertyFilter,
19 TargetPropertyScrollOffset
20 };
21
22 virtual ~WebCompositorAnimation() { }
23
24 // An id is effectively the animation's name, and it is not unique.
25 virtual int id() = 0;
26
27 virtual TargetProperty targetProperty() const = 0;
28
29 // This is the number of times that the animation will play. If this
30 // value is zero the animation will not play. If it is negative, then
31 // the animation will loop indefinitely.
32 virtual double iterations() const = 0;
33 virtual void setIterations(double) = 0;
34
35 virtual double startTime() const = 0;
36 virtual void setStartTime(double monotonicTime) = 0;
37
38 virtual double timeOffset() const = 0;
39 virtual void setTimeOffset(double monotonicTime) = 0;
40
41 // If alternatesDirection is true, on odd numbered iterations we reverse the curve.
42 virtual bool alternatesDirection() const = 0;
43 virtual void setAlternatesDirection(bool) = 0;
44 };
45
46 } // namespace blink
47
48 #endif // SKY_ENGINE_PUBLIC_PLATFORM_WEBCOMPOSITORANIMATION_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698