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, m_page)); | 124 m_agents.append(PageConsoleAgent::create(injectedScriptManager, m_domAgent,
m_timelineAgent, 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 379 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
514 m_layerTreeAgent->willAddPageOverlay(layer); | 514 m_layerTreeAgent->willAddPageOverlay(layer); |
515 } | 515 } |
516 | 516 |
517 void InspectorController::didRemovePageOverlay(const GraphicsLayer* layer) | 517 void InspectorController::didRemovePageOverlay(const GraphicsLayer* layer) |
518 { | 518 { |
519 if (m_layerTreeAgent) | 519 if (m_layerTreeAgent) |
520 m_layerTreeAgent->didRemovePageOverlay(layer); | 520 m_layerTreeAgent->didRemovePageOverlay(layer); |
521 } | 521 } |
522 | 522 |
523 } // namespace blink | 523 } // namespace blink |
OLD | NEW |