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

Side by Side Diff: cc/blink/web_float_animation_curve_impl.cc

Issue 470983004: Move blink<->cc bindings to cc/blink (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase 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 #include "content/renderer/compositor_bindings/web_float_animation_curve_impl.h" 5 #include "cc/blink/web_float_animation_curve_impl.h"
6 6
7 #include "cc/animation/animation_curve.h" 7 #include "cc/animation/animation_curve.h"
8 #include "cc/animation/keyframed_animation_curve.h" 8 #include "cc/animation/keyframed_animation_curve.h"
9 #include "cc/animation/timing_function.h" 9 #include "cc/animation/timing_function.h"
10 #include "content/renderer/compositor_bindings/web_animation_curve_common.h" 10 #include "cc/blink/web_animation_curve_common.h"
11 11
12 using blink::WebFloatKeyframe; 12 using blink::WebFloatKeyframe;
13 13
14 namespace content { 14 namespace cc_blink {
15 15
16 WebFloatAnimationCurveImpl::WebFloatAnimationCurveImpl() 16 WebFloatAnimationCurveImpl::WebFloatAnimationCurveImpl()
17 : curve_(cc::KeyframedFloatAnimationCurve::Create()) { 17 : curve_(cc::KeyframedFloatAnimationCurve::Create()) {
18 } 18 }
19 19
20 WebFloatAnimationCurveImpl::~WebFloatAnimationCurveImpl() { 20 WebFloatAnimationCurveImpl::~WebFloatAnimationCurveImpl() {
21 } 21 }
22 22
23 blink::WebCompositorAnimationCurve::AnimationCurveType 23 blink::WebCompositorAnimationCurve::AnimationCurveType
24 WebFloatAnimationCurveImpl::type() const { 24 WebFloatAnimationCurveImpl::type() const {
(...skipping 24 matching lines...) Expand all
49 49
50 float WebFloatAnimationCurveImpl::getValue(double time) const { 50 float WebFloatAnimationCurveImpl::getValue(double time) const {
51 return curve_->GetValue(time); 51 return curve_->GetValue(time);
52 } 52 }
53 53
54 scoped_ptr<cc::AnimationCurve> 54 scoped_ptr<cc::AnimationCurve>
55 WebFloatAnimationCurveImpl::CloneToAnimationCurve() const { 55 WebFloatAnimationCurveImpl::CloneToAnimationCurve() const {
56 return curve_->Clone(); 56 return curve_->Clone();
57 } 57 }
58 58
59 } // namespace content 59 } // namespace cc_blink
60
OLDNEW
« no previous file with comments | « cc/blink/web_float_animation_curve_impl.h ('k') | cc/blink/web_float_animation_curve_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698