void InspectorClientImpl::highlight(Node* node)
{
    // InspectorController does the actually tracking of the highlighted node
    // and the drawing of the highlight. Here we just make sure to invalidate
    // the rects of the old and new nodes.
    hideHighlight();
}
void InspectorOverlay::inspect(Node* node)
{
    if (m_domAgent)
        m_domAgent->inspect(node);

    initializeLayoutEditorIfNeeded(node);
    if (m_layoutEditor)
        hideHighlight();
}
Example #3
0
void InspectorOverlay::clearInternal() {
  if (m_overlayPage) {
    m_overlayPage->willBeDestroyed();
    m_overlayPage.clear();
    m_overlayChromeClient.clear();
  }
  m_resizeTimerActive = false;
  m_pausedInDebuggerMessage = String();
  m_inspectMode = InspectorDOMAgent::NotSearching;
  m_timer.stop();
  hideHighlight();
}
Example #4
0
void InspectorOverlay::setInspectMode(
    InspectorDOMAgent::SearchMode searchMode,
    std::unique_ptr<InspectorHighlightConfig> highlightConfig) {
  m_inspectMode = searchMode;
  scheduleUpdate();

  if (searchMode != InspectorDOMAgent::NotSearching) {
    m_inspectModeHighlightConfig = std::move(highlightConfig);
  } else {
    m_hoveredNodeForInspectMode.clear();
    hideHighlight();
  }
}
void InspectorOverlay::clear()
{
    if (m_layoutEditor)
        m_layoutEditor.clear();

    if (m_overlayPage) {
        m_overlayPage->willBeDestroyed();
        m_overlayPage.clear();
        m_overlayChromeClient.clear();
    }
    m_pausedInDebuggerMessage = String();
    m_inspectMode = InspectorDOMAgent::NotSearching;
    hideHighlight();
}
void InspectorOverlay::setInspectMode(InspectorDOMAgent::SearchMode searchMode, PassOwnPtr<InspectorHighlightConfig> highlightConfig)
{
    if (m_layoutEditor)
        overlayClearSelection(true);

    m_inspectMode = searchMode;
    scheduleUpdate();

    if (searchMode != InspectorDOMAgent::NotSearching) {
        m_inspectModeHighlightConfig = highlightConfig;
    } else {
        m_hoveredNodeForInspectMode.clear();
        hideHighlight();
    }
}
void InspectorClient::highlight()
{
    hideHighlight();
}