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 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
67 #include "core/page/ContextMenuProvider.h" | 67 #include "core/page/ContextMenuProvider.h" |
68 #include "core/page/Page.h" | 68 #include "core/page/Page.h" |
69 #include "core/rendering/RenderLayer.h" | 69 #include "core/rendering/RenderLayer.h" |
70 #include "platform/PlatformMouseEvent.h" | 70 #include "platform/PlatformMouseEvent.h" |
71 | 71 |
72 namespace blink { | 72 namespace blink { |
73 | 73 |
74 InspectorController::InspectorController(Page* page, InspectorClient* inspectorC
lient) | 74 InspectorController::InspectorController(Page* page, InspectorClient* inspectorC
lient) |
75 : m_instrumentingAgents(InstrumentingAgents::create()) | 75 : m_instrumentingAgents(InstrumentingAgents::create()) |
76 , m_injectedScriptManager(InjectedScriptManager::createForPage()) | 76 , m_injectedScriptManager(InjectedScriptManager::createForPage()) |
77 , m_state(adoptPtr(new InspectorCompositeState(inspectorClient))) | 77 , m_state(adoptPtrWillBeNoop(new InspectorCompositeState(inspectorClient))) |
78 , m_overlay(InspectorOverlay::create(page, inspectorClient)) | 78 , m_overlay(InspectorOverlay::create(page, inspectorClient)) |
79 , m_cssAgent(nullptr) | 79 , m_cssAgent(nullptr) |
80 , m_resourceAgent(nullptr) | 80 , m_resourceAgent(nullptr) |
81 , m_layerTreeAgent(nullptr) | 81 , m_layerTreeAgent(nullptr) |
82 , m_page(page) | 82 , m_page(page) |
83 , m_inspectorClient(inspectorClient) | 83 , m_inspectorClient(inspectorClient) |
84 , m_agents(m_instrumentingAgents.get(), m_state.get()) | 84 , m_agents(m_instrumentingAgents.get(), m_state.get()) |
85 , m_isUnderTest(false) | 85 , m_isUnderTest(false) |
86 , m_deferredAgentsInitialized(false) | 86 , m_deferredAgentsInitialized(false) |
87 { | 87 { |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
124 m_injectedScriptManager->injectedScriptHost()->init(m_instrumentingAgents.ge
t(), pageScriptDebugServer); | 124 m_injectedScriptManager->injectedScriptHost()->init(m_instrumentingAgents.ge
t(), pageScriptDebugServer); |
125 } | 125 } |
126 | 126 |
127 InspectorController::~InspectorController() | 127 InspectorController::~InspectorController() |
128 { | 128 { |
129 } | 129 } |
130 | 130 |
131 void InspectorController::trace(Visitor* visitor) | 131 void InspectorController::trace(Visitor* visitor) |
132 { | 132 { |
133 visitor->trace(m_instrumentingAgents); | 133 visitor->trace(m_instrumentingAgents); |
| 134 visitor->trace(m_injectedScriptManager); |
| 135 visitor->trace(m_state); |
134 visitor->trace(m_domAgent); | 136 visitor->trace(m_domAgent); |
135 visitor->trace(m_pageAgent); | 137 visitor->trace(m_pageAgent); |
136 visitor->trace(m_timelineAgent); | 138 visitor->trace(m_timelineAgent); |
137 visitor->trace(m_cssAgent); | 139 visitor->trace(m_cssAgent); |
138 visitor->trace(m_resourceAgent); | 140 visitor->trace(m_resourceAgent); |
139 visitor->trace(m_layerTreeAgent); | 141 visitor->trace(m_layerTreeAgent); |
140 visitor->trace(m_tracingAgent); | 142 visitor->trace(m_tracingAgent); |
141 visitor->trace(m_page); | 143 visitor->trace(m_page); |
142 m_agents.trace(visitor); | 144 m_agents.trace(visitor); |
143 } | 145 } |
(...skipping 351 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
495 m_layerTreeAgent->willAddPageOverlay(layer); | 497 m_layerTreeAgent->willAddPageOverlay(layer); |
496 } | 498 } |
497 | 499 |
498 void InspectorController::didRemovePageOverlay(const GraphicsLayer* layer) | 500 void InspectorController::didRemovePageOverlay(const GraphicsLayer* layer) |
499 { | 501 { |
500 if (m_layerTreeAgent) | 502 if (m_layerTreeAgent) |
501 m_layerTreeAgent->didRemovePageOverlay(layer); | 503 m_layerTreeAgent->didRemovePageOverlay(layer); |
502 } | 504 } |
503 | 505 |
504 } // namespace blink | 506 } // namespace blink |
OLD | NEW |