1
0
mirror of https://github.com/chylex/TweetDuck.git synced 2024-11-23 17:42:46 +01:00
TweetDuck/linux/TweetImpl.CefGlue/Adapters/CefFileDialogCallbackAdapter.cs
2022-02-19 18:19:13 +01:00

23 lines
650 B
C#

using TweetLib.Browser.CEF.Interfaces;
using Xilium.CefGlue;
namespace TweetImpl.CefGlue.Adapters {
sealed class CefFileDialogCallbackAdapter : IFileDialogCallbackAdapter<CefFileDialogCallback> {
public static CefFileDialogCallbackAdapter Instance { get; } = new ();
private CefFileDialogCallbackAdapter() {}
public void Continue(CefFileDialogCallback callback, int selectedAcceptFilter, string[] filePaths) {
callback.Continue(selectedAcceptFilter, filePaths);
}
public void Cancel(CefFileDialogCallback callback) {
callback.Cancel();
}
public void Dispose(CefFileDialogCallback callback) {
callback.Dispose();
}
}
}