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

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

Issue 1081753002: Devtools Animations: Support multiple frames in the animation timeline (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Test 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"
11 #include "wtf/PassOwnPtr.h" 11 #include "wtf/PassOwnPtr.h"
12 #include "wtf/text/WTFString.h" 12 #include "wtf/text/WTFString.h"
13 13
14 namespace blink { 14 namespace blink {
15 15
16 class AnimationNode; 16 class AnimationNode;
17 class AnimationPlayer; 17 class AnimationPlayer;
18 class AnimationTimeline;
18 class Element; 19 class Element;
19 class InspectorDOMAgent; 20 class InspectorDOMAgent;
20 class InspectorPageAgent; 21 class InspectorPageAgent;
21 class TimingFunction; 22 class TimingFunction;
22 23
23 class InspectorAnimationAgent final : public InspectorBaseAgent<InspectorAnimati onAgent, InspectorFrontend::Animation>, public InspectorBackendDispatcher::Anima tionCommandHandler { 24 class InspectorAnimationAgent final : public InspectorBaseAgent<InspectorAnimati onAgent, InspectorFrontend::Animation>, public InspectorBackendDispatcher::Anima tionCommandHandler {
24 WTF_MAKE_NONCOPYABLE(InspectorAnimationAgent); 25 WTF_MAKE_NONCOPYABLE(InspectorAnimationAgent);
25 public: 26 public:
26 static PassOwnPtrWillBeRawPtr<InspectorAnimationAgent> create(InspectorPageA gent* pageAgent, InspectorDOMAgent* domAgent) 27 static PassOwnPtrWillBeRawPtr<InspectorAnimationAgent> create(InspectorPageA gent* pageAgent, InspectorDOMAgent* domAgent)
27 { 28 {
(...skipping 25 matching lines...) Expand all
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 double normalizedStartTime(AnimationPlayer&);
dstockwell 2015/04/13 22:50:00 can't the parameter be const?
samli 2015/04/14 01:11:27 zeroTime() isn't const.
65 AnimationTimeline& referenceTimeline();
63 66
64 RawPtrWillBeMember<InspectorPageAgent> m_pageAgent; 67 RawPtrWillBeMember<InspectorPageAgent> m_pageAgent;
65 RawPtrWillBeMember<InspectorDOMAgent> m_domAgent; 68 RawPtrWillBeMember<InspectorDOMAgent> m_domAgent;
66 WillBeHeapHashMap<String, RefPtrWillBeMember<AnimationPlayer>> m_idToAnimati onPlayer; 69 WillBeHeapHashMap<String, RefPtrWillBeMember<AnimationPlayer>> m_idToAnimati onPlayer;
67 WillBeHeapHashMap<String, AnimationType> m_idToAnimationType; 70 WillBeHeapHashMap<String, AnimationType> m_idToAnimationType;
68 }; 71 };
69 72
70 } 73 }
71 74
72 #endif // InspectorAnimationAgent_h 75 #endif // InspectorAnimationAgent_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698