mirror of
https://github.com/chylex/TweetDuck.git
synced 2024-11-23 17:42:46 +01:00
27 lines
563 B
C#
27 lines
563 B
C#
using CefSharp;
|
|
using TweetLib.Browser.CEF.Interfaces;
|
|
|
|
namespace TweetImpl.CefSharp.Adapters {
|
|
sealed class CefDragDataAdapter : IDragDataAdapter<IDragData> {
|
|
public static CefDragDataAdapter Instance { get; } = new ();
|
|
|
|
private CefDragDataAdapter() {}
|
|
|
|
public bool IsLink(IDragData data) {
|
|
return data.IsLink;
|
|
}
|
|
|
|
public string GetLink(IDragData data) {
|
|
return data.LinkUrl;
|
|
}
|
|
|
|
public bool IsFragment(IDragData data) {
|
|
return data.IsFragment;
|
|
}
|
|
|
|
public string GetFragmentAsText(IDragData data) {
|
|
return data.FragmentText;
|
|
}
|
|
}
|
|
}
|