Feature/edge(ui) (#40)

* add webview-x code

* add logic for json_escape function

* fix warning

* merge edge changes
This commit is contained in:
Tensor-Programming
2019-10-07 14:42:25 -04:00
committed by nothingismagick
parent b93bded180
commit 0fd0d2cf48
2 changed files with 1205 additions and 0 deletions

32
ui/tauri-edge.cc Normal file
View File

@@ -0,0 +1,32 @@
#include "webview-edge.h"
#ifdef __cplusplus
extern "C"
{
#endif
void wrapper_webview_free(webview_t w)
{
webview_destroy(w);
}
webview_t wrapper_webview_new(const char *title, const char *url, int width, int height, int resizable, int debug, webview_external_invoke_cb_t external_invoke_cb, void *userdata)
{
webview_t w = webview_create(external_invoke_cb, title, width, height, resizable, debug);
webview_set_userdata(w, userdata);
webview_navigate(w, url);
return w;
}
void *wrapper_webview_get_userdata(webview_t w)
{
return webview_get_userdata(w);
}
void webview_exit(webview_t w)
{
webview_terminate(w);
}
#ifdef __cplusplus
}
#endif

1173
ui/tauri-edge.h Normal file

File diff suppressed because it is too large Load Diff