mirror of
https://github.com/chylex/TweetDuck.git
synced 2025-06-02 14:34:11 +02:00
20 lines
722 B
C#
20 lines
722 B
C#
using System.Collections.Generic;
|
|
using CefSharp;
|
|
|
|
namespace TweetDuck.Core.Handling{
|
|
sealed class DragHandlerBrowser : IDragHandler{
|
|
public bool OnDragEnter(IWebBrowser browserControl, IBrowser browser, IDragData dragData, DragOperationsMask mask){
|
|
if (dragData.IsLink){
|
|
browserControl.ExecuteScriptAsync("window.TDGF_onGlobalDragStart", "link", dragData.LinkUrl);
|
|
}
|
|
else{
|
|
browserControl.ExecuteScriptAsync("window.TDGF_onGlobalDragStart", "unknown");
|
|
}
|
|
|
|
return false;
|
|
}
|
|
|
|
public void OnDraggableRegionsChanged(IWebBrowser browserControl, IBrowser browser, IList<DraggableRegion> regions){}
|
|
}
|
|
}
|