Changeset 72606 in webkit
- Timestamp:
- Nov 23, 2010 7:33:21 AM (13 years ago)
- Location:
- trunk/WebKit/qt
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebKit/qt/ChangeLog
r72604 r72606 1 2010-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 1 17 2010-11-23 Simon Hausmann <simon.hausmann@nokia.com> 2 18 -
trunk/WebKit/qt/WebCoreSupport/InspectorClientQt.cpp
r69968 r72606 126 126 void InspectorClientQt::inspectorDestroyed() 127 127 { 128 #if ENABLE(INSPECTOR) 128 129 if (m_frontendClient) 129 130 m_frontendClient->inspectorClientDestroyed(); … … 134 135 135 136 delete this; 137 #endif 136 138 } 137 139 … … 139 141 void InspectorClientQt::openInspectorFrontend(WebCore::InspectorController* inspectorController) 140 142 { 143 #if ENABLE(INSPECTOR) 141 144 #if USE(V8) 142 145 ensureDebuggerScriptLoaded(); … … 175 178 inspectorView->page()->d->page->inspectorController()->setInspectorFrontendClient(m_frontendClient); 176 179 m_frontendWebPage = inspectorPage; 180 #endif 177 181 } 178 182 … … 256 260 bool InspectorClientQt::sendMessageToFrontend(const String& message) 257 261 { 262 #if ENABLE(INSPECTOR) 258 263 if (m_inspectedWebPage->d->inspector->d->remoteFrontend) { 259 264 RemoteFrontendChannel* session = qobject_cast<RemoteFrontendChannel*>(m_inspectedWebPage->d->inspector->d->remoteFrontend); … … 267 272 Page* frontendPage = QWebPagePrivate::core(m_frontendWebPage); 268 273 return doDispatchMessageOnFrontendPage(frontendPage, message); 274 #else 275 return false; 276 #endif 269 277 } 270 278 … … 292 300 } 293 301 302 #if ENABLE(INSPECTOR) 294 303 InspectorFrontendClientQt::InspectorFrontendClientQt(QWebPage* inspectedWebPage, PassOwnPtr<QWebView> inspectorView, InspectorClientQt* inspectorClient) 295 304 : InspectorFrontendClientLocal(inspectedWebPage->d->page->inspectorController(), inspectorView->page()->d->page) … … 398 407 m_inspectedWebPage = 0; 399 408 } 400 409 #endif 401 410 } 402 411 -
trunk/WebKit/qt/WebCoreSupport/InspectorServerQt.cpp
r68780 r72606 361 361 QByteArray payload = m_data.mid(1, length); 362 362 363 #if ENABLE(INSPECTOR) 363 364 if (m_inspectorClient) { 364 365 InspectorController* inspectorController = m_inspectorClient->m_inspectedWebPage->d->page->inspectorController(); 365 366 inspectorController->inspectorBackendDispatcher()->dispatch(QString::fromUtf8(payload)); 366 367 } 368 #endif 367 369 368 370 // 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.