mirror of
https://github.com/chylex/TweetDuck.git
synced 2025-07-03 17:38:53 +02: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));
|
|
}
|
|
}
|
|
}
|