void InspectorController::inspect(Node* node) { if (!enabled()) return; if (!hasRemoteFrontend()) show(); m_domAgent->inspect(node); }
void InspectorController::show() { ASSERT(!hasRemoteFrontend()); if (!enabled()) return; if (m_inspectorFrontendChannel) m_inspectorClient->bringFrontendToFront(); else { InspectorFrontendChannel* frontendChannel = m_inspectorClient->openInspectorFrontend(this); if (frontendChannel) connectFrontend(frontendChannel); } }
void InspectorController::show() { ASSERT(!hasRemoteFrontend()); if (!enabled()) return; if (m_frontendChannel) m_inspectorClient->bringFrontendToFront(); else { if (Inspector::FrontendChannel* frontendChannel = m_inspectorClient->openInspectorFrontend(this)) { bool isAutomaticInspection = false; connectFrontend(frontendChannel, isAutomaticInspection); } } }