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

Side by Side Diff: third_party/WebKit/Source/core/page/PageAnimator.h

Issue 1417613005: Revert of Web Animations: Use a single animation clock (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month 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
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 #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
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/dom/Document.cpp ('k') | third_party/WebKit/Source/core/page/PageAnimator.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698