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 30 matching lines...) Expand all Loading... |
41 void getPlaybackRate(ErrorString*, double* playbackRate) override; | 41 void getPlaybackRate(ErrorString*, double* playbackRate) override; |
42 void setPlaybackRate(ErrorString*, double playbackRate) override; | 42 void setPlaybackRate(ErrorString*, double playbackRate) override; |
43 void getCurrentTime(ErrorString*, const String& animationId, double* current
Time) override; | 43 void getCurrentTime(ErrorString*, const String& animationId, double* current
Time) override; |
44 void setPaused(ErrorString*, const RefPtr<JSONArray>& animationIds, bool pau
sed) override; | 44 void setPaused(ErrorString*, const RefPtr<JSONArray>& animationIds, bool pau
sed) override; |
45 void setTiming(ErrorString*, const String& animationId, double duration, dou
ble delay) override; | 45 void setTiming(ErrorString*, const String& animationId, double duration, dou
ble delay) override; |
46 void seekAnimations(ErrorString*, const RefPtr<JSONArray>& animationIds, dou
ble currentTime) override; | 46 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; | 47 void resolveAnimation(ErrorString*, const String& animationId, RefPtr<TypeBu
ilder::Runtime::RemoteObject>& result) override; |
48 | 48 |
49 // API for InspectorInstrumentation | 49 // API for InspectorInstrumentation |
50 void didCreateAnimation(unsigned); | 50 void didCreateAnimation(unsigned); |
| 51 void didCancelAnimation(unsigned); |
51 void didStartAnimation(Animation*); | 52 void didStartAnimation(Animation*); |
52 void didClearDocumentOfWindowObject(LocalFrame*); | 53 void didClearDocumentOfWindowObject(LocalFrame*); |
53 | 54 |
54 // API for InspectorFrontend | 55 // API for InspectorFrontend |
55 void enable(ErrorString*) override; | 56 void enable(ErrorString*) override; |
56 | 57 |
57 // Methods for other agents to use. | 58 // Methods for other agents to use. |
58 Animation* assertAnimation(ErrorString*, const String& id); | 59 Animation* assertAnimation(ErrorString*, const String& id); |
59 | 60 |
60 DECLARE_VIRTUAL_TRACE(); | 61 DECLARE_VIRTUAL_TRACE(); |
(...skipping 16 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 |