| Index: Source/core/inspector/InspectorInputAgent.cpp
|
| diff --git a/Source/core/inspector/InspectorInputAgent.cpp b/Source/core/inspector/InspectorInputAgent.cpp
|
| index ead818019b8f27f94441f62ba5801d78f95a4075..f093b8d0cfdab84e555d88481a5c4fb97dcc2e15 100644
|
| --- a/Source/core/inspector/InspectorInputAgent.cpp
|
| +++ b/Source/core/inspector/InspectorInputAgent.cpp
|
| @@ -33,6 +33,7 @@
|
|
|
| #include "core/frame/FrameView.h"
|
| #include "core/frame/LocalFrame.h"
|
| +#include "core/inspector/InspectorPageAgent.h"
|
| #include "core/page/Chrome.h"
|
| #include "core/page/EventHandler.h"
|
| #include "core/page/Page.h"
|
| @@ -86,9 +87,9 @@
|
|
|
| namespace blink {
|
|
|
| -InspectorInputAgent::InspectorInputAgent(LocalFrame* inspectedFrame)
|
| +InspectorInputAgent::InspectorInputAgent(InspectorPageAgent* pageAgent)
|
| : InspectorBaseAgent<InspectorInputAgent, InspectorFrontend::Input>("Input")
|
| - , m_inspectedFrame(inspectedFrame)
|
| + , m_pageAgent(pageAgent)
|
| {
|
| }
|
|
|
| @@ -172,18 +173,18 @@
|
| // Some platforms may have flipped coordinate systems, but the given coordinates
|
| // assume the origin is in the top-left of the window. Convert.
|
| IntPoint convertedPoint, globalPoint;
|
| - ConvertInspectorPoint(m_inspectedFrame, IntPoint(x, y), &convertedPoint, &globalPoint);
|
| + ConvertInspectorPoint(m_pageAgent->inspectedFrame(), IntPoint(x, y), &convertedPoint, &globalPoint);
|
|
|
| SyntheticInspectorTouchPoint point(id++, convertedState, globalPoint, convertedPoint, radiusX, radiusY, rotationAngle, force);
|
| event.append(point);
|
| }
|
|
|
| - m_inspectedFrame->eventHandler().handleTouchEvent(event);
|
| + m_pageAgent->inspectedFrame()->eventHandler().handleTouchEvent(event);
|
| }
|
|
|
| DEFINE_TRACE(InspectorInputAgent)
|
| {
|
| - visitor->trace(m_inspectedFrame);
|
| + visitor->trace(m_pageAgent);
|
| InspectorBaseAgent::trace(visitor);
|
| }
|
|
|
|
|