1
0
mirror of https://github.com/chylex/TweetDuck.git synced 2024-11-24 20:42:49 +01:00
TweetDuck/linux/TweetImpl.CefGlue/Handlers/DragHandler.cs
2022-02-19 18:19:13 +01:00

21 lines
768 B
C#

using TweetImpl.CefGlue.Adapters;
using TweetLib.Browser.CEF.Logic;
using TweetLib.Browser.Interfaces;
using Xilium.CefGlue;
namespace TweetImpl.CefGlue.Handlers {
sealed class DragHandler : CefDragHandler {
private readonly DragHandlerLogic<CefDragData, CefRequest> logic;
public DragHandler(RequestHandler requestHandler, IScriptExecutor executor) {
this.logic = new DragHandlerLogic<CefDragData, CefRequest>(executor, requestHandler.Logic, CefDragDataAdapter.Instance);
}
protected override bool OnDragEnter(CefBrowser browser, CefDragData dragData, CefDragOperationsMask mask) {
return logic.OnDragEnter(dragData);
}
protected override void OnDraggableRegionsChanged(CefBrowser browser, CefFrame frame, CefDraggableRegion[] regions) {}
}
}