Skip to content

Commit

Permalink
[NUI] Add FeedMouseWheel as hidden api
Browse files Browse the repository at this point in the history
- Add some logs in NUICoreBackend.Exit() by request from GBM
  • Loading branch information
dongsug-song committed Dec 16, 2024
1 parent 6404864 commit 4040ac0
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/Tizen.NUI/src/internal/Application/NUICoreBackend.cs
Original file line number Diff line number Diff line change
Expand Up @@ -142,8 +142,16 @@ public void Dispose()
/// </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();
}
}
Expand Down
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 @@ -355,6 +355,9 @@ internal static partial class WebView

[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);
}
}
}
10 changes: 10 additions & 0 deletions src/Tizen.NUI/src/public/WebView/WebView.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3074,6 +3074,16 @@ public void WebAuthenticationCancel()
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);
Expand Down

0 comments on commit 4040ac0

Please sign in to comment.