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/animation/Animation.h" | 9 #include "core/animation/Animation.h" |
10 #include "core/css/CSSKeyframesRule.h" | 10 #include "core/css/CSSKeyframesRule.h" |
(...skipping 24 matching lines...) Expand all Loading... |
35 // Protocol method implementations | 35 // Protocol method implementations |
36 void enable(ErrorString*) override; | 36 void enable(ErrorString*) override; |
37 void disable(ErrorString*) override; | 37 void disable(ErrorString*) override; |
38 void getPlaybackRate(ErrorString*, double* playbackRate) override; | 38 void getPlaybackRate(ErrorString*, double* playbackRate) override; |
39 void setPlaybackRate(ErrorString*, double playbackRate) override; | 39 void setPlaybackRate(ErrorString*, double playbackRate) override; |
40 void getCurrentTime(ErrorString*, const String& id, double* currentTime) ove
rride; | 40 void getCurrentTime(ErrorString*, const String& id, double* currentTime) ove
rride; |
41 void setPaused(ErrorString*, std::unique_ptr<protocol::Array<String>> animat
ions, bool paused) override; | 41 void setPaused(ErrorString*, std::unique_ptr<protocol::Array<String>> animat
ions, bool paused) override; |
42 void setTiming(ErrorString*, const String& animationId, double duration, dou
ble delay) override; | 42 void setTiming(ErrorString*, const String& animationId, double duration, dou
ble delay) override; |
43 void seekAnimations(ErrorString*, std::unique_ptr<protocol::Array<String>> a
nimations, double currentTime) override; | 43 void seekAnimations(ErrorString*, std::unique_ptr<protocol::Array<String>> a
nimations, double currentTime) override; |
44 void releaseAnimations(ErrorString*, std::unique_ptr<protocol::Array<String>
> animations) override; | 44 void releaseAnimations(ErrorString*, std::unique_ptr<protocol::Array<String>
> animations) override; |
45 void resolveAnimation(ErrorString*, const String& animationId, std::unique_p
tr<protocol::Runtime::RemoteObject>*) override; | 45 void resolveAnimation(ErrorString*, const String& animationId, std::unique_p
tr<protocol::Runtime::Exported::RemoteObject>*) override; |
46 | 46 |
47 // API for InspectorInstrumentation | 47 // API for InspectorInstrumentation |
48 void didCreateAnimation(unsigned); | 48 void didCreateAnimation(unsigned); |
49 void animationPlayStateChanged(blink::Animation*, blink::Animation::Animatio
nPlayState, blink::Animation::AnimationPlayState); | 49 void animationPlayStateChanged(blink::Animation*, blink::Animation::Animatio
nPlayState, blink::Animation::AnimationPlayState); |
50 void didClearDocumentOfWindowObject(LocalFrame*); | 50 void didClearDocumentOfWindowObject(LocalFrame*); |
51 | 51 |
52 // Methods for other agents to use. | 52 // Methods for other agents to use. |
53 blink::Animation* assertAnimation(ErrorString*, const String& id); | 53 blink::Animation* assertAnimation(ErrorString*, const String& id); |
54 | 54 |
55 DECLARE_VIRTUAL_TRACE(); | 55 DECLARE_VIRTUAL_TRACE(); |
(...skipping 15 matching lines...) Expand all Loading... |
71 HeapHashMap<String, Member<blink::Animation>> m_idToAnimation; | 71 HeapHashMap<String, Member<blink::Animation>> m_idToAnimation; |
72 HeapHashMap<String, Member<blink::Animation>> m_idToAnimationClone; | 72 HeapHashMap<String, Member<blink::Animation>> m_idToAnimationClone; |
73 HashMap<String, String> m_idToAnimationType; | 73 HashMap<String, String> m_idToAnimationType; |
74 bool m_isCloning; | 74 bool m_isCloning; |
75 HashSet<String> m_clearedAnimations; | 75 HashSet<String> m_clearedAnimations; |
76 }; | 76 }; |
77 | 77 |
78 } // namespace blink | 78 } // namespace blink |
79 | 79 |
80 #endif // InspectorAnimationAgent_h | 80 #endif // InspectorAnimationAgent_h |
OLD | NEW |