| 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 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 114 | 114 |
| 115 OwnPtrWillBeRawPtr<InspectorTimelineAgent> timelineAgentPtr(InspectorTimelin
eAgent::create(m_pageAgent, m_layerTreeAgent, | 115 OwnPtrWillBeRawPtr<InspectorTimelineAgent> timelineAgentPtr(InspectorTimelin
eAgent::create(m_pageAgent, m_layerTreeAgent, |
| 116 overlay, InspectorTimelineAgent::PageInspector, inspectorClient)); | 116 overlay, InspectorTimelineAgent::PageInspector, inspectorClient)); |
| 117 m_timelineAgent = timelineAgentPtr.get(); | 117 m_timelineAgent = timelineAgentPtr.get(); |
| 118 m_agents.append(timelineAgentPtr.release()); | 118 m_agents.append(timelineAgentPtr.release()); |
| 119 | 119 |
| 120 PageScriptDebugServer* pageScriptDebugServer = &PageScriptDebugServer::share
d(); | 120 PageScriptDebugServer* pageScriptDebugServer = &PageScriptDebugServer::share
d(); |
| 121 | 121 |
| 122 m_agents.append(PageRuntimeAgent::create(injectedScriptManager, inspectorCli
ent, pageScriptDebugServer, m_page, m_pageAgent)); | 122 m_agents.append(PageRuntimeAgent::create(injectedScriptManager, inspectorCli
ent, pageScriptDebugServer, m_page, m_pageAgent)); |
| 123 | 123 |
| 124 m_agents.append(PageConsoleAgent::create(injectedScriptManager, m_domAgent,
m_timelineAgent, m_tracingAgent)); | 124 m_agents.append(PageConsoleAgent::create(injectedScriptManager, m_domAgent,
m_timelineAgent, m_tracingAgent, m_page)); |
| 125 | 125 |
| 126 ASSERT_ARG(inspectorClient, inspectorClient); | 126 ASSERT_ARG(inspectorClient, inspectorClient); |
| 127 m_injectedScriptManager->injectedScriptHost()->init(m_instrumentingAgents.ge
t(), pageScriptDebugServer); | 127 m_injectedScriptManager->injectedScriptHost()->init(m_instrumentingAgents.ge
t(), pageScriptDebugServer); |
| 128 } | 128 } |
| 129 | 129 |
| 130 InspectorController::~InspectorController() | 130 InspectorController::~InspectorController() |
| 131 { | 131 { |
| 132 } | 132 } |
| 133 | 133 |
| 134 void InspectorController::trace(Visitor* visitor) | 134 void InspectorController::trace(Visitor* visitor) |
| (...skipping 372 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 507 m_layerTreeAgent->willAddPageOverlay(layer); | 507 m_layerTreeAgent->willAddPageOverlay(layer); |
| 508 } | 508 } |
| 509 | 509 |
| 510 void InspectorController::didRemovePageOverlay(const GraphicsLayer* layer) | 510 void InspectorController::didRemovePageOverlay(const GraphicsLayer* layer) |
| 511 { | 511 { |
| 512 if (m_layerTreeAgent) | 512 if (m_layerTreeAgent) |
| 513 m_layerTreeAgent->didRemovePageOverlay(layer); | 513 m_layerTreeAgent->didRemovePageOverlay(layer); |
| 514 } | 514 } |
| 515 | 515 |
| 516 } // namespace blink | 516 } // namespace blink |
| OLD | NEW |