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

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

Issue 1616653002: CC Animation: Move files from cc_blink to Source/platform/animation (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. Fix copyrights and years. Created 4 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
« no previous file with comments | « cc/blink/web_animation_curve_common.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
(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 CC_BLINK_WEB_ANIMATION_IMPL_H_
6 #define CC_BLINK_WEB_ANIMATION_IMPL_H_
7
8 #include "base/macros.h"
9 #include "base/memory/scoped_ptr.h"
10 #include "cc/blink/cc_blink_export.h"
11 #include "third_party/WebKit/public/platform/WebCompositorAnimation.h"
12
13 namespace cc {
14 class Animation;
15 }
16
17 namespace blink {
18 class WebCompositorAnimationCurve;
19 }
20
21 namespace cc_blink {
22
23 class WebCompositorAnimationImpl : public blink::WebCompositorAnimation {
24 public:
25 CC_BLINK_EXPORT WebCompositorAnimationImpl(
26 const blink::WebCompositorAnimationCurve& curve,
27 TargetProperty target,
28 int animation_id,
29 int group_id);
30 ~WebCompositorAnimationImpl() override;
31
32 // blink::WebCompositorAnimation implementation
33 int id() override;
34 int group() override;
35 TargetProperty targetProperty() const override;
36 double iterations() const override;
37 void setIterations(double iterations) override;
38 double iterationStart() const override;
39 void setIterationStart(double iteration_start) override;
40 double startTime() const override;
41 void setStartTime(double monotonic_time) override;
42 double timeOffset() const override;
43 void setTimeOffset(double monotonic_time) override;
44 Direction direction() const override;
45 void setDirection(Direction) override;
46 double playbackRate() const override;
47 void setPlaybackRate(double playback_rate) override;
48 FillMode fillMode() const override;
49 void setFillMode(blink::WebCompositorAnimation::FillMode fill_mode) override;
50 scoped_ptr<cc::Animation> PassAnimation();
51
52 private:
53 scoped_ptr<cc::Animation> animation_;
54
55 DISALLOW_COPY_AND_ASSIGN(WebCompositorAnimationImpl);
56 };
57
58 } // namespace cc_blink
59
60 #endif // CC_BLINK_WEB_ANIMATION_IMPL_H_
OLDNEW
« no previous file with comments | « cc/blink/web_animation_curve_common.cc ('k') | cc/blink/web_animation_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698