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 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
115 | 115 |
116 OwnPtrWillBeRawPtr<InspectorTimelineAgent> timelineAgentPtr(InspectorTimelin
eAgent::create(m_pageAgent, m_layerTreeAgent, | 116 OwnPtrWillBeRawPtr<InspectorTimelineAgent> timelineAgentPtr(InspectorTimelin
eAgent::create(m_pageAgent, m_layerTreeAgent, |
117 overlay, InspectorTimelineAgent::PageInspector, inspectorClient)); | 117 overlay, InspectorTimelineAgent::PageInspector, inspectorClient)); |
118 m_timelineAgent = timelineAgentPtr.get(); | 118 m_timelineAgent = timelineAgentPtr.get(); |
119 m_agents.append(timelineAgentPtr.release()); | 119 m_agents.append(timelineAgentPtr.release()); |
120 | 120 |
121 PageScriptDebugServer* pageScriptDebugServer = &PageScriptDebugServer::share
d(); | 121 PageScriptDebugServer* pageScriptDebugServer = &PageScriptDebugServer::share
d(); |
122 | 122 |
123 m_agents.append(PageRuntimeAgent::create(injectedScriptManager, inspectorCli
ent, pageScriptDebugServer, m_page, m_pageAgent)); | 123 m_agents.append(PageRuntimeAgent::create(injectedScriptManager, inspectorCli
ent, pageScriptDebugServer, m_page, m_pageAgent)); |
124 | 124 |
125 m_agents.append(PageConsoleAgent::create(injectedScriptManager, m_domAgent,
m_timelineAgent, m_page)); | 125 m_agents.append(PageConsoleAgent::create(injectedScriptManager, m_domAgent,
m_page)); |
126 | 126 |
127 ASSERT_ARG(inspectorClient, inspectorClient); | 127 ASSERT_ARG(inspectorClient, inspectorClient); |
128 m_injectedScriptManager->injectedScriptHost()->init(m_instrumentingAgents.ge
t(), pageScriptDebugServer); | 128 m_injectedScriptManager->injectedScriptHost()->init(m_instrumentingAgents.ge
t(), pageScriptDebugServer); |
129 } | 129 } |
130 | 130 |
131 InspectorController::~InspectorController() | 131 InspectorController::~InspectorController() |
132 { | 132 { |
133 } | 133 } |
134 | 134 |
135 void InspectorController::trace(Visitor* visitor) | 135 void InspectorController::trace(Visitor* visitor) |
(...skipping 391 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
527 m_layerTreeAgent->willAddPageOverlay(layer); | 527 m_layerTreeAgent->willAddPageOverlay(layer); |
528 } | 528 } |
529 | 529 |
530 void InspectorController::didRemovePageOverlay(const GraphicsLayer* layer) | 530 void InspectorController::didRemovePageOverlay(const GraphicsLayer* layer) |
531 { | 531 { |
532 if (m_layerTreeAgent) | 532 if (m_layerTreeAgent) |
533 m_layerTreeAgent->didRemovePageOverlay(layer); | 533 m_layerTreeAgent->didRemovePageOverlay(layer); |
534 } | 534 } |
535 | 535 |
536 } // namespace blink | 536 } // namespace blink |
OLD | NEW |