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

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

Issue 1118963002: Revert of DevTools: remove dependency of most agents on InspectorPageAgent (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: 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
« no previous file with comments | « Source/core/core.gypi ('k') | Source/core/inspector/InspectorAnimationAgent.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/inspector/InspectorAnimationAgent.h
diff --git a/Source/core/inspector/InspectorAnimationAgent.h b/Source/core/inspector/InspectorAnimationAgent.h
index a5eaab11a9cbab15b988f33de35366af49d946e4..8573f9dcabf0bf1a2e48a47badd65112078df5b6 100644
--- a/Source/core/inspector/InspectorAnimationAgent.h
+++ b/Source/core/inspector/InspectorAnimationAgent.h
@@ -13,18 +13,20 @@
namespace blink {
+class AnimationNode;
class AnimationPlayer;
class AnimationTimeline;
class Element;
class InspectorDOMAgent;
-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(LocalFrame* inspectedFrame, InspectorDOMAgent* domAgent)
+ static PassOwnPtrWillBeRawPtr<InspectorAnimationAgent> create(InspectorPageAgent* pageAgent, InspectorDOMAgent* domAgent)
{
- return adoptPtrWillBeNoop(new InspectorAnimationAgent(inspectedFrame, domAgent));
+ return adoptPtrWillBeNoop(new InspectorAnimationAgent(pageAgent, domAgent));
}
// Base agent methods.
@@ -53,7 +55,7 @@
DECLARE_VIRTUAL_TRACE();
private:
- InspectorAnimationAgent(LocalFrame*, InspectorDOMAgent*);
+ InspectorAnimationAgent(InspectorPageAgent*, InspectorDOMAgent*);
typedef TypeBuilder::Animation::AnimationPlayer::Type::Enum AnimationType;
@@ -63,7 +65,7 @@
double normalizedStartTime(AnimationPlayer&);
AnimationTimeline& referenceTimeline();
- RawPtrWillBeMember<LocalFrame> m_inspectedFrame;
+ RawPtrWillBeMember<InspectorPageAgent> m_pageAgent;
RawPtrWillBeMember<InspectorDOMAgent> m_domAgent;
WillBeHeapHashMap<String, RefPtrWillBeMember<AnimationPlayer>> m_idToAnimationPlayer;
WillBeHeapHashMap<String, AnimationType> m_idToAnimationType;
« no previous file with comments | « Source/core/core.gypi ('k') | Source/core/inspector/InspectorAnimationAgent.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698