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

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: 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/InspectorInputAgent.h
diff --git a/Source/core/inspector/InspectorInputAgent.h b/Source/core/inspector/InspectorInputAgent.h
index 368827f22b9db79b98de643b78b56a521aec17c3..0a712c7fcdd1e143252fcfc858fa111c1c012f28 100644
--- a/Source/core/inspector/InspectorInputAgent.h
+++ b/Source/core/inspector/InspectorInputAgent.h
@@ -38,7 +38,6 @@
#include "wtf/text/WTFString.h"
namespace blink {
-class InspectorPageAgent;
class PlatformKeyboardEvent;
yurys 2015/04/24 08:54:41 class LocalFrame;
class PlatformMouseEvent;
@@ -47,9 +46,9 @@ 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 +57,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;
};

Powered by Google App Engine
This is Rietveld 408576698