| 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 | 50 |
| 50 // API for InspectorFrontend | 51 // API for InspectorFrontend |
| 51 virtual void enable(ErrorString*) override; | 52 virtual void enable(ErrorString*) override; |
| 52 | 53 |
| 53 // Methods for other agents to use. | 54 // Methods for other agents to use. |
| (...skipping 15 matching lines...) Expand all Loading... |
| 69 RawPtrWillBeMember<InspectorPageAgent> m_pageAgent; | 70 RawPtrWillBeMember<InspectorPageAgent> m_pageAgent; |
| 70 RawPtrWillBeMember<InspectorDOMAgent> m_domAgent; | 71 RawPtrWillBeMember<InspectorDOMAgent> m_domAgent; |
| 71 WillBeHeapHashMap<String, RefPtrWillBeMember<Animation>> m_idToAnimation; | 72 WillBeHeapHashMap<String, RefPtrWillBeMember<Animation>> m_idToAnimation; |
| 72 WillBeHeapHashMap<String, AnimationType> m_idToAnimationType; | 73 WillBeHeapHashMap<String, AnimationType> m_idToAnimationType; |
| 73 double m_latestStartTime; | 74 double m_latestStartTime; |
| 74 }; | 75 }; |
| 75 | 76 |
| 76 } | 77 } |
| 77 | 78 |
| 78 #endif // InspectorAnimationAgent_h | 79 #endif // InspectorAnimationAgent_h |
| OLD | NEW |