Added an option to select the web engine type in the WebView constructor 41/318341/2
authordongsug.song <dongsug.song@samsung.com>
Thu, 19 Sep 2024 07:14:54 +0000 (16:14 +0900)
committerdongsug.song <dongsug.song@samsung.com>
Fri, 27 Sep 2024 05:29:51 +0000 (14:29 +0900)
- 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-csharp-binder/dali-toolkit/web-view-wrap.cpp

index 8a606b1b994eb8fd1d7893715ae5b06529ec09d2..3de5d8d3c5733a720d5feec8a41f073447d35b1f 100755 (executable)
@@ -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;