| 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/animation/Animation.h" | 10 #include "core/animation/Animation.h" |
| (...skipping 18 matching lines...) Expand all Loading... |
| 29 public: | 29 public: |
| 30 static PassOwnPtrWillBeRawPtr<InspectorAnimationAgent> create(InspectedFrame
s* inspectedFrames, InspectorDOMAgent* domAgent, InspectorCSSAgent* cssAgent, In
jectedScriptManager* injectedScriptManager) | 30 static PassOwnPtrWillBeRawPtr<InspectorAnimationAgent> create(InspectedFrame
s* inspectedFrames, InspectorDOMAgent* domAgent, InspectorCSSAgent* cssAgent, In
jectedScriptManager* injectedScriptManager) |
| 31 { | 31 { |
| 32 return adoptPtrWillBeNoop(new InspectorAnimationAgent(inspectedFrames, d
omAgent, cssAgent, injectedScriptManager)); | 32 return adoptPtrWillBeNoop(new InspectorAnimationAgent(inspectedFrames, d
omAgent, cssAgent, injectedScriptManager)); |
| 33 } | 33 } |
| 34 | 34 |
| 35 // Base agent methods. | 35 // Base agent methods. |
| 36 void restore() override; | 36 void restore() override; |
| 37 void disable(ErrorString*) override; | 37 void disable(ErrorString*) override; |
| 38 void didCommitLoadForLocalFrame(LocalFrame*) override; | 38 void didCommitLoadForLocalFrame(LocalFrame*) override; |
| 39 void clearFrontend() override; |
| 39 | 40 |
| 40 // Protocol method implementations | 41 // Protocol method implementations |
| 41 void getPlaybackRate(ErrorString*, double* playbackRate) override; | 42 void getPlaybackRate(ErrorString*, double* playbackRate) override; |
| 42 void setPlaybackRate(ErrorString*, double playbackRate) override; | 43 void setPlaybackRate(ErrorString*, double playbackRate) override; |
| 43 void getCurrentTime(ErrorString*, const String& animationId, double* current
Time) override; | 44 void getCurrentTime(ErrorString*, const String& animationId, double* current
Time) override; |
| 44 void setPaused(ErrorString*, const RefPtr<JSONArray>& animationIds, bool pau
sed) override; | 45 void setPaused(ErrorString*, const RefPtr<JSONArray>& animationIds, bool pau
sed) override; |
| 45 void setTiming(ErrorString*, const String& animationId, double duration, dou
ble delay) override; | 46 void setTiming(ErrorString*, const String& animationId, double duration, dou
ble delay) override; |
| 46 void seekAnimations(ErrorString*, const RefPtr<JSONArray>& animationIds, dou
ble currentTime) override; | 47 void seekAnimations(ErrorString*, const RefPtr<JSONArray>& animationIds, dou
ble currentTime) override; |
| 47 void resolveAnimation(ErrorString*, const String& animationId, RefPtr<TypeBu
ilder::Runtime::RemoteObject>& result) override; | 48 void resolveAnimation(ErrorString*, const String& animationId, RefPtr<TypeBu
ilder::Runtime::RemoteObject>& result) override; |
| 48 | 49 |
| (...skipping 28 matching lines...) Expand all Loading... |
| 77 RawPtrWillBeMember<InjectedScriptManager> m_injectedScriptManager; | 78 RawPtrWillBeMember<InjectedScriptManager> m_injectedScriptManager; |
| 78 PersistentHeapHashMapWillBeHeapHashMap<String, Member<Animation>> m_idToAnim
ation; | 79 PersistentHeapHashMapWillBeHeapHashMap<String, Member<Animation>> m_idToAnim
ation; |
| 79 PersistentHeapHashMapWillBeHeapHashMap<String, Member<Animation>> m_idToAnim
ationClone; | 80 PersistentHeapHashMapWillBeHeapHashMap<String, Member<Animation>> m_idToAnim
ationClone; |
| 80 WillBeHeapHashMap<String, AnimationType> m_idToAnimationType; | 81 WillBeHeapHashMap<String, AnimationType> m_idToAnimationType; |
| 81 bool m_isCloning; | 82 bool m_isCloning; |
| 82 }; | 83 }; |
| 83 | 84 |
| 84 } | 85 } |
| 85 | 86 |
| 86 #endif // InspectorAnimationAgent_h | 87 #endif // InspectorAnimationAgent_h |
| OLD | NEW |