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

Unified Diff: Source/core/inspector/InspectorLayerTreeAgent.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/inspector/InspectorInputAgent.cpp ('k') | Source/core/inspector/InspectorLayerTreeAgent.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/inspector/InspectorLayerTreeAgent.h
diff --git a/Source/core/inspector/InspectorLayerTreeAgent.h b/Source/core/inspector/InspectorLayerTreeAgent.h
index d476db879211bc02aaee169442f6caccb9896508..72b91630f58a543d5f44e172df32bec0cb1ef6d3 100644
--- a/Source/core/inspector/InspectorLayerTreeAgent.h
+++ b/Source/core/inspector/InspectorLayerTreeAgent.h
@@ -43,6 +43,7 @@
class GraphicsContext;
class GraphicsLayer;
+class InspectorPageAgent;
class LayoutObject;
class LayoutRect;
class PictureSnapshot;
@@ -53,9 +54,9 @@
class InspectorLayerTreeAgent final : public InspectorBaseAgent<InspectorLayerTreeAgent, InspectorFrontend::LayerTree>, public InspectorBackendDispatcher::LayerTreeCommandHandler {
public:
- static PassOwnPtrWillBeRawPtr<InspectorLayerTreeAgent> create(LocalFrame* inspectedFrame)
+ static PassOwnPtrWillBeRawPtr<InspectorLayerTreeAgent> create(InspectorPageAgent* pageAgent)
{
- return adoptPtrWillBeNoop(new InspectorLayerTreeAgent(inspectedFrame));
+ return adoptPtrWillBeNoop(new InspectorLayerTreeAgent(pageAgent));
}
virtual ~InspectorLayerTreeAgent();
DECLARE_VIRTUAL_TRACE();
@@ -87,7 +88,7 @@
private:
static unsigned s_lastSnapshotId;
- explicit InspectorLayerTreeAgent(LocalFrame*);
+ explicit InspectorLayerTreeAgent(InspectorPageAgent*);
GraphicsLayer* rootGraphicsLayer();
@@ -100,7 +101,7 @@
void gatherGraphicsLayers(GraphicsLayer*, HashMap<int, int>& layerIdToNodeIdMap, RefPtr<TypeBuilder::Array<TypeBuilder::LayerTree::Layer> >&);
int idForNode(Node*);
- RawPtrWillBeMember<LocalFrame> m_inspectedFrame;
+ RawPtrWillBeMember<InspectorPageAgent> m_pageAgent;
Vector<int, 2> m_pageOverlayLayerIds;
typedef HashMap<String, RefPtr<PictureSnapshot> > SnapshotById;
« no previous file with comments | « Source/core/inspector/InspectorInputAgent.cpp ('k') | Source/core/inspector/InspectorLayerTreeAgent.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698