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

Unified Diff: Source/core/inspector/InspectorLayerTreeAgent.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/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 72b91630f58a543d5f44e172df32bec0cb1ef6d3..d476db879211bc02aaee169442f6caccb9896508 100644
--- a/Source/core/inspector/InspectorLayerTreeAgent.h
+++ b/Source/core/inspector/InspectorLayerTreeAgent.h
@@ -43,7 +43,6 @@ namespace blink {
class GraphicsContext;
class GraphicsLayer;
-class InspectorPageAgent;
class LayoutObject;
class LayoutRect;
class PictureSnapshot;
@@ -54,9 +53,9 @@ typedef String ErrorString;
class InspectorLayerTreeAgent final : public InspectorBaseAgent<InspectorLayerTreeAgent, InspectorFrontend::LayerTree>, public InspectorBackendDispatcher::LayerTreeCommandHandler {
public:
- static PassOwnPtrWillBeRawPtr<InspectorLayerTreeAgent> create(InspectorPageAgent* pageAgent)
+ static PassOwnPtrWillBeRawPtr<InspectorLayerTreeAgent> create(LocalFrame* inspectedFrame)
{
- return adoptPtrWillBeNoop(new InspectorLayerTreeAgent(pageAgent));
+ return adoptPtrWillBeNoop(new InspectorLayerTreeAgent(inspectedFrame));
}
virtual ~InspectorLayerTreeAgent();
DECLARE_VIRTUAL_TRACE();
@@ -88,7 +87,7 @@ public:
private:
static unsigned s_lastSnapshotId;
- explicit InspectorLayerTreeAgent(InspectorPageAgent*);
+ explicit InspectorLayerTreeAgent(LocalFrame*);
GraphicsLayer* rootGraphicsLayer();
@@ -101,7 +100,7 @@ private:
void gatherGraphicsLayers(GraphicsLayer*, HashMap<int, int>& layerIdToNodeIdMap, RefPtr<TypeBuilder::Array<TypeBuilder::LayerTree::Layer> >&);
int idForNode(Node*);
- RawPtrWillBeMember<InspectorPageAgent> m_pageAgent;
+ RawPtrWillBeMember<LocalFrame> m_inspectedFrame;
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