| 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 #ifndef ProgrammaticScrollAnimator_h | 5 #ifndef ProgrammaticScrollAnimator_h |
| 6 #define ProgrammaticScrollAnimator_h | 6 #define ProgrammaticScrollAnimator_h |
| 7 | 7 |
| 8 #include "platform/geometry/FloatPoint.h" | 8 #include "platform/geometry/FloatPoint.h" |
| 9 #include "platform/heap/Handle.h" |
| 9 #include "public/platform/WebCompositorAnimationDelegate.h" | 10 #include "public/platform/WebCompositorAnimationDelegate.h" |
| 10 #include "public/platform/WebCompositorAnimationPlayerClient.h" | 11 #include "public/platform/WebCompositorAnimationPlayerClient.h" |
| 11 #include "wtf/Allocator.h" | 12 #include "wtf/Allocator.h" |
| 12 #include "wtf/Noncopyable.h" | 13 #include "wtf/Noncopyable.h" |
| 13 #include "wtf/OwnPtr.h" | 14 #include "wtf/OwnPtr.h" |
| 14 #include "wtf/PassOwnPtr.h" | 15 #include "wtf/PassOwnPtr.h" |
| 15 | 16 |
| 16 namespace blink { | 17 namespace blink { |
| 17 | 18 |
| 18 class ScrollableArea; | 19 class ScrollableArea; |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 68 WaitingToCancelOnCompositor | 69 WaitingToCancelOnCompositor |
| 69 }; | 70 }; |
| 70 | 71 |
| 71 void resetAnimationState(); | 72 void resetAnimationState(); |
| 72 void notifyPositionChanged(const DoublePoint&); | 73 void notifyPositionChanged(const DoublePoint&); |
| 73 void reattachCompositorPlayerIfNeeded(WebCompositorAnimationTimeline*); | 74 void reattachCompositorPlayerIfNeeded(WebCompositorAnimationTimeline*); |
| 74 | 75 |
| 75 OwnPtr<WebCompositorAnimationPlayer> m_compositorPlayer; | 76 OwnPtr<WebCompositorAnimationPlayer> m_compositorPlayer; |
| 76 int m_compositorAnimationAttachedToLayerId; | 77 int m_compositorAnimationAttachedToLayerId; |
| 77 | 78 |
| 79 GC_PLUGIN_IGNORE("509911") |
| 78 ScrollableArea* m_scrollableArea; | 80 ScrollableArea* m_scrollableArea; |
| 79 OwnPtr<WebScrollOffsetAnimationCurve> m_animationCurve; | 81 OwnPtr<WebScrollOffsetAnimationCurve> m_animationCurve; |
| 80 FloatPoint m_targetOffset; | 82 FloatPoint m_targetOffset; |
| 81 double m_startTime; | 83 double m_startTime; |
| 82 RunState m_runState; | 84 RunState m_runState; |
| 83 int m_compositorAnimationId; | 85 int m_compositorAnimationId; |
| 84 int m_compositorAnimationGroupId; | 86 int m_compositorAnimationGroupId; |
| 85 }; | 87 }; |
| 86 | 88 |
| 87 } // namespace blink | 89 } // namespace blink |
| 88 | 90 |
| 89 #endif // ProgrammaticScrollAnimator_h | 91 #endif // ProgrammaticScrollAnimator_h |
| OLD | NEW |