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

Side by Side Diff: webkit/renderer/compositor_bindings/web_transform_animation_curve_impl.cc

Issue 61553006: Rename WebKit namespace to blink (part 5) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 1 month 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 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 "webkit/renderer/compositor_bindings/web_transform_animation_curve_impl .h" 5 #include "webkit/renderer/compositor_bindings/web_transform_animation_curve_impl .h"
6 6
7 #include "cc/animation/keyframed_animation_curve.h" 7 #include "cc/animation/keyframed_animation_curve.h"
8 #include "cc/animation/timing_function.h" 8 #include "cc/animation/timing_function.h"
9 #include "cc/animation/transform_operations.h" 9 #include "cc/animation/transform_operations.h"
10 #include "webkit/renderer/compositor_bindings/web_animation_curve_common.h" 10 #include "webkit/renderer/compositor_bindings/web_animation_curve_common.h"
11 #include "webkit/renderer/compositor_bindings/web_transform_operations_impl.h" 11 #include "webkit/renderer/compositor_bindings/web_transform_operations_impl.h"
12 12
13 using WebKit::WebTransformKeyframe; 13 using blink::WebTransformKeyframe;
14 14
15 namespace webkit { 15 namespace webkit {
16 16
17 WebTransformAnimationCurveImpl::WebTransformAnimationCurveImpl() 17 WebTransformAnimationCurveImpl::WebTransformAnimationCurveImpl()
18 : curve_(cc::KeyframedTransformAnimationCurve::Create()) {} 18 : curve_(cc::KeyframedTransformAnimationCurve::Create()) {}
19 19
20 WebTransformAnimationCurveImpl::~WebTransformAnimationCurveImpl() {} 20 WebTransformAnimationCurveImpl::~WebTransformAnimationCurveImpl() {}
21 21
22 WebKit::WebAnimationCurve::AnimationCurveType 22 blink::WebAnimationCurve::AnimationCurveType
23 WebTransformAnimationCurveImpl::type() const { 23 WebTransformAnimationCurveImpl::type() const {
24 return WebAnimationCurve::AnimationCurveTypeTransform; 24 return WebAnimationCurve::AnimationCurveTypeTransform;
25 } 25 }
26 26
27 void WebTransformAnimationCurveImpl::add(const WebTransformKeyframe& keyframe) { 27 void WebTransformAnimationCurveImpl::add(const WebTransformKeyframe& keyframe) {
28 add(keyframe, TimingFunctionTypeEase); 28 add(keyframe, TimingFunctionTypeEase);
29 } 29 }
30 30
31 void WebTransformAnimationCurveImpl::add(const WebTransformKeyframe& keyframe, 31 void WebTransformAnimationCurveImpl::add(const WebTransformKeyframe& keyframe,
32 TimingFunctionType type) { 32 TimingFunctionType type) {
(...skipping 18 matching lines...) Expand all
51 cc::CubicBezierTimingFunction::Create(x1, y1, x2, y2) 51 cc::CubicBezierTimingFunction::Create(x1, y1, x2, y2)
52 .PassAs<cc::TimingFunction>())); 52 .PassAs<cc::TimingFunction>()));
53 } 53 }
54 54
55 scoped_ptr<cc::AnimationCurve> 55 scoped_ptr<cc::AnimationCurve>
56 WebTransformAnimationCurveImpl::CloneToAnimationCurve() const { 56 WebTransformAnimationCurveImpl::CloneToAnimationCurve() const {
57 return curve_->Clone(); 57 return curve_->Clone();
58 } 58 }
59 59
60 } // namespace webkit 60 } // namespace webkit
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698