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

Unified Diff: webkit/compositor_bindings/web_float_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: 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_float_animation_curve_impl.cc
diff --git a/webkit/compositor_bindings/web_float_animation_curve_impl.cc b/webkit/compositor_bindings/web_float_animation_curve_impl.cc
index 321bab3ca3fd11ada25e06195e693b4967dc3ee0..c75c4c684805b9dc1722c7a6b57351d10013d8e2 100644
--- a/webkit/compositor_bindings/web_float_animation_curve_impl.cc
+++ b/webkit/compositor_bindings/web_float_animation_curve_impl.cc
@@ -9,15 +9,18 @@
#include "cc/timing_function.h"
#include "webkit/compositor_bindings/web_animation_curve_common.h"
-namespace WebKit {
+using WebKit::WebFloatKeyframe;
+
+namespace webkit {
WebFloatAnimationCurveImpl::WebFloatAnimationCurveImpl()
: curve_(cc::KeyframedFloatAnimationCurve::Create()) {}
WebFloatAnimationCurveImpl::~WebFloatAnimationCurveImpl() {}
-WebAnimationCurve::AnimationCurveType WebFloatAnimationCurveImpl::type() const {
- return WebAnimationCurve::AnimationCurveTypeFloat;
+WebKit::WebAnimationCurve::AnimationCurveType
+WebFloatAnimationCurveImpl::type() const {
+ return WebKit::WebAnimationCurve::AnimationCurveTypeFloat;
}
void WebFloatAnimationCurveImpl::add(const WebFloatKeyframe& keyframe) {
@@ -27,7 +30,7 @@ void WebFloatAnimationCurveImpl::add(const WebFloatKeyframe& keyframe) {
void WebFloatAnimationCurveImpl::add(const WebFloatKeyframe& keyframe,
TimingFunctionType type) {
curve_->AddKeyframe(cc::FloatKeyframe::Create(
- keyframe.time, keyframe.value, createTimingFunction(type)));
+ keyframe.time, keyframe.value, CreateTimingFunction(type)));
}
void WebFloatAnimationCurveImpl::add(const WebFloatKeyframe& keyframe,
@@ -51,4 +54,4 @@ WebFloatAnimationCurveImpl::cloneToAnimationCurve() const {
return curve_->Clone();
}
-} // namespace WebKit
+} // namespace webkit

Powered by Google App Engine
This is Rietveld 408576698