[NUI] Add FeedMouseWheel as hidden api
authordongsug.song <dongsug.song@samsung.com>
Sat, 14 Dec 2024 06:42:45 +0000 (15:42 +0900)
committerdongsug-song <35130733+dongsug-song@users.noreply.github.com>
Mon, 16 Dec 2024 02:56:44 +0000 (11:56 +0900)
- Add some logs in NUICoreBackend.Exit() by request from GBM

src/Tizen.NUI/src/internal/Application/NUICoreBackend.cs
src/Tizen.NUI/src/internal/Interop/Interop.WebView.cs
src/Tizen.NUI/src/public/WebView/WebView.cs

index e736eba1259a19a8b18ea00baa22c2dbee6121ba..b994234e665e1e9ab1359d6998b8c044c040be62 100755 (executable)
@@ -142,8 +142,16 @@ namespace Tizen.NUI
         /// </summary>
         public void Exit()
         {
+            //This appears as an error log but actually does not indicate an error.
+            //The reason it is logged as an error is because the log level displayed in the GBM target is set to 'error' and 'fatal'.
+            //Therefore, although we have included this as an error log for debugging purposes, please note that it is not an actual error log.
+            Tizen.Log.Error("NUI", "NUICoreBackend.Exit() !");
             if (application != null)
             {
+                //This appears as an error log but actually does not indicate an error.
+                //The reason it is logged as an error is because the log level displayed in the GBM target is set to 'error' and 'fatal'.
+                //Therefore, although we have included this as an error log for debugging purposes, please note that it is not an actual error log.
+                Tizen.Log.Error("NUI", "application.Quit() !");
                 application.Quit();
             }
         }
index 110f99139312ea7a63eb2f98083473d14dd7190c..7c2a7a7d1600555495a913e8188c87428a85a753 100755 (executable)
@@ -355,6 +355,9 @@ namespace Tizen.NUI
 
             [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_WebView_RegisterUserMediaPermissionRequestCallback")]
             public static extern void RegisterUserMediaPermissionRequestCallback(global::System.Runtime.InteropServices.HandleRef webViewRef, global::System.Runtime.InteropServices.HandleRef callbackRef);
+
+            [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_WebView_FeedMouseWheel")]
+            public static extern void FeedMouseWheel(global::System.Runtime.InteropServices.HandleRef webViewRef, bool yDirection, int step, int x, int y);
         }
     }
 }
index 3f066850948ec1b37c0886babfe8dcab2e92f8ec..96bb4601ddb03ab842d7c06ff77998de4c811556 100755 (executable)
@@ -3074,6 +3074,16 @@ namespace Tizen.NUI.BaseComponents
             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
         }
 
+        /// <summary>
+        /// Feed mouse wheel event forcefully.
+        /// </summary>
+        [EditorBrowsable(EditorBrowsableState.Never)]
+        public void FeedMouseWheel(bool yDirection, int step, int x, int y)
+        {
+            Interop.WebView.FeedMouseWheel(SwigCPtr, yDirection, step, x, y);
+            if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+        }
+
         internal static WebView DownCast(BaseHandle handle)
         {
             WebView ret = new WebView(Interop.WebView.DownCast(BaseHandle.getCPtr(handle)), true);