Skip to content

Commit

Permalink
[NUI] Add SetVideoHole() for EFL window
Browse files Browse the repository at this point in the history
  • Loading branch information
dongsug-song committed Feb 17, 2025
1 parent 50db232 commit 114eff7
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Tizen.NUI/src/internal/Interop/Interop.WebView.cs
Original file line number Diff line number Diff line change
Expand Up @@ -365,6 +365,9 @@ internal static partial class WebView

[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);
}
}
}
12 changes: 12 additions & 0 deletions src/Tizen.NUI/src/public/WebView/WebView.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3132,6 +3132,18 @@ public void FeedMouseWheel(bool yDirection, int step, int x, int y)
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
}

/// <summary>
/// Enable video hole for a specific window type.
/// </summary>
/// <param name="enable">true if enabled, false othewise</param>
/// <param name="isWaylandWindow">true if wayland window, false if EFL window.</param>
[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);
Expand Down

0 comments on commit 114eff7

Please sign in to comment.