mirror of
https://github.com/chylex/TweetDuck.git
synced 2024-12-22 10:42:45 +01:00
23 lines
845 B
C#
23 lines
845 B
C#
using System.Collections.Generic;
|
|
using CefSharp;
|
|
using CefSharp.Enums;
|
|
using TweetImpl.CefSharp.Adapters;
|
|
using TweetLib.Browser.CEF.Logic;
|
|
using TweetLib.Browser.Interfaces;
|
|
|
|
namespace TweetImpl.CefSharp.Handlers {
|
|
sealed class CefDragHandler : IDragHandler {
|
|
private readonly DragHandlerLogic<IDragData, IRequest> logic;
|
|
|
|
public CefDragHandler(CefRequestHandler requestHandler, IScriptExecutor executor) {
|
|
this.logic = new DragHandlerLogic<IDragData, IRequest>(executor, requestHandler.Logic, CefDragDataAdapter.Instance);
|
|
}
|
|
|
|
public bool OnDragEnter(IWebBrowser browserControl, IBrowser browser, IDragData dragData, DragOperationsMask mask) {
|
|
return logic.OnDragEnter(dragData);
|
|
}
|
|
|
|
public void OnDraggableRegionsChanged(IWebBrowser browserControl, IBrowser browser, IFrame frame, IList<DraggableRegion> regions) {}
|
|
}
|
|
}
|