| OLD | NEW | 
|---|
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "content/renderer/compositor_bindings/web_scroll_offset_animation_curve
    _impl.h" | 5 #include "content/renderer/compositor_bindings/web_scroll_offset_animation_curve
    _impl.h" | 
| 6 | 6 | 
| 7 #if WEB_SCROLL_OFFSET_ANIMATION_CURVE_IS_DEFINED |  | 
| 8 |  | 
| 9 #include "cc/animation/scroll_offset_animation_curve.h" | 7 #include "cc/animation/scroll_offset_animation_curve.h" | 
| 10 #include "cc/animation/timing_function.h" | 8 #include "cc/animation/timing_function.h" | 
| 11 #include "content/renderer/compositor_bindings/web_animation_curve_common.h" | 9 #include "content/renderer/compositor_bindings/web_animation_curve_common.h" | 
| 12 | 10 | 
| 13 using blink::WebFloatPoint; | 11 using blink::WebFloatPoint; | 
| 14 | 12 | 
| 15 namespace content { | 13 namespace content { | 
| 16 | 14 | 
| 17 WebScrollOffsetAnimationCurveImpl::WebScrollOffsetAnimationCurveImpl( | 15 WebScrollOffsetAnimationCurveImpl::WebScrollOffsetAnimationCurveImpl( | 
| 18     WebFloatPoint target_value, | 16     WebFloatPoint target_value, | 
| (...skipping 25 matching lines...) Expand all  Loading... | 
| 44   return curve_->Duration(); | 42   return curve_->Duration(); | 
| 45 } | 43 } | 
| 46 | 44 | 
| 47 scoped_ptr<cc::AnimationCurve> | 45 scoped_ptr<cc::AnimationCurve> | 
| 48 WebScrollOffsetAnimationCurveImpl::CloneToAnimationCurve() const { | 46 WebScrollOffsetAnimationCurveImpl::CloneToAnimationCurve() const { | 
| 49   return curve_->Clone(); | 47   return curve_->Clone(); | 
| 50 } | 48 } | 
| 51 | 49 | 
| 52 }  // namespace content | 50 }  // namespace content | 
| 53 | 51 | 
| 54 #endif  // WEB_SCROLL_OFFSET_ANIMATION_CURVE_IS_DEFINED |  | 
| 55 |  | 
| OLD | NEW | 
|---|