예제 #1
0
 /// <summary>
 /// Returns a copy of the current object.
 /// </summary>
 public unsafe virtual CefDragData Clone()
 {
     return(SafeCall(CefDragData.Wrap(CefDragData.Create, NativeInstance->Clone())));
 }
예제 #2
0
 /// <summary>
 /// Called when an external drag event enters the browser window. |dragData|
 /// contains the drag event data and |mask| represents the type of drag
 /// operation. Return false (0) for default drag handling behavior or true (1)
 /// to cancel the drag event.
 /// </summary>
 protected internal unsafe virtual bool OnDragEnter(CefBrowser browser, CefDragData dragData, CefDragOperationsMask mask)
 {
     return(default);
예제 #3
0
 /// <summary>
 /// Call this function when the user drags the mouse into the web view (before
 /// calling DragTargetDragOver/DragTargetLeave/DragTargetDrop). |drag_data|
 /// should not contain file contents as this type of data is not allowed to be
 /// dragged into the web view. File contents can be removed using
 /// cef_drag_data_t::ResetFileContents (for example, if |drag_data| comes from
 /// cef_render_handler_t::StartDragging). This function is only used when
 /// window rendering is disabled.
 /// </summary>
 public unsafe virtual void DragTargetDragEnter(CefDragData dragData, CefMouseEvent @event, CefDragOperationsMask allowedOps)
 {
     NativeInstance->DragTargetDragEnter((dragData != null) ? dragData.GetNativeInstance() : null, (cef_mouse_event_t *)&@event, allowedOps);
     GC.KeepAlive(this);
 }