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