Changeset 72606 in webkit


Ignore:
Timestamp:
Nov 23, 2010 7:33:21 AM (13 years ago)
Author:
Laszlo Gombos
Message:

2010-11-23 Laszlo Gombos <Laszlo Gombos>

Reviewed by Kenneth Rohde Christiansen.

[Qt] Fix compilation with !ENABLE(INSPECTOR)
https://bugs.webkit.org/show_bug.cgi?id=49942

Add ENABLE(INSPECTOR) to the Qt specific files following r71981.

  • WebCoreSupport/InspectorClientQt.cpp: (WebCore::InspectorClientQt::inspectorDestroyed): (WebCore::InspectorClientQt::openInspectorFrontend): (WebCore::InspectorClientQt::sendMessageToFrontend):
  • WebCoreSupport/InspectorServerQt.cpp: (WebCore::InspectorServerRequestHandlerQt::webSocketReadyRead):
Location:
trunk/WebKit/qt
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebKit/qt/ChangeLog

    r72604 r72606  
     12010-11-23  Laszlo Gombos  <laszlo.1.gombos@nokia.com>
     2
     3        Reviewed by Kenneth Rohde Christiansen.
     4
     5        [Qt] Fix compilation with !ENABLE(INSPECTOR)
     6        https://bugs.webkit.org/show_bug.cgi?id=49942
     7
     8        Add ENABLE(INSPECTOR) to the Qt specific files following r71981.
     9
     10        * WebCoreSupport/InspectorClientQt.cpp:
     11        (WebCore::InspectorClientQt::inspectorDestroyed):
     12        (WebCore::InspectorClientQt::openInspectorFrontend):
     13        (WebCore::InspectorClientQt::sendMessageToFrontend):
     14        * WebCoreSupport/InspectorServerQt.cpp:
     15        (WebCore::InspectorServerRequestHandlerQt::webSocketReadyRead):
     16
    1172010-11-23  Simon Hausmann  <simon.hausmann@nokia.com>
    218
  • trunk/WebKit/qt/WebCoreSupport/InspectorClientQt.cpp

    r69968 r72606  
    126126void InspectorClientQt::inspectorDestroyed()
    127127{
     128#if ENABLE(INSPECTOR)
    128129    if (m_frontendClient)
    129130        m_frontendClient->inspectorClientDestroyed();
     
    134135
    135136    delete this;
     137#endif
    136138}
    137139
     
    139141void InspectorClientQt::openInspectorFrontend(WebCore::InspectorController* inspectorController)
    140142{
     143#if ENABLE(INSPECTOR)
    141144#if USE(V8)
    142145    ensureDebuggerScriptLoaded();
     
    175178    inspectorView->page()->d->page->inspectorController()->setInspectorFrontendClient(m_frontendClient);
    176179    m_frontendWebPage = inspectorPage;
     180#endif
    177181}
    178182
     
    256260bool InspectorClientQt::sendMessageToFrontend(const String& message)
    257261{
     262#if ENABLE(INSPECTOR)
    258263    if (m_inspectedWebPage->d->inspector->d->remoteFrontend) {
    259264        RemoteFrontendChannel* session = qobject_cast<RemoteFrontendChannel*>(m_inspectedWebPage->d->inspector->d->remoteFrontend);
     
    267272    Page* frontendPage = QWebPagePrivate::core(m_frontendWebPage);
    268273    return doDispatchMessageOnFrontendPage(frontendPage, message);
     274#else
     275    return false;
     276#endif
    269277}
    270278
     
    292300}
    293301
     302#if ENABLE(INSPECTOR)
    294303InspectorFrontendClientQt::InspectorFrontendClientQt(QWebPage* inspectedWebPage, PassOwnPtr<QWebView> inspectorView, InspectorClientQt* inspectorClient)
    295304    : InspectorFrontendClientLocal(inspectedWebPage->d->page->inspectorController(), inspectorView->page()->d->page)
     
    398407    m_inspectedWebPage = 0;
    399408}
    400 
     409#endif
    401410}
    402411
  • trunk/WebKit/qt/WebCoreSupport/InspectorServerQt.cpp

    r68780 r72606  
    361361        QByteArray payload = m_data.mid(1, length);
    362362
     363#if ENABLE(INSPECTOR)
    363364        if (m_inspectorClient) {
    364365          InspectorController* inspectorController = m_inspectorClient->m_inspectedWebPage->d->page->inspectorController();
    365366          inspectorController->inspectorBackendDispatcher()->dispatch(QString::fromUtf8(payload));
    366367        }
     368#endif
    367369
    368370        // Remove this WebSocket message from m_data (payload, start-of-frame byte, end-of-frame byte).
Note: See TracChangeset for help on using the changeset viewer.