Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 #ifndef WEBKIT_RENDERER_COMPOSITOR_BINDINGS_WEB_FILTER_ANIMATION_CURVE_IMPL_H_ | 5 #ifndef WEBKIT_RENDERER_COMPOSITOR_BINDINGS_WEB_FILTER_ANIMATION_CURVE_IMPL_H_ |
| 6 #define WEBKIT_RENDERER_COMPOSITOR_BINDINGS_WEB_FILTER_ANIMATION_CURVE_IMPL_H_ | 6 #define WEBKIT_RENDERER_COMPOSITOR_BINDINGS_WEB_FILTER_ANIMATION_CURVE_IMPL_H_ |
| 7 | 7 |
| 8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
| 9 #include "third_party/WebKit/public/platform/WebFilterAnimationCurve.h" | 9 #include "third_party/WebKit/public/platform/WebFilterAnimationCurve.h" |
| 10 #include "webkit/renderer/compositor_bindings/webkit_compositor_bindings_export. h" | 10 #include "webkit/renderer/compositor_bindings/webkit_compositor_bindings_export. h" |
| (...skipping 13 matching lines...) Expand all Loading... | |
| 24 WEBKIT_COMPOSITOR_BINDINGS_EXPORT WebFilterAnimationCurveImpl(); | 24 WEBKIT_COMPOSITOR_BINDINGS_EXPORT WebFilterAnimationCurveImpl(); |
| 25 virtual ~WebFilterAnimationCurveImpl(); | 25 virtual ~WebFilterAnimationCurveImpl(); |
| 26 | 26 |
| 27 // blink::WebAnimationCurve implementation. | 27 // blink::WebAnimationCurve implementation. |
| 28 virtual AnimationCurveType type() const; | 28 virtual AnimationCurveType type() const; |
| 29 | 29 |
| 30 // blink::WebFilterAnimationCurve implementation. | 30 // blink::WebFilterAnimationCurve implementation. |
| 31 virtual void add(const blink::WebFilterKeyframe& keyframe, | 31 virtual void add(const blink::WebFilterKeyframe& keyframe, |
| 32 TimingFunctionType type); | 32 TimingFunctionType type); |
| 33 virtual void add(const blink::WebFilterKeyframe& keyframe, | 33 virtual void add(const blink::WebFilterKeyframe& keyframe, |
| 34 int steps, bool stepsAtStart); | |
|
ajuma
2014/02/21 19:05:08
nit: steps_at_start
| |
| 35 virtual void add(const blink::WebFilterKeyframe& keyframe, | |
| 34 double x1, | 36 double x1, |
| 35 double y1, | 37 double y1, |
| 36 double x2, | 38 double x2, |
| 37 double y2); | 39 double y2); |
| 38 | 40 |
| 39 scoped_ptr<cc::AnimationCurve> CloneToAnimationCurve() const; | 41 scoped_ptr<cc::AnimationCurve> CloneToAnimationCurve() const; |
| 40 | 42 |
| 41 private: | 43 private: |
| 42 scoped_ptr<cc::KeyframedFilterAnimationCurve> curve_; | 44 scoped_ptr<cc::KeyframedFilterAnimationCurve> curve_; |
| 43 | 45 |
| 44 DISALLOW_COPY_AND_ASSIGN(WebFilterAnimationCurveImpl); | 46 DISALLOW_COPY_AND_ASSIGN(WebFilterAnimationCurveImpl); |
| 45 }; | 47 }; |
| 46 | 48 |
| 47 } // namespace webkit | 49 } // namespace webkit |
| 48 | 50 |
| 49 #endif // WEBKIT_RENDERER_COMPOSITOR_BINDINGS_WEB_FILTER_ANIMATION_CURVE_IMPL_H _ | 51 #endif // WEBKIT_RENDERER_COMPOSITOR_BINDINGS_WEB_FILTER_ANIMATION_CURVE_IMPL_H _ |
| OLD | NEW |