mirror of
				https://github.com/chylex/TweetDuck.git
				synced 2025-11-04 01:40:16 +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));
 | 
						|
		}
 | 
						|
	}
 | 
						|
}
 |