| 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 "platform/scroll/ProgrammaticScrollAnimator.h" | 5 #include "platform/scroll/ProgrammaticScrollAnimator.h" |
| 6 | 6 |
| 7 #include "platform/animation/CompositorAnimation.h" | 7 #include "platform/animation/CompositorAnimation.h" |
| 8 #include "platform/animation/CompositorScrollOffsetAnimationCurve.h" | 8 #include "platform/animation/CompositorScrollOffsetAnimationCurve.h" |
| 9 #include "platform/geometry/IntPoint.h" | 9 #include "platform/geometry/IntPoint.h" |
| 10 #include "platform/graphics/CompositorFactory.h" | 10 #include "platform/graphics/CompositorFactory.h" |
| 11 #include "platform/graphics/GraphicsLayer.h" | 11 #include "platform/graphics/GraphicsLayer.h" |
| 12 #include "platform/scroll/ScrollableArea.h" | 12 #include "platform/scroll/ScrollableArea.h" |
| 13 #include "public/platform/Platform.h" | 13 #include "public/platform/Platform.h" |
| 14 #include "public/platform/WebCompositorSupport.h" | 14 #include "public/platform/WebCompositorSupport.h" |
| 15 | 15 |
| 16 namespace blink { | 16 namespace blink { |
| 17 | 17 |
| 18 RawPtr<ProgrammaticScrollAnimator> ProgrammaticScrollAnimator::create(Scrollable
Area* scrollableArea) | |
| 19 { | |
| 20 return new ProgrammaticScrollAnimator(scrollableArea); | |
| 21 } | |
| 22 | |
| 23 ProgrammaticScrollAnimator::ProgrammaticScrollAnimator(ScrollableArea* scrollabl
eArea) | 18 ProgrammaticScrollAnimator::ProgrammaticScrollAnimator(ScrollableArea* scrollabl
eArea) |
| 24 : m_scrollableArea(scrollableArea) | 19 : m_scrollableArea(scrollableArea) |
| 25 , m_startTime(0.0) | 20 , m_startTime(0.0) |
| 26 { | 21 { |
| 27 } | 22 } |
| 28 | 23 |
| 29 ProgrammaticScrollAnimator::~ProgrammaticScrollAnimator() | 24 ProgrammaticScrollAnimator::~ProgrammaticScrollAnimator() |
| 30 { | 25 { |
| 31 } | 26 } |
| 32 | 27 |
| (...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 178 ScrollAnimatorCompositorCoordinator::compositorAnimationFinished(groupId); | 173 ScrollAnimatorCompositorCoordinator::compositorAnimationFinished(groupId); |
| 179 } | 174 } |
| 180 | 175 |
| 181 DEFINE_TRACE(ProgrammaticScrollAnimator) | 176 DEFINE_TRACE(ProgrammaticScrollAnimator) |
| 182 { | 177 { |
| 183 visitor->trace(m_scrollableArea); | 178 visitor->trace(m_scrollableArea); |
| 184 ScrollAnimatorCompositorCoordinator::trace(visitor); | 179 ScrollAnimatorCompositorCoordinator::trace(visitor); |
| 185 } | 180 } |
| 186 | 181 |
| 187 } // namespace blink | 182 } // namespace blink |
| OLD | NEW |