| 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/CoreExport.h" | 8 #include "core/CoreExport.h" |
| 9 #include "core/animation/Animation.h" | 9 #include "core/animation/Animation.h" |
| 10 #include "core/css/CSSKeyframesRule.h" | 10 #include "core/css/CSSKeyframesRule.h" |
| 11 #include "core/inspector/InspectorBaseAgent.h" | 11 #include "core/inspector/InspectorBaseAgent.h" |
| 12 #include "core/inspector/protocol/Animation.h" | 12 #include "core/inspector/protocol/Animation.h" |
| 13 #include "platform/wtf/text/WTFString.h" | 13 #include "platform/wtf/text/WTFString.h" |
| 14 #include "v8/include/v8-inspector.h" | 14 #include "v8/include/v8-inspector.h" |
| 15 | 15 |
| 16 namespace blink { | 16 namespace blink { |
| 17 | 17 |
| 18 class AnimationTimeline; | 18 class DocumentTimeline; |
| 19 class InspectedFrames; | 19 class InspectedFrames; |
| 20 class InspectorCSSAgent; | 20 class InspectorCSSAgent; |
| 21 | 21 |
| 22 class CORE_EXPORT InspectorAnimationAgent final | 22 class CORE_EXPORT InspectorAnimationAgent final |
| 23 : public InspectorBaseAgent<protocol::Animation::Metainfo> { | 23 : public InspectorBaseAgent<protocol::Animation::Metainfo> { |
| 24 WTF_MAKE_NONCOPYABLE(InspectorAnimationAgent); | 24 WTF_MAKE_NONCOPYABLE(InspectorAnimationAgent); |
| 25 | 25 |
| 26 public: | 26 public: |
| 27 InspectorAnimationAgent(InspectedFrames*, | 27 InspectorAnimationAgent(InspectedFrames*, |
| 28 InspectorCSSAgent*, | 28 InspectorCSSAgent*, |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 72 using AnimationType = protocol::Animation::Animation::TypeEnum; | 72 using AnimationType = protocol::Animation::Animation::TypeEnum; |
| 73 | 73 |
| 74 std::unique_ptr<protocol::Animation::Animation> BuildObjectForAnimation( | 74 std::unique_ptr<protocol::Animation::Animation> BuildObjectForAnimation( |
| 75 blink::Animation&); | 75 blink::Animation&); |
| 76 std::unique_ptr<protocol::Animation::Animation> BuildObjectForAnimation( | 76 std::unique_ptr<protocol::Animation::Animation> BuildObjectForAnimation( |
| 77 blink::Animation&, | 77 blink::Animation&, |
| 78 String, | 78 String, |
| 79 std::unique_ptr<protocol::Animation::KeyframesRule> keyframe_rule = | 79 std::unique_ptr<protocol::Animation::KeyframesRule> keyframe_rule = |
| 80 nullptr); | 80 nullptr); |
| 81 double NormalizedStartTime(blink::Animation&); | 81 double NormalizedStartTime(blink::Animation&); |
| 82 AnimationTimeline& ReferenceTimeline(); | 82 DocumentTimeline& ReferenceTimeline(); |
| 83 blink::Animation* AnimationClone(blink::Animation*); | 83 blink::Animation* AnimationClone(blink::Animation*); |
| 84 String CreateCSSId(blink::Animation&); | 84 String CreateCSSId(blink::Animation&); |
| 85 | 85 |
| 86 Member<InspectedFrames> inspected_frames_; | 86 Member<InspectedFrames> inspected_frames_; |
| 87 Member<InspectorCSSAgent> css_agent_; | 87 Member<InspectorCSSAgent> css_agent_; |
| 88 v8_inspector::V8InspectorSession* v8_session_; | 88 v8_inspector::V8InspectorSession* v8_session_; |
| 89 HeapHashMap<String, Member<blink::Animation>> id_to_animation_; | 89 HeapHashMap<String, Member<blink::Animation>> id_to_animation_; |
| 90 HeapHashMap<String, Member<blink::Animation>> id_to_animation_clone_; | 90 HeapHashMap<String, Member<blink::Animation>> id_to_animation_clone_; |
| 91 HashMap<String, String> id_to_animation_type_; | 91 HashMap<String, String> id_to_animation_type_; |
| 92 bool is_cloning_; | 92 bool is_cloning_; |
| 93 HashSet<String> cleared_animations_; | 93 HashSet<String> cleared_animations_; |
| 94 }; | 94 }; |
| 95 | 95 |
| 96 } // namespace blink | 96 } // namespace blink |
| 97 | 97 |
| 98 #endif // InspectorAnimationAgent_h | 98 #endif // InspectorAnimationAgent_h |
| OLD | NEW |