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

Side by Side Diff: cc/animation/animation_curve.cc

Issue 12822004: Part 3 of cc/ directory shuffles: animation (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 9 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
« no previous file with comments | « cc/animation/animation_curve.h ('k') | cc/animation/animation_events.h » ('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 2012 The Chromium Authors. All rights reserved. 1 // Copyright 2012 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 "cc/animation_curve.h" 5 #include "cc/animation/animation_curve.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 8
9 namespace cc { 9 namespace cc {
10 10
11 const FloatAnimationCurve* AnimationCurve::ToFloatAnimationCurve() const { 11 const FloatAnimationCurve* AnimationCurve::ToFloatAnimationCurve() const {
12 DCHECK(Type() == AnimationCurve::Float); 12 DCHECK(Type() == AnimationCurve::Float);
13 return static_cast<const FloatAnimationCurve*>(this); 13 return static_cast<const FloatAnimationCurve*>(this);
14 } 14 }
15 15
16 AnimationCurve::CurveType FloatAnimationCurve::Type() const { 16 AnimationCurve::CurveType FloatAnimationCurve::Type() const {
17 return Float; 17 return Float;
18 } 18 }
19 19
20 const TransformAnimationCurve* AnimationCurve::ToTransformAnimationCurve() 20 const TransformAnimationCurve* AnimationCurve::ToTransformAnimationCurve()
21 const { 21 const {
22 DCHECK(Type() == AnimationCurve::Transform); 22 DCHECK(Type() == AnimationCurve::Transform);
23 return static_cast<const TransformAnimationCurve*>(this); 23 return static_cast<const TransformAnimationCurve*>(this);
24 } 24 }
25 25
26 AnimationCurve::CurveType TransformAnimationCurve::Type() const { 26 AnimationCurve::CurveType TransformAnimationCurve::Type() const {
27 return Transform; 27 return Transform;
28 } 28 }
29 29
30 } // namespace cc 30 } // namespace cc
OLDNEW
« no previous file with comments | « cc/animation/animation_curve.h ('k') | cc/animation/animation_events.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698