Skip to content
Permalink
Browse files

Initial implementation to load blank url and now trying to load html …

…string Note:destructors not handled yet
  • Loading branch information...
RAJAGOPALAN-GANGADHARAN authored and pulkomandy committed Apr 5, 2019
1 parent ba318c8 commit db73dbafe380287638149c9c7c95ef2ee26fb581
@@ -26,7 +26,7 @@
#include "config.h"
#include "NetworkCacheData.h"

#include "NotImplemented.h"
#include <WebCore/NotImplemented.h>

namespace WebKit {
namespace NetworkCache {
@@ -22,8 +22,14 @@ list(APPEND WebKit_SOURCES
Shared/haiku/WebCoreArgumentCodersHaiku.cpp
Shared/haiku/WebMemorySamplerHaiku.cpp

UIProcess/API/C/haiku/WKView.cpp
UIProcess/API/haiku/APIWebsiteDataStoreHaiku.cpp

UIProcess/DefaultUndoController.cpp
UIProcess/DrawingAreaProxyImpl.cpp
UIProcess/BackingStore.cpp
UIProcess/AcceleratedDrawingAreaProxy.cpp

UIProcess/Launcher/haiku/ProcessLauncherHaiku.cpp
UIProcess/LegacySessionStateCodingNone.cpp
UIProcess/Plugins/unix/PluginInfoStoreUnix.cpp
@@ -36,6 +42,8 @@ list(APPEND WebKit_SOURCES
UIProcess/haiku/WebPageProxyHaiku.cpp
UIProcess/haiku/WebPreferencesHaiku.cpp
UIProcess/haiku/WebProcessPoolHaiku.cpp
UIProcess/API/haiku/WebView.cpp
UIProcess/API/haiku/PageClientImplHaiku.cpp

WebProcess/Cookies/haiku/WebCookieManagerHaiku.cpp
WebProcess/InjectedBundle/haiku/InjectedBundleHaiku.cpp
@@ -85,13 +93,14 @@ list(APPEND WebKit_INCLUDE_DIRECTORIES
"${WEBCORE_DIR}/fileapi"
)

list(APPEND WebKit_LOCAL_INCLUDE_DIRECTORIES
set(WebKit_LOCAL_INCLUDE_DIRECTORIES
"${WEBCORE_DIR}/css"
"${WEBCORE_DIR}/platform/graphics"
"${WEBCORE_DIR}/platform/graphics/transforms"
"${WEBCORE_DIR}/rendering/shapes"
)

foreach(inc ${WebKitLegacy_LOCAL_INCLUDE_DIRECTORIES})
foreach(inc ${WebKit_LOCAL_INCLUDE_DIRECTORIES})
ADD_DEFINITIONS(-iquote ${inc})
endforeach(inc)

@@ -26,13 +26,13 @@

namespace WebKit {

class WebView;
class WebPopupItemHaiku;
class WebPopupMenuListenerHaiku;
class BWebView;
//class WebPopupItemHaiku;
//class WebPopupMenuListenerHaiku;

WK_ADD_API_MAPPING(WKViewRef, WebView)
WK_ADD_API_MAPPING(WKPopupItemRef, WebPopupItemHaiku)
WK_ADD_API_MAPPING(WKPopupMenuListenerRef, WebPopupMenuListenerHaiku)
WK_ADD_API_MAPPING(WKViewRef, BWebView)
//WK_ADD_API_MAPPING(WKPopupItemRef, WebPopupItemHaiku)
//WK_ADD_API_MAPPING(WKPopupMenuListenerRef, WebPopupMenuListenerHaiku)

}

@@ -1,6 +1,7 @@
/*
* Copyright (C) 2012 Samsung Electronics
* Copyright (C) 2013 Intel Corporation. All rights reserved.
* Copyright (C) 2019 Haiku, Inc. All rights reserved.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
@@ -21,21 +22,21 @@
#include "config.h"
#include "WKView.h"

#include <WebView.h>
#include <WebViewPrivate.h>
#include "WebView.h"
#include "APIPageConfiguration.h"
#include "WKAPICast.h"

using namespace WebCore;
using namespace WebKit;

WKViewRef WKViewCreate(WKContextRef contextRef, WKPageGroupRef pageGroupRef)
WKViewRef WKViewCreate(const char* name,BRect rect,BWindow* parentWindow,
WKPageConfigurationRef pageRef)
{
RefPtr<WebView> webView = WebView::create(toImpl(contextRef), toImpl(pageGroupRef));
return toAPI(webView.release().leakRef());
fprintf(stderr,"\n create page");
return toAPI(BWebView::create(name,rect,parentWindow,*toImpl(pageRef)).leakRef());
}

WKPageRef WKViewGetPage(WKViewRef viewRef)
{
return toImpl(viewRef)->pageRef();
}

fprintf(stderr,"\nget page");
return toAPI(toImpl(viewRef)->page());
}
@@ -29,15 +29,14 @@
#define WKView_h

#include <WebKit/WKBase.h>
#include <Window.h>

#ifdef __cplusplus
extern "C" {
#endif

WK_EXPORT WKViewRef WKViewCreate(WKContextRef context, WKPageGroupRef pageGroup);

WK_EXPORT WKViewRef WKViewCreate(const char*,BRect,BWindow*,WKPageConfigurationRef pageRef);
WK_EXPORT WKPageRef WKViewGetPage(WKViewRef view);

#ifdef __cplusplus
}
#endif
@@ -34,91 +34,104 @@ namespace API {

String WebsiteDataStore::defaultApplicationCacheDirectory()
{
fprintf(stderr,"error");
notImplemented();
return String();
}

String WebsiteDataStore::defaultCacheStorageDirectory()
{
return String();
}

String WebsiteDataStore::defaultNetworkCacheDirectory()
{
return String();
}

String WebsiteDataStore::defaultIndexedDBDatabaseDirectory()
{
return String();
}

String WebsiteDataStore::defaultServiceWorkerRegistrationDirectory()
{
return String();
}

String WebsiteDataStore::defaultLocalStorageDirectory()
{
return String();
}

String WebsiteDataStore::defaultMediaKeysStorageDirectory()
{
}

String WebsiteDataStore::defaultDeviceIdHashSaltsStorageDirectory()
{
return String();
}

String WebsiteDataStore::defaultWebSQLDatabaseDirectory()
{
return String();
}

String WebsiteDataStore::defaultResourceLoadStatisticsDirectory()
{
return String();
}

String WebsiteDataStore::cacheDirectoryFileSystemRepresentation(const String& directoryName)
{
return String();
}

String WebsiteDataStore::websiteDataDirectoryFileSystemRepresentation(const String& directoryName)
{
return String();
}

String WebsiteDataStore::legacyDefaultApplicationCacheDirectory()
{
return String();
}

String WebsiteDataStore::legacyDefaultNetworkCacheDirectory()
{
return String();
}

String WebsiteDataStore::legacyDefaultWebSQLDatabaseDirectory()
{
return String();
}

String WebsiteDataStore::legacyDefaultIndexedDBDatabaseDirectory()
{
return String();
}

String WebsiteDataStore::legacyDefaultLocalStorageDirectory()
{
return String();
}

String WebsiteDataStore::legacyDefaultMediaCacheDirectory()
{
return String();
}

String WebsiteDataStore::legacyDefaultMediaKeysStorageDirectory()
{
return String();
}

String WebsiteDataStore::legacyDefaultDeviceIdHashSaltsStorageDirectory()
{
return String();
}

String WebsiteDataStore::legacyDefaultJavaScriptConfigurationDirectory()
{
}

Ref<WebKit::WebsiteDataStoreConfiguration> WebsiteDataStore::defaultDataStoreConfiguration()
{
return String();
}

} // namespace API

0 comments on commit db73dba

Please sign in to comment.
You can’t perform that action at this time.