Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(62)

Side by Side Diff: third_party/WebKit/Source/core/inspector/InspectorAnimationAgent.h

Issue 1422713012: Devtools Animations: Listen to all animation play state changes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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/css/CSSKeyframesRule.h" 11 #include "core/css/CSSKeyframesRule.h"
11 #include "core/inspector/InspectorBaseAgent.h" 12 #include "core/inspector/InspectorBaseAgent.h"
12 #include "wtf/PassOwnPtr.h" 13 #include "wtf/PassOwnPtr.h"
13 #include "wtf/text/WTFString.h" 14 #include "wtf/text/WTFString.h"
14 15
15 namespace blink { 16 namespace blink {
16 17
17 class Animation;
18 class AnimationNode; 18 class AnimationNode;
19 class AnimationTimeline; 19 class AnimationTimeline;
20 class Element; 20 class Element;
21 class InjectedScriptManager; 21 class InjectedScriptManager;
22 class InspectedFrames; 22 class InspectedFrames;
23 class InspectorCSSAgent; 23 class InspectorCSSAgent;
24 class InspectorDOMAgent; 24 class InspectorDOMAgent;
25 class TimingFunction; 25 class TimingFunction;
26 26
27 class CORE_EXPORT InspectorAnimationAgent final : public InspectorBaseAgent<Insp ectorAnimationAgent, InspectorFrontend::Animation>, public InspectorBackendDispa tcher::AnimationCommandHandler { 27 class CORE_EXPORT InspectorAnimationAgent final : public InspectorBaseAgent<Insp ectorAnimationAgent, InspectorFrontend::Animation>, public InspectorBackendDispa tcher::AnimationCommandHandler {
(...skipping 13 matching lines...) Expand all
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 animationPlayStateChanged(Animation*, Animation::AnimationPlayState, An imation::AnimationPlayState);
52 void didStartAnimation(Animation*);
53 void didClearDocumentOfWindowObject(LocalFrame*); 52 void didClearDocumentOfWindowObject(LocalFrame*);
54 53
55 // API for InspectorFrontend 54 // API for InspectorFrontend
56 void enable(ErrorString*) override; 55 void enable(ErrorString*) override;
57 56
58 // Methods for other agents to use. 57 // Methods for other agents to use.
59 Animation* assertAnimation(ErrorString*, const String& id); 58 Animation* assertAnimation(ErrorString*, const String& id);
60 59
61 DECLARE_VIRTUAL_TRACE(); 60 DECLARE_VIRTUAL_TRACE();
62 61
(...skipping 15 matching lines...) Expand all
78 RawPtrWillBeMember<InjectedScriptManager> m_injectedScriptManager; 77 RawPtrWillBeMember<InjectedScriptManager> m_injectedScriptManager;
79 PersistentHeapHashMapWillBeHeapHashMap<String, Member<Animation>> m_idToAnim ation; 78 PersistentHeapHashMapWillBeHeapHashMap<String, Member<Animation>> m_idToAnim ation;
80 PersistentHeapHashMapWillBeHeapHashMap<String, Member<Animation>> m_idToAnim ationClone; 79 PersistentHeapHashMapWillBeHeapHashMap<String, Member<Animation>> m_idToAnim ationClone;
81 WillBeHeapHashMap<String, AnimationType> m_idToAnimationType; 80 WillBeHeapHashMap<String, AnimationType> m_idToAnimationType;
82 bool m_isCloning; 81 bool m_isCloning;
83 }; 82 };
84 83
85 } 84 }
86 85
87 #endif // InspectorAnimationAgent_h 86 #endif // InspectorAnimationAgent_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698