| 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 10 matching lines...) Expand all  Loading... | 
|  37     virtual void getAnimationPlayerState(ErrorString*, const String& id, double*
     currentTime, bool* isRunning) override; |  39     virtual void getAnimationPlayerState(ErrorString*, const String& id, double*
     currentTime, bool* isRunning) override; | 
|  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&); |  | 
|  48  |  | 
|  49     PassRefPtr<TypeBuilder::Animation::AnimationPlayer> buildObjectForAnimationP
    layer(AnimationPlayer&); |  | 
|  50     PassRefPtr<TypeBuilder::Animation::AnimationNode> buildObjectForAnimationNod
    e(AnimationNode&); |  | 
|  51  |  | 
|  52     RawPtrWillBeMember<InspectorDOMAgent> m_domAgent; |  49     RawPtrWillBeMember<InspectorDOMAgent> m_domAgent; | 
|  53     InspectorFrontend::Animation* m_frontend; |  50     InspectorFrontend::Animation* m_frontend; | 
|  54     WillBeHeapHashMap<String, RefPtrWillBeMember<AnimationPlayer> > m_idToAnimat
    ionPlayer; |  51     WillBeHeapHashMap<String, RefPtrWillBeMember<AnimationPlayer> > m_idToAnimat
    ionPlayer; | 
|  55 }; |  52 }; | 
|  56  |  53  | 
|  57 } |  54 } | 
|  58  |  55  | 
|  59 #endif // InspectorAnimationAgent_h |  56 #endif // InspectorAnimationAgent_h | 
| OLD | NEW |