1
0
mirror of https://github.com/chylex/TweetDuck.git synced 2024-11-25 05:42:47 +01:00
TweetDuck/linux/TweetImpl.CefGlue/Adapters/CefAdapter.cs
2022-02-19 18:19:13 +01:00

17 lines
391 B
C#

using System;
using TweetImpl.CefGlue.Utils;
using TweetLib.Browser.CEF.Interfaces;
using Xilium.CefGlue;
namespace TweetImpl.CefGlue.Adapters {
sealed class CefAdapter : ICefAdapter {
public static CefAdapter Instance { get; } = new ();
private CefAdapter() {}
public void RunOnUiThread(Action action) {
CefRuntime.PostTask(CefThreadId.UI, new CefActionTask(action));
}
}
}