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

Unified Diff: webkit/compositor_bindings/web_transform_animation_curve_impl.cc

Issue 12496013: Move compositor bindings implementations out of WebKit::, fix style (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased 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 side-by-side diff with in-line comments
Download patch
Index: webkit/compositor_bindings/web_transform_animation_curve_impl.cc
diff --git a/webkit/compositor_bindings/web_transform_animation_curve_impl.cc b/webkit/compositor_bindings/web_transform_animation_curve_impl.cc
index db305203b4b032f72c02c27c2c875030a7cff617..52f2f54431a6b5c6d495edead38a0e7fd68230f2 100644
--- a/webkit/compositor_bindings/web_transform_animation_curve_impl.cc
+++ b/webkit/compositor_bindings/web_transform_animation_curve_impl.cc
@@ -10,14 +10,16 @@
#include "webkit/compositor_bindings/web_animation_curve_common.h"
#include "webkit/compositor_bindings/web_transform_operations_impl.h"
-namespace WebKit {
+using WebKit::WebTransformKeyframe;
+
+namespace webkit {
WebTransformAnimationCurveImpl::WebTransformAnimationCurveImpl()
: curve_(cc::KeyframedTransformAnimationCurve::Create()) {}
WebTransformAnimationCurveImpl::~WebTransformAnimationCurveImpl() {}
-WebAnimationCurve::AnimationCurveType
+WebKit::WebAnimationCurve::AnimationCurveType
WebTransformAnimationCurveImpl::type() const {
return WebAnimationCurve::AnimationCurveTypeTransform;
}
@@ -32,7 +34,7 @@ void WebTransformAnimationCurveImpl::add(const WebTransformKeyframe& keyframe,
static_cast<const webkit::WebTransformOperationsImpl&>(keyframe.value())
.AsTransformOperations();
curve_->AddKeyframe(cc::TransformKeyframe::Create(
- keyframe.time(), transform_operations, createTimingFunction(type)));
+ keyframe.time(), transform_operations, CreateTimingFunction(type)));
}
void WebTransformAnimationCurveImpl::add(const WebTransformKeyframe& keyframe,
@@ -51,8 +53,8 @@ void WebTransformAnimationCurveImpl::add(const WebTransformKeyframe& keyframe,
}
scoped_ptr<cc::AnimationCurve>
-WebTransformAnimationCurveImpl::cloneToAnimationCurve() const {
+WebTransformAnimationCurveImpl::CloneToAnimationCurve() const {
return curve_->Clone();
}
-} // namespace WebKit
+} // namespace webkit

Powered by Google App Engine
This is Rietveld 408576698