2008-01-22 Christian Dywan <christian@imendio.com>
[WebKit-https.git] / WebKit / gtk / WebView / webkitprivate.cpp
index 2d2e24bb8c8e4af744f40be69df7c76a7096e909..dc2b6f7d6764a23ba96afd2e0d9af76dda9d1390 100644 (file)
 
 #include "webkitprivate.h"
 #include "ChromeClientGtk.h"
-#include "DatabaseTracker.h"
 #include "FrameLoader.h"
 #include "FrameLoaderClientGtk.h"
 #include "Logging.h"
 #include "NotImplemented.h"
+#include "Pasteboard.h"
+#include "PasteboardHelperGtk.h"
+#include "Threading.h"
+
+#if ENABLE(DATABASE)
+#include "DatabaseTracker.h"
+#endif
 
 using namespace WebCore;
 
 namespace WebKit {
-void apply(WebKitSettings*, WebCore::Settings*)
-{
-    notImplemented();
-}
-
-WebKitSettings* create(WebCore::Settings*)
-{
-    notImplemented();
-    return 0;
-}
 
 WebKitWebView* getViewFromFrame(WebKitWebFrame* frame)
 {
@@ -99,7 +95,9 @@ void webkit_init()
 #if ENABLE(DATABASE)
     // FIXME: It should be possible for client applications to override this default location
     gchar* databaseDirectory = g_build_filename(g_get_user_data_dir(), "webkit", "databases", NULL);
-    WebCore::DatabaseTracker::tracker().setDatabasePath(databaseDirectory);
+    WebCore::DatabaseTracker::tracker().setDatabaseDirectoryPath(databaseDirectory);
     g_free(databaseDirectory);
 #endif
+
+    Pasteboard::generalPasteboard()->setHelper(new WebKit::PasteboardHelperGtk());
 }