From b0fa223f64c36171a2a77397da3e65264e49b682 Mon Sep 17 00:00:00 2001 From: "dongsug.song" Date: Thu, 19 Sep 2024 16:14:54 +0900 Subject: [PATCH] Added an option to select the web engine type in the WebView constructor - Previously, the web engine was fixed and selected for all DALi/NUI APPs in dali.sh, but now it can be chosen in the constructor. Change-Id: If20780f3c484617a18035074493b08a078801d01 --- .../dali-toolkit/web-view-wrap.cpp | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/dali-csharp-binder/dali-toolkit/web-view-wrap.cpp b/dali-csharp-binder/dali-toolkit/web-view-wrap.cpp index 8a606b1b..3de5d8d3 100755 --- a/dali-csharp-binder/dali-toolkit/web-view-wrap.cpp +++ b/dali-csharp-binder/dali-toolkit/web-view-wrap.cpp @@ -109,6 +109,23 @@ SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_WebView_New_3(uint32_t jarg1, char ** return jresult; } +SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_WebView_New_4(uint32_t argc, char ** argv, int32_t type) { + if (!argv) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "argv is null string", 0); + return 0; + } + + Dali::Toolkit::WebView result; + { + try { + result = Dali::Toolkit::WebView::New(argc, argv, type); + } CALL_CATCH_EXCEPTION(0); + } + + void * jresult = new Dali::Toolkit::WebView((const Dali::Toolkit::WebView &)result); + return jresult; +} + SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_WebView_GetContext() { void * jresult; Dali::WebEngineContext *result = 0; -- 2.34.1