mirror of
https://github.com/chylex/TweetDuck.git
synced 2024-11-23 17:42:46 +01:00
19 lines
535 B
C#
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();
|
|
}
|
|
}
|
|
}
|