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

Side by Side Diff: cc/blink/web_animation_impl.h

Issue 579863004: CC: Add fill mode to compositor animations (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix compile Created 6 years, 3 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 | « cc/animation/layer_animation_controller.cc ('k') | cc/blink/web_animation_impl.cc » ('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 CC_BLINK_WEB_ANIMATION_IMPL_H_ 5 #ifndef CC_BLINK_WEB_ANIMATION_IMPL_H_
6 #define CC_BLINK_WEB_ANIMATION_IMPL_H_ 6 #define CC_BLINK_WEB_ANIMATION_IMPL_H_
7 7
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "cc/blink/cc_blink_export.h" 9 #include "cc/blink/cc_blink_export.h"
10 #include "third_party/WebKit/public/platform/WebCompositorAnimation.h" 10 #include "third_party/WebKit/public/platform/WebCompositorAnimation.h"
(...skipping 13 matching lines...) Expand all
24 CC_BLINK_EXPORT WebCompositorAnimationImpl( 24 CC_BLINK_EXPORT WebCompositorAnimationImpl(
25 const blink::WebCompositorAnimationCurve& curve, 25 const blink::WebCompositorAnimationCurve& curve,
26 TargetProperty target, 26 TargetProperty target,
27 int animation_id, 27 int animation_id,
28 int group_id); 28 int group_id);
29 virtual ~WebCompositorAnimationImpl(); 29 virtual ~WebCompositorAnimationImpl();
30 30
31 // blink::WebCompositorAnimation implementation 31 // blink::WebCompositorAnimation implementation
32 virtual int id(); 32 virtual int id();
33 virtual TargetProperty targetProperty() const; 33 virtual TargetProperty targetProperty() const;
34 #if WEB_ANIMATION_SUPPORTS_FRACTIONAL_ITERATIONS
35 virtual double iterations() const; 34 virtual double iterations() const;
36 virtual void setIterations(double iterations); 35 virtual void setIterations(double iterations);
37 #else
38 virtual int iterations() const;
39 virtual void setIterations(int iterations);
40 #endif
41 virtual double iterationStart() const; 36 virtual double iterationStart() const;
42 virtual void setIterationStart(double iteration_start); 37 virtual void setIterationStart(double iteration_start);
43 virtual double startTime() const; 38 virtual double startTime() const;
44 virtual void setStartTime(double monotonic_time); 39 virtual void setStartTime(double monotonic_time);
45 virtual double timeOffset() const; 40 virtual double timeOffset() const;
46 virtual void setTimeOffset(double monotonic_time); 41 virtual void setTimeOffset(double monotonic_time);
47 virtual Direction direction() const; 42 virtual Direction direction() const;
48 virtual void setDirection(Direction); 43 virtual void setDirection(Direction);
49 virtual double playbackRate() const; 44 virtual double playbackRate() const;
50 virtual void setPlaybackRate(double playback_rate); 45 virtual void setPlaybackRate(double playback_rate);
51 46 #if WEB_ANIMATION_SUPPORTS_FILL_MODE
47 virtual FillMode fillMode() const;
48 virtual void setFillMode(blink::WebCompositorAnimation::FillMode fill_mode);
49 #endif
52 scoped_ptr<cc::Animation> PassAnimation(); 50 scoped_ptr<cc::Animation> PassAnimation();
53 51
54 private: 52 private:
55 scoped_ptr<cc::Animation> animation_; 53 scoped_ptr<cc::Animation> animation_;
56 54
57 DISALLOW_COPY_AND_ASSIGN(WebCompositorAnimationImpl); 55 DISALLOW_COPY_AND_ASSIGN(WebCompositorAnimationImpl);
58 }; 56 };
59 57
60 } // namespace cc_blink 58 } // namespace cc_blink
61 59
62 #endif // CC_BLINK_WEB_ANIMATION_IMPL_H_ 60 #endif // CC_BLINK_WEB_ANIMATION_IMPL_H_
OLDNEW
« no previous file with comments | « cc/animation/layer_animation_controller.cc ('k') | cc/blink/web_animation_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698