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

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

Issue 884753003: Fix template angle bracket syntax in inspector (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Some more fixes Created 5 years, 10 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
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 return adoptPtrWillBeNoop(new InspectorAnimationAgent(domAgent)); 27 return adoptPtrWillBeNoop(new InspectorAnimationAgent(domAgent));
28 } 28 }
29 29
30 // Base agent methods. 30 // Base agent methods.
31 virtual void setFrontend(InspectorFrontend*) override; 31 virtual void setFrontend(InspectorFrontend*) override;
32 virtual void clearFrontend() override; 32 virtual void clearFrontend() override;
33 void reset(); 33 void reset();
34 virtual void restore() override; 34 virtual void restore() 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 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 virtual void startListening(ErrorString*, int nodeId, bool includeSubtreeAni mations) override; 42 virtual void startListening(ErrorString*, int nodeId, bool includeSubtreeAni mations) override;
43 virtual void stopListening(ErrorString*) override; 43 virtual void stopListening(ErrorString*) override;
44 44
45 // API for InspectorInstrumentation 45 // API for InspectorInstrumentation
46 void didCreateAnimationPlayer(AnimationPlayer&); 46 void didCreateAnimationPlayer(AnimationPlayer&);
47 47
48 // API for InspectorFrontend 48 // API for InspectorFrontend
49 virtual void enable(ErrorString*) override; 49 virtual void enable(ErrorString*) override;
50 50
51 // Methods for other agents to use. 51 // Methods for other agents to use.
52 AnimationPlayer* assertAnimationPlayer(ErrorString*, const String& id); 52 AnimationPlayer* assertAnimationPlayer(ErrorString*, const String& id);
53 53
54 virtual void trace(Visitor*) override; 54 virtual void trace(Visitor*) override;
55 55
56 private: 56 private:
57 InspectorAnimationAgent(InspectorDOMAgent*); 57 InspectorAnimationAgent(InspectorDOMAgent*);
58 58
59 typedef TypeBuilder::Animation::AnimationPlayer::Type::Enum AnimationType; 59 typedef TypeBuilder::Animation::AnimationPlayer::Type::Enum AnimationType;
60 60
61 PassRefPtr<TypeBuilder::Animation::AnimationPlayer> buildObjectForAnimationP layer(AnimationPlayer&); 61 PassRefPtr<TypeBuilder::Animation::AnimationPlayer> buildObjectForAnimationP layer(AnimationPlayer&);
62 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);
63 PassRefPtr<TypeBuilder::Array<TypeBuilder::Animation::AnimationPlayer> > bui ldArrayForAnimationPlayers(Element&, const WillBeHeapVector<RefPtrWillBeMember<A nimationPlayer> >); 63 PassRefPtr<TypeBuilder::Array<TypeBuilder::Animation::AnimationPlayer>> buil dArrayForAnimationPlayers(Element&, const WillBeHeapVector<RefPtrWillBeMember<An imationPlayer>>);
64 64
65 RawPtrWillBeMember<InspectorDOMAgent> m_domAgent; 65 RawPtrWillBeMember<InspectorDOMAgent> m_domAgent;
66 InspectorFrontend::Animation* m_frontend; 66 InspectorFrontend::Animation* m_frontend;
67 WillBeHeapHashMap<String, RefPtrWillBeMember<AnimationPlayer> > m_idToAnimat ionPlayer; 67 WillBeHeapHashMap<String, RefPtrWillBeMember<AnimationPlayer>> m_idToAnimati onPlayer;
68 68
69 RawPtrWillBeMember<Element> m_element; 69 RawPtrWillBeMember<Element> m_element;
70 bool m_includeSubtree; 70 bool m_includeSubtree;
71 }; 71 };
72 72
73 } 73 }
74 74
75 #endif // InspectorAnimationAgent_h 75 #endif // InspectorAnimationAgent_h
OLDNEW
« no previous file with comments | « Source/core/inspector/InjectedScriptManager.h ('k') | Source/core/inspector/InspectorAnimationAgent.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698