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

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

Issue 1092123004: DevTools: remove dependency of most agents on InspectorPageAgent (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: fixed debug build 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/inspector/InspectorDOMAgent.cpp ('k') | Source/core/inspector/InspectorInputAgent.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/inspector/InspectorInputAgent.h
diff --git a/Source/core/inspector/InspectorInputAgent.h b/Source/core/inspector/InspectorInputAgent.h
index 368827f22b9db79b98de643b78b56a521aec17c3..f74858e04be679dd6d52e1b452a4340fb5a33408 100644
--- a/Source/core/inspector/InspectorInputAgent.h
+++ b/Source/core/inspector/InspectorInputAgent.h
@@ -38,18 +38,16 @@
#include "wtf/text/WTFString.h"
namespace blink {
-class InspectorPageAgent;
-class PlatformKeyboardEvent;
-class PlatformMouseEvent;
+class LocalFrame;
typedef String ErrorString;
class InspectorInputAgent final : public InspectorBaseAgent<InspectorInputAgent, InspectorFrontend::Input>, public InspectorBackendDispatcher::InputCommandHandler {
WTF_MAKE_NONCOPYABLE(InspectorInputAgent);
public:
- static PassOwnPtrWillBeRawPtr<InspectorInputAgent> create(InspectorPageAgent* pageAgent)
+ static PassOwnPtrWillBeRawPtr<InspectorInputAgent> create(LocalFrame* inspectedFrame)
{
- return adoptPtrWillBeNoop(new InspectorInputAgent(pageAgent));
+ return adoptPtrWillBeNoop(new InspectorInputAgent(inspectedFrame));
}
virtual ~InspectorInputAgent();
@@ -58,9 +56,9 @@ public:
// Methods called from the frontend for simulating input.
virtual void dispatchTouchEvent(ErrorString*, const String& type, const RefPtr<JSONArray>& touchPoints, const int* modifiers, const double* timestamp) override;
private:
- explicit InspectorInputAgent(InspectorPageAgent*);
+ explicit InspectorInputAgent(LocalFrame*);
- RawPtrWillBeMember<InspectorPageAgent> m_pageAgent;
+ RawPtrWillBeMember<LocalFrame> m_inspectedFrame;
};
« no previous file with comments | « Source/core/inspector/InspectorDOMAgent.cpp ('k') | Source/core/inspector/InspectorInputAgent.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698