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

Unified Diff: webkit/compositor_bindings/web_transform_animation_curve_impl.h

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.h
diff --git a/webkit/compositor_bindings/web_transform_animation_curve_impl.h b/webkit/compositor_bindings/web_transform_animation_curve_impl.h
index abf1f3479e18b466fdfc9dacac94aec10fb5297b..00c8136e7c3790b91d3cfcd94c814d14f290d383 100644
--- a/webkit/compositor_bindings/web_transform_animation_curve_impl.h
+++ b/webkit/compositor_bindings/web_transform_animation_curve_impl.h
@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef WebTransformAnimationCurveImpl_h
-#define WebTransformAnimationCurveImpl_h
+#ifndef WEBKIT_COMPOSITOR_BINDINGS_WEB_TRANSFORM_ANIMATION_CURVE_IMPL_H_
+#define WEBKIT_COMPOSITOR_BINDINGS_WEB_TRANSFORM_ANIMATION_CURVE_IMPL_H_
#include "base/memory/scoped_ptr.h"
#include "third_party/WebKit/Source/Platform/chromium/public/WebTransformAnimationCurve.h"
@@ -14,33 +14,37 @@ class AnimationCurve;
class KeyframedTransformAnimationCurve;
}
-namespace WebKit {
+namespace WebKit { class WebTransformKeyframe; }
-class WebTransformKeyframe;
+namespace webkit {
-class WebTransformAnimationCurveImpl : public WebTransformAnimationCurve {
+class WebTransformAnimationCurveImpl
+ : public WebKit::WebTransformAnimationCurve {
public:
WEBKIT_COMPOSITOR_BINDINGS_EXPORT WebTransformAnimationCurveImpl();
virtual ~WebTransformAnimationCurveImpl();
- // WebAnimationCurve implementation.
+ // WebKit::WebAnimationCurve implementation.
virtual AnimationCurveType type() const;
- // WebTransformAnimationCurve implementation.
- virtual void add(const WebTransformKeyframe&);
- virtual void add(const WebTransformKeyframe&, TimingFunctionType);
- virtual void add(const WebTransformKeyframe&,
+ // WebKit::WebTransformAnimationCurve implementation.
+ virtual void add(const WebKit::WebTransformKeyframe& keyframe);
+ virtual void add(const WebKit::WebTransformKeyframe& keyframe,
+ TimingFunctionType type);
+ virtual void add(const WebKit::WebTransformKeyframe& keyframe,
double x1,
double y1,
double x2,
double y2);
- scoped_ptr<cc::AnimationCurve> cloneToAnimationCurve() const;
+ scoped_ptr<cc::AnimationCurve> CloneToAnimationCurve() const;
private:
scoped_ptr<cc::KeyframedTransformAnimationCurve> curve_;
+
+ DISALLOW_COPY_AND_ASSIGN(WebTransformAnimationCurveImpl);
};
-}
+} // namespace webkit
-#endif // WebTransformAnimationCurveImpl_h
+#endif // WEBKIT_COMPOSITOR_BINDINGS_WEB_TRANSFORM_ANIMATION_CURVE_IMPL_H_

Powered by Google App Engine
This is Rietveld 408576698