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

Side by Side Diff: Source/core/inspector/InspectorLayerTreeAgent.h

Issue 307943002: Oilpan: Prepare moving InspectorController and InspectorAgents to oilpan. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 5 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2012 Apple Inc. All rights reserved. 2 * Copyright (C) 2012 Apple Inc. All rights reserved.
3 * Copyright (C) 2013 Google Inc. All rights reserved. 3 * Copyright (C) 2013 Google Inc. All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 8 *
9 * 1. Redistributions of source code must retain the above copyright 9 * 1. Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 44
45 class GraphicsContextSnapshot; 45 class GraphicsContextSnapshot;
46 class InstrumentingAgents; 46 class InstrumentingAgents;
47 class Page; 47 class Page;
48 class RenderLayerCompositor; 48 class RenderLayerCompositor;
49 49
50 typedef String ErrorString; 50 typedef String ErrorString;
51 51
52 class InspectorLayerTreeAgent FINAL : public InspectorBaseAgent<InspectorLayerTr eeAgent>, public InspectorBackendDispatcher::LayerTreeCommandHandler { 52 class InspectorLayerTreeAgent FINAL : public InspectorBaseAgent<InspectorLayerTr eeAgent>, public InspectorBackendDispatcher::LayerTreeCommandHandler {
53 public: 53 public:
54 static PassOwnPtr<InspectorLayerTreeAgent> create(Page* page) 54 static PassOwnPtrWillBeRawPtr<InspectorLayerTreeAgent> create(Page* page)
55 { 55 {
56 return adoptPtr(new InspectorLayerTreeAgent(page)); 56 return adoptPtrWillBeNoop(new InspectorLayerTreeAgent(page));
57 } 57 }
58 virtual ~InspectorLayerTreeAgent(); 58 virtual ~InspectorLayerTreeAgent();
59 virtual void trace(Visitor*) OVERRIDE;
59 60
60 virtual void setFrontend(InspectorFrontend*) OVERRIDE; 61 virtual void setFrontend(InspectorFrontend*) OVERRIDE;
61 virtual void clearFrontend() OVERRIDE; 62 virtual void clearFrontend() OVERRIDE;
62 virtual void restore() OVERRIDE; 63 virtual void restore() OVERRIDE;
63 64
64 // Called from InspectorController 65 // Called from InspectorController
65 void willAddPageOverlay(const GraphicsLayer*); 66 void willAddPageOverlay(const GraphicsLayer*);
66 void didRemovePageOverlay(const GraphicsLayer*); 67 void didRemovePageOverlay(const GraphicsLayer*);
67 68
68 // Called from InspectorInstrumentation 69 // Called from InspectorInstrumentation
(...skipping 22 matching lines...) Expand all
91 RenderLayerCompositor* renderLayerCompositor(); 92 RenderLayerCompositor* renderLayerCompositor();
92 GraphicsLayer* layerById(ErrorString*, const String& layerId); 93 GraphicsLayer* layerById(ErrorString*, const String& layerId);
93 const GraphicsContextSnapshot* snapshotById(ErrorString*, const String& snap shotId); 94 const GraphicsContextSnapshot* snapshotById(ErrorString*, const String& snap shotId);
94 95
95 typedef HashMap<int, int> LayerIdToNodeIdMap; 96 typedef HashMap<int, int> LayerIdToNodeIdMap;
96 void buildLayerIdToNodeIdMap(RenderLayer*, LayerIdToNodeIdMap&); 97 void buildLayerIdToNodeIdMap(RenderLayer*, LayerIdToNodeIdMap&);
97 void gatherGraphicsLayers(GraphicsLayer*, HashMap<int, int>& layerIdToNodeId Map, RefPtr<TypeBuilder::Array<TypeBuilder::LayerTree::Layer> >&); 98 void gatherGraphicsLayers(GraphicsLayer*, HashMap<int, int>& layerIdToNodeId Map, RefPtr<TypeBuilder::Array<TypeBuilder::LayerTree::Layer> >&);
98 int idForNode(Node*); 99 int idForNode(Node*);
99 100
100 InspectorFrontend::LayerTree* m_frontend; 101 InspectorFrontend::LayerTree* m_frontend;
101 Page* m_page; 102 RawPtrWillBeMember<Page> m_page;
102 Vector<int, 2> m_pageOverlayLayerIds; 103 Vector<int, 2> m_pageOverlayLayerIds;
103 104
104 typedef HashMap<String, RefPtr<GraphicsContextSnapshot> > SnapshotById; 105 typedef HashMap<String, RefPtr<GraphicsContextSnapshot> > SnapshotById;
105 SnapshotById m_snapshotById; 106 SnapshotById m_snapshotById;
106 }; 107 };
107 108
108 } // namespace blink 109 } // namespace blink
109 110
110 111
111 #endif // !defined(InspectorLayerTreeAgent_h) 112 #endif // !defined(InspectorLayerTreeAgent_h)
OLDNEW
« no previous file with comments | « Source/core/inspector/InspectorInstrumentation.h ('k') | Source/core/inspector/InspectorLayerTreeAgent.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698