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