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

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

Issue 1042143005: Devtools Animations: Support multiple frames in the animation timeline (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Naming changes Created 5 years, 8 months 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 | Annotate | Revision Log
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/InspectorFrontend.h" 8 #include "core/InspectorFrontend.h"
9 #include "core/css/CSSKeyframesRule.h" 9 #include "core/css/CSSKeyframesRule.h"
10 #include "core/inspector/InspectorBaseAgent.h" 10 #include "core/inspector/InspectorBaseAgent.h"
(...skipping 18 matching lines...) Expand all
29 } 29 }
30 30
31 // Base agent methods. 31 // Base agent methods.
32 void restore() override; 32 void restore() override;
33 void disable(ErrorString*) override; 33 void disable(ErrorString*) override;
34 void didCommitLoadForLocalFrame(LocalFrame*) override; 34 void didCommitLoadForLocalFrame(LocalFrame*) override;
35 35
36 // Protocol method implementations 36 // Protocol method implementations
37 virtual void getAnimationPlayersForNode(ErrorString*, int nodeId, bool inclu deSubtreeAnimations, RefPtr<TypeBuilder::Array<TypeBuilder::Animation::Animation Player> >& animationPlayersArray) override; 37 virtual void getAnimationPlayersForNode(ErrorString*, int nodeId, bool inclu deSubtreeAnimations, RefPtr<TypeBuilder::Array<TypeBuilder::Animation::Animation Player> >& animationPlayersArray) override;
38 virtual void getPlaybackRate(ErrorString*, double* playbackRate) override; 38 virtual void getPlaybackRate(ErrorString*, double* playbackRate) override;
39 virtual void setPlaybackRate(ErrorString*, double playbackRate) override; 39 virtual void setPlaybackRate(ErrorString*, double playbackRate, RefPtr<TypeB uilder::Array<TypeBuilder::Animation::AnimationStartTime>>& animationStartTimes) override;
40 virtual void setCurrentTime(ErrorString*, double currentTime) override; 40 virtual void seekTimelineTo(ErrorString*, double time, RefPtr<TypeBuilder::A rray<TypeBuilder::Animation::AnimationStartTime>>& animationStartTimes) override ;
41 virtual void seekTimelineBy(ErrorString*, double timeDelta) override;
41 virtual void setTiming(ErrorString*, const String& playerId, double duration , double delay) override; 42 virtual void setTiming(ErrorString*, const String& playerId, double duration , double delay) override;
42 43
43 // API for InspectorInstrumentation 44 // API for InspectorInstrumentation
44 void didCreateAnimationPlayer(AnimationPlayer*); 45 void didCreateAnimationPlayer(AnimationPlayer*);
45 void didCancelAnimationPlayer(AnimationPlayer*); 46 void didCancelAnimationPlayer(AnimationPlayer*);
46 47
47 // API for InspectorFrontend 48 // API for InspectorFrontend
48 virtual void enable(ErrorString*) override; 49 virtual void enable(ErrorString*) override;
49 50
50 // Methods for other agents to use. 51 // Methods for other agents to use.
51 AnimationPlayer* assertAnimationPlayer(ErrorString*, const String& id); 52 AnimationPlayer* assertAnimationPlayer(ErrorString*, const String& id);
52 53
53 DECLARE_VIRTUAL_TRACE(); 54 DECLARE_VIRTUAL_TRACE();
54 55
55 private: 56 private:
56 InspectorAnimationAgent(InspectorPageAgent*, InspectorDOMAgent*); 57 InspectorAnimationAgent(InspectorPageAgent*, InspectorDOMAgent*);
57 58
58 typedef TypeBuilder::Animation::AnimationPlayer::Type::Enum AnimationType; 59 typedef TypeBuilder::Animation::AnimationPlayer::Type::Enum AnimationType;
59 60
60 PassRefPtr<TypeBuilder::Animation::AnimationPlayer> buildObjectForAnimationP layer(AnimationPlayer&); 61 PassRefPtr<TypeBuilder::Animation::AnimationPlayer> buildObjectForAnimationP layer(AnimationPlayer&);
61 PassRefPtr<TypeBuilder::Animation::AnimationPlayer> buildObjectForAnimationP layer(AnimationPlayer&, AnimationType, PassRefPtr<TypeBuilder::Animation::Keyfra mesRule> keyframeRule = nullptr); 62 PassRefPtr<TypeBuilder::Animation::AnimationPlayer> buildObjectForAnimationP layer(AnimationPlayer&, AnimationType, PassRefPtr<TypeBuilder::Animation::Keyfra mesRule> keyframeRule = nullptr);
62 PassRefPtr<TypeBuilder::Array<TypeBuilder::Animation::AnimationPlayer> > bui ldArrayForAnimationPlayers(Element&, const WillBeHeapVector<RefPtrWillBeMember<A nimationPlayer> >); 63 PassRefPtr<TypeBuilder::Array<TypeBuilder::Animation::AnimationPlayer> > bui ldArrayForAnimationPlayers(Element&, const WillBeHeapVector<RefPtrWillBeMember<A nimationPlayer> >);
64 PassRefPtr<TypeBuilder::Array<TypeBuilder::Animation::AnimationStartTime>> b uildArrayForStartTimes();
63 65
64 RawPtrWillBeMember<InspectorPageAgent> m_pageAgent; 66 RawPtrWillBeMember<InspectorPageAgent> m_pageAgent;
65 RawPtrWillBeMember<InspectorDOMAgent> m_domAgent; 67 RawPtrWillBeMember<InspectorDOMAgent> m_domAgent;
66 WillBeHeapHashMap<String, RefPtrWillBeMember<AnimationPlayer>> m_idToAnimati onPlayer; 68 WillBeHeapHashMap<String, RefPtrWillBeMember<AnimationPlayer>> m_idToAnimati onPlayer;
67 WillBeHeapHashMap<String, AnimationType> m_idToAnimationType; 69 WillBeHeapHashMap<String, AnimationType> m_idToAnimationType;
68 }; 70 };
69 71
70 } 72 }
71 73
72 #endif // InspectorAnimationAgent_h 74 #endif // InspectorAnimationAgent_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698