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

Unified Diff: Source/core/inspector/InspectorAnimationAgent.h

Issue 1092123004: DevTools: remove dependency of most agents on InspectorPageAgent (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: further cuts on InspectorPageAgent inter-agents API Created 5 years, 8 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 side-by-side diff with in-line comments
Download patch
Index: Source/core/inspector/InspectorAnimationAgent.h
diff --git a/Source/core/inspector/InspectorAnimationAgent.h b/Source/core/inspector/InspectorAnimationAgent.h
index 8573f9dcabf0bf1a2e48a47badd65112078df5b6..dbee41661e5b3825a9cd8d3eb2e879ad488edc8a 100644
--- a/Source/core/inspector/InspectorAnimationAgent.h
+++ b/Source/core/inspector/InspectorAnimationAgent.h
@@ -18,15 +18,14 @@ class AnimationPlayer;
class AnimationTimeline;
class Element;
class InspectorDOMAgent;
yurys 2015/04/24 08:54:40 class LocalFrame;
-class InspectorPageAgent;
class TimingFunction;
class InspectorAnimationAgent final : public InspectorBaseAgent<InspectorAnimationAgent, InspectorFrontend::Animation>, public InspectorBackendDispatcher::AnimationCommandHandler {
WTF_MAKE_NONCOPYABLE(InspectorAnimationAgent);
public:
- static PassOwnPtrWillBeRawPtr<InspectorAnimationAgent> create(InspectorPageAgent* pageAgent, InspectorDOMAgent* domAgent)
+ static PassOwnPtrWillBeRawPtr<InspectorAnimationAgent> create(LocalFrame* inspectedFrame, InspectorDOMAgent* domAgent)
{
- return adoptPtrWillBeNoop(new InspectorAnimationAgent(pageAgent, domAgent));
+ return adoptPtrWillBeNoop(new InspectorAnimationAgent(inspectedFrame, domAgent));
}
// Base agent methods.
@@ -55,7 +54,7 @@ public:
DECLARE_VIRTUAL_TRACE();
private:
- InspectorAnimationAgent(InspectorPageAgent*, InspectorDOMAgent*);
+ InspectorAnimationAgent(LocalFrame*, InspectorDOMAgent*);
typedef TypeBuilder::Animation::AnimationPlayer::Type::Enum AnimationType;
@@ -65,7 +64,7 @@ private:
double normalizedStartTime(AnimationPlayer&);
AnimationTimeline& referenceTimeline();
- RawPtrWillBeMember<InspectorPageAgent> m_pageAgent;
+ RawPtrWillBeMember<LocalFrame> m_inspectedFrame;
RawPtrWillBeMember<InspectorDOMAgent> m_domAgent;
WillBeHeapHashMap<String, RefPtrWillBeMember<AnimationPlayer>> m_idToAnimationPlayer;
WillBeHeapHashMap<String, AnimationType> m_idToAnimationType;
« no previous file with comments | « no previous file | Source/core/inspector/InspectorAnimationAgent.cpp » ('j') | Source/core/inspector/InspectorDOMAgent.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698