#define ENABLE_TIZEN_TILE_MATRIX_LIST 1 /* KwangHyuk Kim(hyuki.kim@samsung.com) : Tile matrix for each different zoom level */
#define ENABLE_TIZEN_ZOOM_CHECK_BEFORE_PAINTING 1 /* JungJik Lee(jungjik.lee@samsung.com) : background color set for tiled view */
#define ENABLE_TIZEN_TILE_REUSE_ALREADY_CREATED 1 /* JungJik Lee(jungjik.lee@samsung.com) : To reuse tiles already created without free operation */
+#define ENABLE_TIZEN_ICON_DATABASE 1 /* Nikhil Bansal(n.bansal@samsung.com) : To set the default iconDatabasePath for favicon */
#define ENABLE_TIZEN_ERROR_PAGE 1 /* Dongjae Kim(dongjae1.kim@samsung.com) : Not use webview's error page.*/
#define ENABLE_TIZEN_CREATE_FRAME_VIEW_ALWAYS 1 /* Kamil Blank(k.blank@samsung.com) Dongjae Kim(dongjae1.kim@samsung.com) : Create FrameView Always*/
#define ENABLE_TIZEN_FIX_EMAIL_ONE_TILE_DISPLAY 1 /* Jungjik Lee(jungjik.lee@samsung.com): Fixed email display only one tile area*/
#include <WebCore/NotImplemented.h>
#include <cairo.h>
+#if ENABLE(TIZEN_ICON_DATABASE)
+#include "WKContextPrivate.h"
+#include "WebContext.h"
+#endif
+
#if ENABLE(TIZEN_ERROR_PAGE)
#include "WebErrorPageEfl.h"
#endif
EINA_SAFETY_ON_NULL_RETURN_VAL(canvas, 0);
EINA_SAFETY_ON_NULL_RETURN_VAL(context, 0);
+#if ENABLE(TIZEN_ICON_DATABASE)
+ //set default iconDatabasePath
+ String platformDefaultPath = toImpl(ewk_context_WKContext_get(context))->iconDatabasePath();
+ WKContextSetIconDatabasePath(ewk_context_WKContext_get(context), WKStringCreateWithUTF8CString(platformDefaultPath.utf8().data()));
+#endif
+
Evas_Object* ewkView = _ewk_view_base_add(canvas, ewk_context_WKContext_get(context), 0);
EWK_VIEW_SD_GET_OR_RETURN(ewkView, smartData, ewkView);
String WebContext::platformDefaultIconDatabasePath() const
{
+#if ENABLE(TIZEN_ICON_DATABASE)
+ return WebCore::pathByAppendingComponent(WebCore::homeDirectoryPath(), ".webkit/iconDatabase/WebpageIcons.db");
+#endif
+
notImplemented();
return "";
}