Esempio n. 1
0
 /// <summary>
 /// Call this function when the drag operation started by a
 /// CfxRenderHandler.StartDragging call has ended either in a drop or by
 /// being cancelled. |x| and |y| are mouse coordinates relative to the upper-
 /// left corner of the view. If the web view is both the drag source and the
 /// drag target then all DragTarget* functions should be called before
 /// DragSource* mthods. This function is only used when window rendering is
 /// disabled.
 /// </summary>
 /// <remarks>
 /// See also the original CEF documentation in
 /// <see href="https://bitbucket.org/chromiumfx/chromiumfx/src/tip/cef/include/capi/cef_browser_capi.h">cef/include/capi/cef_browser_capi.h</see>.
 /// </remarks>
 public void DragSourceEndedAt(int x, int y, CfxDragOperationsMask op)
 {
     CfxApi.cfx_browser_host_drag_source_ended_at(NativePtr, x, y, (int)op);
 }
Esempio n. 2
0
 /// <summary>
 /// Call this function each time the mouse is moved across the web view during
 /// a drag operation (after calling DragTargetDragEnter and before calling
 /// DragTargetDragLeave/DragTargetDrop). This function is only used when window
 /// rendering is disabled.
 /// </summary>
 /// <remarks>
 /// See also the original CEF documentation in
 /// <see href="https://bitbucket.org/chromiumfx/chromiumfx/src/tip/cef/include/capi/cef_browser_capi.h">cef/include/capi/cef_browser_capi.h</see>.
 /// </remarks>
 public void DragTargetDragOver(CfxMouseEvent @event, CfxDragOperationsMask allowedOps)
 {
     CfxApi.cfx_browser_host_drag_target_drag_over(NativePtr, CfxMouseEvent.Unwrap(@event), (int)allowedOps);
 }
Esempio n. 3
0
 /// <summary>
 /// Call this function each time the mouse is moved across the web view during
 /// a drag operation (after calling DragTargetDragEnter and before calling
 /// DragTargetDragLeave/DragTargetDrop). This function is only used when window
 /// rendering is disabled.
 /// </summary>
 /// <remarks>
 /// See also the original CEF documentation in
 /// <see href="https://bitbucket.org/chromiumfx/chromiumfx/src/tip/cef/include/capi/cef_browser_capi.h">cef/include/capi/cef_browser_capi.h</see>.
 /// </remarks>
 public void DragTargetDragOver(CfxMouseEvent @event, CfxDragOperationsMask allowedOps)
 {
     CfxApi.cfx_browser_host_drag_target_drag_over(NativePtr, CfxMouseEvent.Unwrap(@event), (int)allowedOps);
 }
Esempio n. 4
0
 /// <summary>
 /// Call this function when the user drags the mouse into the web view (before
 /// calling DragTargetDragOver/DragTargetLeave/DragTargetDrop). |dragData|
 /// 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
 /// CfxDragData.ResetFileContents (for example, if |dragData| comes from
 /// CfxRenderHandler.StartDragging). This function is only used when
 /// window rendering is disabled.
 /// </summary>
 /// <remarks>
 /// See also the original CEF documentation in
 /// <see href="https://bitbucket.org/chromiumfx/chromiumfx/src/tip/cef/include/capi/cef_browser_capi.h">cef/include/capi/cef_browser_capi.h</see>.
 /// </remarks>
 public void DragTargetDragEnter(CfxDragData dragData, CfxMouseEvent @event, CfxDragOperationsMask allowedOps)
 {
     CfxApi.BrowserHost.cfx_browser_host_drag_target_drag_enter(NativePtr, CfxDragData.Unwrap(dragData), CfxMouseEvent.Unwrap(@event), (int)allowedOps);
 }
Esempio n. 5
0
 /// <summary>
 /// Call this function when the drag operation started by a
 /// CfxRenderHandler.StartDragging call has ended either in a drop or by
 /// being cancelled. |x| and |y| are mouse coordinates relative to the upper-
 /// left corner of the view. If the web view is both the drag source and the
 /// drag target then all DragTarget* functions should be called before
 /// DragSource* mthods. This function is only used when window rendering is
 /// disabled.
 /// </summary>
 /// <remarks>
 /// See also the original CEF documentation in
 /// <see href="https://bitbucket.org/chromiumfx/chromiumfx/src/tip/cef/include/capi/cef_browser_capi.h">cef/include/capi/cef_browser_capi.h</see>.
 /// </remarks>
 public void DragSourceEndedAt(int x, int y, CfxDragOperationsMask op)
 {
     CfxApi.cfx_browser_host_drag_source_ended_at(NativePtr, x, y, (int)op);
 }