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

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

Issue 682423002: Devtools Animations: Show subtree animations for a given node (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 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
« no previous file with comments | « Source/core/animation/Animation.h ('k') | Source/core/inspector/InspectorAnimationAgent.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 16 matching lines...) Expand all
27 { 27 {
28 return adoptPtrWillBeNoop(new InspectorAnimationAgent(domAgent)); 28 return adoptPtrWillBeNoop(new InspectorAnimationAgent(domAgent));
29 } 29 }
30 30
31 // Base agent methods. 31 // Base agent methods.
32 virtual void setFrontend(InspectorFrontend*) override; 32 virtual void setFrontend(InspectorFrontend*) override;
33 virtual void clearFrontend() override; 33 virtual void clearFrontend() override;
34 void reset(); 34 void reset();
35 35
36 // Protocol method implementations. 36 // Protocol method implementations.
37 virtual void getAnimationPlayersForNode(ErrorString*, int nodeId, RefPtr<Typ eBuilder::Array<TypeBuilder::Animation::AnimationPlayer> >& animationPlayersArra y) override; 37 virtual void getAnimationPlayersForNode(ErrorString*, int nodeId, bool inclu deSubtreeAnimations, RefPtr<TypeBuilder::Array<TypeBuilder::Animation::Animation Player> >& animationPlayersArray) override;
38 virtual void pauseAnimationPlayer(ErrorString*, const String& id, RefPtr<Typ eBuilder::Animation::AnimationPlayer>&) override; 38 virtual void pauseAnimationPlayer(ErrorString*, const String& id, RefPtr<Typ eBuilder::Animation::AnimationPlayer>&) override;
39 virtual void playAnimationPlayer(ErrorString*, const String& id, RefPtr<Type Builder::Animation::AnimationPlayer>&) override; 39 virtual void playAnimationPlayer(ErrorString*, const String& id, RefPtr<Type Builder::Animation::AnimationPlayer>&) override;
40 virtual void setAnimationPlayerCurrentTime(ErrorString*, const String& id, d ouble currentTime, RefPtr<TypeBuilder::Animation::AnimationPlayer>&) override; 40 virtual void setAnimationPlayerCurrentTime(ErrorString*, const String& id, d ouble currentTime, RefPtr<TypeBuilder::Animation::AnimationPlayer>&) override;
41 virtual void getAnimationPlayerState(ErrorString*, const String& id, double* currentTime, bool* isRunning) override; 41 virtual void getAnimationPlayerState(ErrorString*, const String& id, double* currentTime, bool* isRunning) override;
42 42
43 // Methods for other agents to use. 43 // Methods for other agents to use.
44 AnimationPlayer* assertAnimationPlayer(ErrorString*, const String& id); 44 AnimationPlayer* assertAnimationPlayer(ErrorString*, const String& id);
45 45
46 virtual void trace(Visitor*) override; 46 virtual void trace(Visitor*) override;
47 47
48 private: 48 private:
49 InspectorAnimationAgent(InspectorDOMAgent*); 49 InspectorAnimationAgent(InspectorDOMAgent*);
50 50
51 PassRefPtr<TypeBuilder::Animation::AnimationNode> buildObjectForAnimationNod e(AnimationNode*);
52 PassRefPtr<TypeBuilder::Animation::AnimationPlayer> buildObjectForAnimationP layer(AnimationPlayer&, PassRefPtr<TypeBuilder::Animation::KeyframesRule> keyfra meRule = nullptr);
53 PassRefPtr<TypeBuilder::Array<TypeBuilder::Animation::AnimationPlayer> > bui ldArrayForAnimationPlayers(Element&, const WillBeHeapVector<RefPtrWillBeMember<A nimationPlayer> >);
54
51 RawPtrWillBeMember<InspectorDOMAgent> m_domAgent; 55 RawPtrWillBeMember<InspectorDOMAgent> m_domAgent;
52 InspectorFrontend::Animation* m_frontend; 56 InspectorFrontend::Animation* m_frontend;
53 WillBeHeapHashMap<String, RefPtrWillBeMember<AnimationPlayer> > m_idToAnimat ionPlayer; 57 WillBeHeapHashMap<String, RefPtrWillBeMember<AnimationPlayer> > m_idToAnimat ionPlayer;
54 }; 58 };
55 59
56 } 60 }
57 61
58 #endif // InspectorAnimationAgent_h 62 #endif // InspectorAnimationAgent_h
OLDNEW
« no previous file with comments | « Source/core/animation/Animation.h ('k') | Source/core/inspector/InspectorAnimationAgent.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698