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

Side by Side Diff: cc/blink/web_scroll_offset_animation_curve_impl.cc

Issue 470983004: Move blink<->cc bindings to cc/blink (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 years, 4 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 | « cc/blink/web_scroll_offset_animation_curve_impl.h ('k') | cc/blink/web_scrollbar_layer_impl.h » ('j') | 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 "cc/blink/web_scroll_offset_animation_curve_impl.h"
6 6
7 #include "cc/animation/scroll_offset_animation_curve.h" 7 #include "cc/animation/scroll_offset_animation_curve.h"
8 #include "cc/animation/timing_function.h" 8 #include "cc/animation/timing_function.h"
9 #include "content/renderer/compositor_bindings/web_animation_curve_common.h" 9 #include "cc/blink/web_animation_curve_common.h"
10 10
11 using blink::WebFloatPoint; 11 using blink::WebFloatPoint;
12 12
13 namespace content { 13 namespace cc_blink {
14 14
15 WebScrollOffsetAnimationCurveImpl::WebScrollOffsetAnimationCurveImpl( 15 WebScrollOffsetAnimationCurveImpl::WebScrollOffsetAnimationCurveImpl(
16 WebFloatPoint target_value, 16 WebFloatPoint target_value,
17 TimingFunctionType timing_function) 17 TimingFunctionType timing_function)
18 : curve_(cc::ScrollOffsetAnimationCurve::Create( 18 : curve_(cc::ScrollOffsetAnimationCurve::Create(
19 gfx::Vector2dF(target_value.x, target_value.y), 19 gfx::Vector2dF(target_value.x, target_value.y),
20 CreateTimingFunction(timing_function))) { 20 CreateTimingFunction(timing_function))) {
21 } 21 }
22 22
23 WebScrollOffsetAnimationCurveImpl::~WebScrollOffsetAnimationCurveImpl() { 23 WebScrollOffsetAnimationCurveImpl::~WebScrollOffsetAnimationCurveImpl() {
(...skipping 16 matching lines...) Expand all
40 40
41 double WebScrollOffsetAnimationCurveImpl::duration() const { 41 double WebScrollOffsetAnimationCurveImpl::duration() const {
42 return curve_->Duration(); 42 return curve_->Duration();
43 } 43 }
44 44
45 scoped_ptr<cc::AnimationCurve> 45 scoped_ptr<cc::AnimationCurve>
46 WebScrollOffsetAnimationCurveImpl::CloneToAnimationCurve() const { 46 WebScrollOffsetAnimationCurveImpl::CloneToAnimationCurve() const {
47 return curve_->Clone(); 47 return curve_->Clone();
48 } 48 }
49 49
50 } // namespace content 50 } // namespace cc_blink
51
OLDNEW
« no previous file with comments | « cc/blink/web_scroll_offset_animation_curve_impl.h ('k') | cc/blink/web_scrollbar_layer_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698