Chromium Code Reviews| OLD | NEW | 
|---|---|
| 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/inspector/InspectorBaseAgent.h" | 10 #include "core/inspector/InspectorBaseAgent.h" | 
| 10 #include "wtf/PassOwnPtr.h" | 11 #include "wtf/PassOwnPtr.h" | 
| 11 #include "wtf/text/WTFString.h" | 12 #include "wtf/text/WTFString.h" | 
| 12 | 13 | 
| 13 namespace blink { | 14 namespace blink { | 
| 14 | 15 | 
| 15 class AnimationNode; | 16 class AnimationNode; | 
| 16 class AnimationPlayer; | 17 class AnimationPlayer; | 
| 18 class Element; | |
| 17 class InspectorDOMAgent; | 19 class InspectorDOMAgent; | 
| 18 | 20 | 
| 19 class InspectorAnimationAgent final : public InspectorBaseAgent<InspectorAnimati onAgent>, public InspectorBackendDispatcher::AnimationCommandHandler { | 21 class InspectorAnimationAgent final : public InspectorBaseAgent<InspectorAnimati onAgent>, public InspectorBackendDispatcher::AnimationCommandHandler { | 
| 20 WTF_MAKE_NONCOPYABLE(InspectorAnimationAgent); | 22 WTF_MAKE_NONCOPYABLE(InspectorAnimationAgent); | 
| 21 public: | 23 public: | 
| 22 static PassOwnPtrWillBeRawPtr<InspectorAnimationAgent> create(InspectorDOMAg ent* domAgent) | 24 static PassOwnPtrWillBeRawPtr<InspectorAnimationAgent> create(InspectorDOMAg ent* domAgent) | 
| 23 { | 25 { | 
| 24 return adoptPtrWillBeNoop(new InspectorAnimationAgent(domAgent)); | 26 return adoptPtrWillBeNoop(new InspectorAnimationAgent(domAgent)); | 
| 25 } | 27 } | 
| 26 | 28 | 
| (...skipping 11 matching lines...) Expand all Loading... | |
| 38 | 40 | 
| 39 // Methods for other agents to use. | 41 // Methods for other agents to use. | 
| 40 AnimationPlayer* assertAnimationPlayer(ErrorString*, const String& id); | 42 AnimationPlayer* assertAnimationPlayer(ErrorString*, const String& id); | 
| 41 | 43 | 
| 42 virtual void trace(Visitor*) override; | 44 virtual void trace(Visitor*) override; | 
| 43 | 45 | 
| 44 private: | 46 private: | 
| 45 InspectorAnimationAgent(InspectorDOMAgent*); | 47 InspectorAnimationAgent(InspectorDOMAgent*); | 
| 46 | 48 | 
| 47 String playerId(AnimationPlayer&); | 49 String playerId(AnimationPlayer&); | 
| 48 | 50 PassRefPtr<TypeBuilder::Animation::AnimationPlayer> buildObjectForAnimationP layer(AnimationPlayer&, PassRefPtr<TypeBuilder::Animation::KeyframesRule>); | 
| 
 
pfeldman
2014/10/23 06:37:00
static builders are typically defined using non-cl
 
samli
2014/10/24 05:06:19
Done.
 
 | |
| 49 PassRefPtr<TypeBuilder::Animation::AnimationPlayer> buildObjectForAnimationP layer(AnimationPlayer&); | 51 PassRefPtr<TypeBuilder::Animation::AnimationPlayer> buildObjectForAnimationP layer(AnimationPlayer&); | 
| 50 PassRefPtr<TypeBuilder::Animation::AnimationNode> buildObjectForAnimationNod e(AnimationNode&); | 52 PassRefPtr<TypeBuilder::Animation::AnimationNode> buildObjectForAnimationNod e(AnimationNode*); | 
| 53 PassRefPtr<TypeBuilder::Animation::KeyframesRule> getObjectForStyleRuleKeyfr ames(const Element&, const AnimationPlayer&); | |
| 
 
pfeldman
2014/10/23 06:37:00
There are no "get" prefixes in blink. The only one
 
samli
2014/10/24 05:06:19
Done.
 
 | |
| 54 PassRefPtr<TypeBuilder::Animation::KeyframesRule> buildObjectForStyleRuleKey frames(const StyleRuleKeyframes*); | |
| 55 PassRefPtr<TypeBuilder::Animation::KeyframeStyle> buildObjectForStyleKeyfram e(StyleKeyframe*); | |
| 51 | 56 | 
| 52 RawPtrWillBeMember<InspectorDOMAgent> m_domAgent; | 57 RawPtrWillBeMember<InspectorDOMAgent> m_domAgent; | 
| 53 InspectorFrontend::Animation* m_frontend; | 58 InspectorFrontend::Animation* m_frontend; | 
| 54 WillBeHeapHashMap<String, RefPtrWillBeMember<AnimationPlayer> > m_idToAnimat ionPlayer; | 59 WillBeHeapHashMap<String, RefPtrWillBeMember<AnimationPlayer> > m_idToAnimat ionPlayer; | 
| 55 }; | 60 }; | 
| 56 | 61 | 
| 57 } | 62 } | 
| 58 | 63 | 
| 59 #endif // InspectorAnimationAgent_h | 64 #endif // InspectorAnimationAgent_h | 
| OLD | NEW |