1
0
mirror of https://github.com/chylex/TweetDuck.git synced 2024-10-17 09:42:45 +02:00
TweetDuck/linux/TweetImpl.CefGlue/Adapters/CefJsDialogCallbackAdapter.cs
2022-02-19 18:19:13 +01:00

19 lines
535 B
C#

using TweetLib.Browser.CEF.Interfaces;
using Xilium.CefGlue;
namespace TweetImpl.CefGlue.Adapters {
sealed class CefJsDialogCallbackAdapter : IJsDialogCallbackAdapter<CefJSDialogCallback> {
public static CefJsDialogCallbackAdapter Instance { get; } = new ();
private CefJsDialogCallbackAdapter() {}
public void Continue(CefJSDialogCallback callback, bool success, string? userInput = null) {
callback.Continue(success, userInput);
}
public void Dispose(CefJSDialogCallback callback) {
callback.Dispose();
}
}
}