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 PageAnimator_h | 5 #ifndef PageAnimator_h |
6 #define PageAnimator_h | 6 #define PageAnimator_h |
7 | 7 |
8 #include "core/CoreExport.h" | 8 #include "core/CoreExport.h" |
9 #include "core/animation/AnimationClock.h" | |
10 #include "platform/heap/Handle.h" | 9 #include "platform/heap/Handle.h" |
11 | 10 |
12 namespace blink { | 11 namespace blink { |
13 | 12 |
14 class LocalFrame; | 13 class LocalFrame; |
15 class Page; | 14 class Page; |
16 | 15 |
17 class CORE_EXPORT PageAnimator final : public RefCountedWillBeGarbageCollected<P
ageAnimator> { | 16 class CORE_EXPORT PageAnimator final : public RefCountedWillBeGarbageCollected<P
ageAnimator> { |
18 public: | 17 public: |
19 static PassRefPtrWillBeRawPtr<PageAnimator> create(Page&); | 18 static PassRefPtrWillBeRawPtr<PageAnimator> create(Page&); |
20 DECLARE_TRACE(); | 19 DECLARE_TRACE(); |
21 void scheduleVisualUpdate(LocalFrame* = 0); | 20 void scheduleVisualUpdate(LocalFrame* = 0); |
22 void serviceScriptedAnimations(double monotonicAnimationStartTime); | 21 void serviceScriptedAnimations(double monotonicAnimationStartTime); |
23 | 22 |
24 bool isServicingAnimations() const { return m_servicingAnimations; } | 23 bool isServicingAnimations() const { return m_servicingAnimations; } |
25 void updateLayoutAndStyleForPainting(LocalFrame* rootFrame); | 24 void updateLayoutAndStyleForPainting(LocalFrame* rootFrame); |
26 AnimationClock& clock() { return m_animationClock; } | |
27 | 25 |
28 private: | 26 private: |
29 explicit PageAnimator(Page&); | 27 explicit PageAnimator(Page&); |
30 | 28 |
31 RawPtrWillBeMember<Page> m_page; | 29 RawPtrWillBeMember<Page> m_page; |
32 bool m_servicingAnimations; | 30 bool m_servicingAnimations; |
33 bool m_updatingLayoutAndStyleForPainting; | 31 bool m_updatingLayoutAndStyleForPainting; |
34 AnimationClock m_animationClock; | |
35 }; | 32 }; |
36 | 33 |
37 } | 34 } |
38 | 35 |
39 #endif // PageAnimator_h | 36 #endif // PageAnimator_h |
OLD | NEW |