#include <EGL/egl.h>
#endif
+#if ENABLE(TIZEN_HW_MORE_BACK_KEY)
+#include <dlfcn.h>
+void* EflAssistHandle = 0;
+#endif
+
using namespace WebCore;
using namespace WebKit;
m_formDatabase->open(FormDatabase::defaultDatabaseDirectoryPath(), FormDatabase::defaultDatabaseFilename());
#endif
#endif
+
+#if ENABLE(TIZEN_HW_MORE_BACK_KEY)
+ if (!EflAssistHandle)
+ EflAssistHandle = dlopen("/usr/lib/libefl-assist.so.0", RTLD_LAZY);
+#endif
}
Ewk_Context::~Ewk_Context()
WKStringRef wkKey = static_cast<WKStringRef>(WKArrayGetItemAtIndex(wkKeys.get(), i));
WKStringRef wkValue = static_cast<WKStringRef>(WKDictionaryGetItemForKey(formData, wkKey));
- int length = WKStringGetMaximumUTF8CStringSize(wkKey);
- if (length <= 0)
- continue;
- OwnArrayPtr<char> keyBuffer = adoptArrayPtr(new char[length]);
- WKStringGetUTF8CString(wkKey, keyBuffer.get(), length);
-
- length = WKStringGetMaximumUTF8CStringSize(wkValue);
- if (length <= 0)
- continue;
- OwnArrayPtr<char> valueBuffer = adoptArrayPtr(new char[length]);
- WKStringGetUTF8CString(wkValue, valueBuffer.get(), length);
- formDataVector.append(pair<String, String>(keyBuffer.get(), valueBuffer.get()));
+ formDataVector.append(pair<String, String>(toImpl(wkKey)->string(), toImpl(wkValue)->string()));
}
m_formDatabase->addFormDataForURL(String::fromUTF8(url), formDataVector, isPasswordForm);
Eina_Bool ewk_context_web_indexed_database_delete_all(Ewk_Context* ewkContext)
{
#if ENABLE(TIZEN_INDEXED_DATABASE)
- EINA_SAFETY_ON_NULL_RETURN_VAL(ewkContext, false);
-
- TIZEN_LOGI("ewkContext (%p)", ewkContext);
- DEFINE_STATIC_LOCAL(const String, fileMatchPattern, ("*"));
- DEFINE_STATIC_LOCAL(const String, indexedDatabaseDirectory, ("/opt/usr/apps/com.samsung.browser/data/.webkit/indexedDatabases"));
-
- Vector<String> paths = WebCore::listDirectory(indexedDatabaseDirectory, fileMatchPattern);
- Vector<String>::const_iterator end = paths.end();
- for(Vector<String>::const_iterator it = paths.begin(); it != end; ++it){
- String path = *it;
-#if ENABLE(TIZEN_FILE_SYSTEM)
- WebCore::removeDirectory(path);
-#endif
- }
+ WKContextDeleteIndexedDatabaseAll(ewkContext->wkContext());
return true;
#else