From: dongsug.song Date: Sat, 14 Dec 2024 06:42:45 +0000 (+0900) Subject: [NUI] Add FeedMouseWheel as hidden api X-Git-Tag: submit/tizen_9.0/20241216.030226~1^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b8d5faf4faf1bedcaf4e1ddf896106c66631f6af;p=platform%2Fcore%2Fcsapi%2Ftizenfx.git [NUI] Add FeedMouseWheel as hidden api - Add some logs in NUICoreBackend.Exit() by request from GBM --- diff --git a/src/Tizen.NUI/src/internal/Application/NUICoreBackend.cs b/src/Tizen.NUI/src/internal/Application/NUICoreBackend.cs index e736eba12..b994234e6 100755 --- a/src/Tizen.NUI/src/internal/Application/NUICoreBackend.cs +++ b/src/Tizen.NUI/src/internal/Application/NUICoreBackend.cs @@ -142,8 +142,16 @@ namespace Tizen.NUI /// 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(); } } diff --git a/src/Tizen.NUI/src/internal/Interop/Interop.WebView.cs b/src/Tizen.NUI/src/internal/Interop/Interop.WebView.cs index 110f99139..7c2a7a7d1 100755 --- a/src/Tizen.NUI/src/internal/Interop/Interop.WebView.cs +++ b/src/Tizen.NUI/src/internal/Interop/Interop.WebView.cs @@ -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); } } } diff --git a/src/Tizen.NUI/src/public/WebView/WebView.cs b/src/Tizen.NUI/src/public/WebView/WebView.cs index 3f0668509..96bb4601d 100755 --- a/src/Tizen.NUI/src/public/WebView/WebView.cs +++ b/src/Tizen.NUI/src/public/WebView/WebView.cs @@ -3074,6 +3074,16 @@ namespace Tizen.NUI.BaseComponents if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); } + /// + /// Feed mouse wheel event forcefully. + /// + [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);