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

Side by Side Diff: content/renderer/compositor_bindings/web_scroll_offset_animation_curve_impl.cc

Issue 383503003: Remove #ifs related to WebScrollOffsetAnimationCurve (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 5 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « content/renderer/compositor_bindings/web_scroll_offset_animation_curve_impl.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « content/renderer/compositor_bindings/web_scroll_offset_animation_curve_impl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698