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

Side by Side Diff: content/renderer/compositor_bindings/web_animation_impl.h

Issue 423373003: CC: Support fractional iteration count on compositor animations (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase and review changes Created 6 years, 4 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
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 CONTENT_RENDERER_COMPOSITOR_BINDINGS_WEB_ANIMATION_IMPL_H_ 5 #ifndef CONTENT_RENDERER_COMPOSITOR_BINDINGS_WEB_ANIMATION_IMPL_H_
6 #define CONTENT_RENDERER_COMPOSITOR_BINDINGS_WEB_ANIMATION_IMPL_H_ 6 #define CONTENT_RENDERER_COMPOSITOR_BINDINGS_WEB_ANIMATION_IMPL_H_
7 7
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "content/common/content_export.h" 9 #include "content/common/content_export.h"
10 #include "third_party/WebKit/public/platform/WebCompositorAnimation.h" 10 #include "third_party/WebKit/public/platform/WebCompositorAnimation.h"
(...skipping 10 matching lines...) Expand all
21 CONTENT_EXPORT WebCompositorAnimationImpl( 21 CONTENT_EXPORT WebCompositorAnimationImpl(
22 const blink::WebCompositorAnimationCurve& curve, 22 const blink::WebCompositorAnimationCurve& curve,
23 TargetProperty target, 23 TargetProperty target,
24 int animation_id, 24 int animation_id,
25 int group_id); 25 int group_id);
26 virtual ~WebCompositorAnimationImpl(); 26 virtual ~WebCompositorAnimationImpl();
27 27
28 // blink::WebCompositorAnimation implementation 28 // blink::WebCompositorAnimation implementation
29 virtual int id(); 29 virtual int id();
30 virtual TargetProperty targetProperty() const; 30 virtual TargetProperty targetProperty() const;
31 #if WEB_ANIMATION_SUPPORTS_FRACTIONAL_ITERATIONS
32 virtual double iterations() const;
33 virtual void setIterations(double iterations);
34 #else
31 virtual int iterations() const; 35 virtual int iterations() const;
32 virtual void setIterations(int iterations); 36 virtual void setIterations(int iterations);
37 #endif
33 virtual double startTime() const; 38 virtual double startTime() const;
34 virtual void setStartTime(double monotonic_time); 39 virtual void setStartTime(double monotonic_time);
35 virtual double timeOffset() const; 40 virtual double timeOffset() const;
36 virtual void setTimeOffset(double monotonic_time); 41 virtual void setTimeOffset(double monotonic_time);
37 #if WEB_ANIMATION_SUPPORTS_FULL_DIRECTION 42 #if WEB_ANIMATION_SUPPORTS_FULL_DIRECTION
38 virtual Direction direction() const; 43 virtual Direction direction() const;
39 virtual void setDirection(Direction); 44 virtual void setDirection(Direction);
40 #else 45 #else
41 virtual bool alternatesDirection() const; 46 virtual bool alternatesDirection() const;
42 virtual void setAlternatesDirection(bool alternates); 47 virtual void setAlternatesDirection(bool alternates);
43 #endif 48 #endif
44 49
45 scoped_ptr<cc::Animation> PassAnimation(); 50 scoped_ptr<cc::Animation> PassAnimation();
46 51
47 private: 52 private:
48 scoped_ptr<cc::Animation> animation_; 53 scoped_ptr<cc::Animation> animation_;
49 54
50 DISALLOW_COPY_AND_ASSIGN(WebCompositorAnimationImpl); 55 DISALLOW_COPY_AND_ASSIGN(WebCompositorAnimationImpl);
51 }; 56 };
52 57
53 } // namespace content 58 } // namespace content
54 59
55 #endif // CONTENT_RENDERER_COMPOSITOR_BINDINGS_WEB_ANIMATION_IMPL_H_ 60 #endif // CONTENT_RENDERER_COMPOSITOR_BINDINGS_WEB_ANIMATION_IMPL_H_
56 61
OLDNEW
« no previous file with comments | « cc/animation/animation_unittest.cc ('k') | content/renderer/compositor_bindings/web_animation_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698