OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2011 Google Inc. All rights reserved. | 2 * Copyright (C) 2011 Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
98 | 98 |
99 OwnPtr<InspectorLayerTreeAgent> layerTreeAgentPtr(InspectorLayerTreeAgent::c
reate(m_page)); | 99 OwnPtr<InspectorLayerTreeAgent> layerTreeAgentPtr(InspectorLayerTreeAgent::c
reate(m_page)); |
100 m_layerTreeAgent = layerTreeAgentPtr.get(); | 100 m_layerTreeAgent = layerTreeAgentPtr.get(); |
101 m_agents.append(layerTreeAgentPtr.release()); | 101 m_agents.append(layerTreeAgentPtr.release()); |
102 | 102 |
103 OwnPtr<InspectorTracingAgent> tracingAgentPtr = InspectorTracingAgent::creat
e(inspectorClient); | 103 OwnPtr<InspectorTracingAgent> tracingAgentPtr = InspectorTracingAgent::creat
e(inspectorClient); |
104 m_tracingAgent = tracingAgentPtr.get(); | 104 m_tracingAgent = tracingAgentPtr.get(); |
105 m_agents.append(tracingAgentPtr.release()); | 105 m_agents.append(tracingAgentPtr.release()); |
106 | 106 |
107 OwnPtr<InspectorTimelineAgent> timelineAgentPtr(InspectorTimelineAgent::crea
te(m_pageAgent, m_layerTreeAgent, | 107 OwnPtr<InspectorTimelineAgent> timelineAgentPtr(InspectorTimelineAgent::crea
te(m_pageAgent, m_layerTreeAgent, |
108 overlay, InspectorTimelineAgent::PageInspector, inspectorClient, &m_agen
ts)); | 108 overlay, InspectorTimelineAgent::PageInspector, inspectorClient)); |
109 m_timelineAgent = timelineAgentPtr.get(); | 109 m_timelineAgent = timelineAgentPtr.get(); |
110 m_agents.append(timelineAgentPtr.release()); | 110 m_agents.append(timelineAgentPtr.release()); |
111 | 111 |
112 PageScriptDebugServer* pageScriptDebugServer = &PageScriptDebugServer::share
d(); | 112 PageScriptDebugServer* pageScriptDebugServer = &PageScriptDebugServer::share
d(); |
113 | 113 |
114 m_agents.append(PageRuntimeAgent::create(injectedScriptManager, pageScriptDe
bugServer, m_page, m_pageAgent)); | 114 m_agents.append(PageRuntimeAgent::create(injectedScriptManager, pageScriptDe
bugServer, m_page, m_pageAgent)); |
115 | 115 |
116 m_agents.append(PageConsoleAgent::create(injectedScriptManager, m_domAgent,
m_timelineAgent)); | 116 m_agents.append(PageConsoleAgent::create(injectedScriptManager, m_domAgent,
m_timelineAgent)); |
117 | 117 |
118 m_agents.append(InspectorWorkerAgent::create()); | 118 m_agents.append(InspectorWorkerAgent::create()); |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
162 m_agents.append(InspectorApplicationCacheAgent::create(m_pageAgent)); | 162 m_agents.append(InspectorApplicationCacheAgent::create(m_pageAgent)); |
163 | 163 |
164 PageScriptDebugServer* pageScriptDebugServer = &PageScriptDebugServer::share
d(); | 164 PageScriptDebugServer* pageScriptDebugServer = &PageScriptDebugServer::share
d(); |
165 | 165 |
166 OwnPtr<InspectorDebuggerAgent> debuggerAgentPtr(PageDebuggerAgent::create(pa
geScriptDebugServer, m_pageAgent, injectedScriptManager, overlay)); | 166 OwnPtr<InspectorDebuggerAgent> debuggerAgentPtr(PageDebuggerAgent::create(pa
geScriptDebugServer, m_pageAgent, injectedScriptManager, overlay)); |
167 InspectorDebuggerAgent* debuggerAgent = debuggerAgentPtr.get(); | 167 InspectorDebuggerAgent* debuggerAgent = debuggerAgentPtr.get(); |
168 m_agents.append(debuggerAgentPtr.release()); | 168 m_agents.append(debuggerAgentPtr.release()); |
169 | 169 |
170 m_agents.append(InspectorDOMDebuggerAgent::create(m_domAgent, debuggerAgent)
); | 170 m_agents.append(InspectorDOMDebuggerAgent::create(m_domAgent, debuggerAgent)
); |
171 | 171 |
172 m_agents.append(InspectorProfilerAgent::create(injectedScriptManager, overla
y, &m_agents)); | 172 m_agents.append(InspectorProfilerAgent::create(injectedScriptManager, overla
y)); |
173 | 173 |
174 m_agents.append(InspectorHeapProfilerAgent::create(injectedScriptManager)); | 174 m_agents.append(InspectorHeapProfilerAgent::create(injectedScriptManager)); |
175 | 175 |
176 m_agents.append(InspectorCanvasAgent::create(m_pageAgent, injectedScriptMana
ger)); | 176 m_agents.append(InspectorCanvasAgent::create(m_pageAgent, injectedScriptMana
ger)); |
177 | 177 |
178 m_agents.append(InspectorInputAgent::create(m_page, m_inspectorClient)); | 178 m_agents.append(InspectorInputAgent::create(m_page, m_inspectorClient)); |
179 } | 179 } |
180 | 180 |
181 void InspectorController::willBeDestroyed() | 181 void InspectorController::willBeDestroyed() |
182 { | 182 { |
(...skipping 285 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
468 m_layerTreeAgent->willAddPageOverlay(layer); | 468 m_layerTreeAgent->willAddPageOverlay(layer); |
469 } | 469 } |
470 | 470 |
471 void InspectorController::didRemovePageOverlay(const GraphicsLayer* layer) | 471 void InspectorController::didRemovePageOverlay(const GraphicsLayer* layer) |
472 { | 472 { |
473 if (m_layerTreeAgent) | 473 if (m_layerTreeAgent) |
474 m_layerTreeAgent->didRemovePageOverlay(layer); | 474 m_layerTreeAgent->didRemovePageOverlay(layer); |
475 } | 475 } |
476 | 476 |
477 } // namespace WebCore | 477 } // namespace WebCore |
OLD | NEW |