| 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 InspectorAnimationAgent_h | 5 #ifndef InspectorAnimationAgent_h |
| 6 #define InspectorAnimationAgent_h | 6 #define InspectorAnimationAgent_h |
| 7 | 7 |
| 8 #include "core/CoreExport.h" | 8 #include "core/CoreExport.h" |
| 9 #include "core/InspectorFrontend.h" | 9 #include "core/InspectorFrontend.h" |
| 10 #include "core/css/CSSKeyframesRule.h" | 10 #include "core/css/CSSKeyframesRule.h" |
| (...skipping 23 matching lines...) Expand all Loading... |
| 34 void restore() override; | 34 void restore() override; |
| 35 void disable(ErrorString*) override; | 35 void disable(ErrorString*) override; |
| 36 void didCommitLoadForLocalFrame(LocalFrame*) override; | 36 void didCommitLoadForLocalFrame(LocalFrame*) override; |
| 37 | 37 |
| 38 // Protocol method implementations | 38 // Protocol method implementations |
| 39 virtual void getAnimationPlayersForNode(ErrorString*, int nodeId, bool inclu
deSubtreeAnimations, RefPtr<TypeBuilder::Array<TypeBuilder::Animation::Animation
Player> >& animationPlayersArray) override; | 39 virtual void getAnimationPlayersForNode(ErrorString*, int nodeId, bool inclu
deSubtreeAnimations, RefPtr<TypeBuilder::Array<TypeBuilder::Animation::Animation
Player> >& animationPlayersArray) override; |
| 40 virtual void getPlaybackRate(ErrorString*, double* playbackRate) override; | 40 virtual void getPlaybackRate(ErrorString*, double* playbackRate) override; |
| 41 virtual void setPlaybackRate(ErrorString*, double playbackRate) override; | 41 virtual void setPlaybackRate(ErrorString*, double playbackRate) override; |
| 42 virtual void setCurrentTime(ErrorString*, double currentTime) override; | 42 virtual void setCurrentTime(ErrorString*, double currentTime) override; |
| 43 virtual void setTiming(ErrorString*, const String& playerId, double duration
, double delay) override; | 43 virtual void setTiming(ErrorString*, const String& playerId, double duration
, double delay) override; |
| 44 virtual void setEasing(ErrorString*, const String& playerId, const String& e
asing) override; |
| 44 | 45 |
| 45 // API for InspectorInstrumentation | 46 // API for InspectorInstrumentation |
| 46 void didCreateAnimation(Animation*); | 47 void didCreateAnimation(Animation*); |
| 47 void didCancelAnimation(Animation*); | 48 void didCancelAnimation(Animation*); |
| 48 void didClearDocumentOfWindowObject(LocalFrame*); | 49 void didClearDocumentOfWindowObject(LocalFrame*); |
| 49 void animationTimingUpdated(Animation*); | 50 void animationTimingUpdated(Animation*); |
| 50 | 51 |
| 51 // API for InspectorFrontend | 52 // API for InspectorFrontend |
| 52 virtual void enable(ErrorString*) override; | 53 virtual void enable(ErrorString*) override; |
| 53 | 54 |
| (...skipping 16 matching lines...) Expand all Loading... |
| 70 RawPtrWillBeMember<InspectorPageAgent> m_pageAgent; | 71 RawPtrWillBeMember<InspectorPageAgent> m_pageAgent; |
| 71 RawPtrWillBeMember<InspectorDOMAgent> m_domAgent; | 72 RawPtrWillBeMember<InspectorDOMAgent> m_domAgent; |
| 72 WillBeHeapHashMap<String, RefPtrWillBeMember<Animation>> m_idToAnimation; | 73 WillBeHeapHashMap<String, RefPtrWillBeMember<Animation>> m_idToAnimation; |
| 73 WillBeHeapHashMap<String, AnimationType> m_idToAnimationType; | 74 WillBeHeapHashMap<String, AnimationType> m_idToAnimationType; |
| 74 double m_latestStartTime; | 75 double m_latestStartTime; |
| 75 }; | 76 }; |
| 76 | 77 |
| 77 } | 78 } |
| 78 | 79 |
| 79 #endif // InspectorAnimationAgent_h | 80 #endif // InspectorAnimationAgent_h |
| OLD | NEW |