Initial patch.
[vuplus_webkit] / Source / WebKit / gtk / WebCoreSupport / InspectorClientGtk.cpp
index 8fd019f..bc52f8d 100644 (file)
@@ -41,6 +41,8 @@ static void notifyWebViewDestroyed(WebKitWebView* webView, InspectorFrontendClie
     inspectorFrontendClient->destroyInspectorWindow(true);
 }
 
+#if ENABLE(INSPECTOR)
+
 namespace {
 
 class InspectorFrontendSettingsGtk : public InspectorFrontendClientLocal::Settings {
@@ -120,6 +122,7 @@ void InspectorClient::inspectorDestroyed()
     delete this;
 }
 
+
 void InspectorClient::openInspectorFrontend(InspectorController* controller)
 {
     // This g_object_get will ref the inspector. We're not doing an
@@ -305,6 +308,97 @@ void InspectorFrontendClient::inspectedURLChanged(const String& newURL)
 
     webkit_web_inspector_set_inspected_uri(m_webInspector, newURL.utf8().data());
 }
+#else
+
+InspectorClient::InspectorClient(WebKitWebView* webView)
+{}
+
+InspectorClient::~InspectorClient()
+{
+}
+
+void InspectorClient::inspectorDestroyed()
+{
+}
+
+void InspectorClient::openInspectorFrontend(InspectorController* controller)
+{
+}
+
+void InspectorClient::releaseFrontendPage()
+{
+}
+
+void InspectorClient::highlight()
+{
+}
+
+void InspectorClient::hideHighlight()
+{
+}
+
+bool InspectorClient::sendMessageToFrontend(const String& message)
+{
+       return false;
+}
+
+const char* InspectorClient::inspectorFilesPath()
+{
+       return "";
+   
+}
+
+
+InspectorFrontendClient::~InspectorFrontendClient()
+{
+}
+
+void InspectorFrontendClient::destroyInspectorWindow(bool notifyInspectorController)
+{
+}
+
+String InspectorFrontendClient::localizedStringsURL()
+{
+    notImplemented();
+       return String();
+}
+
+String InspectorFrontendClient::hiddenPanels()
+{
+    notImplemented();
+    return String();
+}
+
+void InspectorFrontendClient::bringToFront()
+{
+}
+
+void InspectorFrontendClient::closeWindow()
+{
+}
+
+void InspectorFrontendClient::disconnectFromBackend()
+{
+}
+
+void InspectorFrontendClient::attachWindow()
+{
+}
+
+void InspectorFrontendClient::detachWindow()
+{
+}
+
+void InspectorFrontendClient::setAttachedWindowHeight(unsigned height)
+{
+    notImplemented();
+}
+
+void InspectorFrontendClient::inspectedURLChanged(const String& newURL)
+{
+}
+
+#endif
 
 }