From: dongsug.song Date: Sat, 15 Feb 2025 09:03:52 +0000 (+0900) Subject: [NUI] Add SetVideoHole() for EFL window X-Git-Tag: submit/tizen_9.0/20250217.020324~1^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=114eff7bdf37d2faf4be59359ad501ea30c4dd17;p=platform%2Fcore%2Fcsapi%2Ftizenfx.git [NUI] Add SetVideoHole() for EFL window --- diff --git a/src/Tizen.NUI/src/internal/Interop/Interop.WebView.cs b/src/Tizen.NUI/src/internal/Interop/Interop.WebView.cs index ed5902015..d775c3a98 100755 --- a/src/Tizen.NUI/src/internal/Interop/Interop.WebView.cs +++ b/src/Tizen.NUI/src/internal/Interop/Interop.WebView.cs @@ -365,6 +365,9 @@ namespace Tizen.NUI [DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_WebView_RegisterDeviceListGetCallback")] public static extern void RegisterDeviceListGetCallback(HandleRef webViewRef, IntPtr callbackRef); + + [DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_WebView_SetVideoHole")] + public static extern void SetVideoHole(HandleRef webViewRef, bool enable, bool isWaylandWindow); } } } diff --git a/src/Tizen.NUI/src/public/WebView/WebView.cs b/src/Tizen.NUI/src/public/WebView/WebView.cs index 9d996ab89..9708d48e3 100755 --- a/src/Tizen.NUI/src/public/WebView/WebView.cs +++ b/src/Tizen.NUI/src/public/WebView/WebView.cs @@ -3132,6 +3132,18 @@ namespace Tizen.NUI.BaseComponents if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); } + /// + /// Enable video hole for a specific window type. + /// + /// true if enabled, false othewise + /// true if wayland window, false if EFL window. + [EditorBrowsable(EditorBrowsableState.Never)] + public void SetVideoHole(bool enable, bool isWaylandWindow) + { + Interop.WebView.SetVideoHole(SwigCPtr, enable, isWaylandWindow); + 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);