Example #1
0
 /// <summary>
 /// Call this function when the user completes the drag operation by dropping
 /// the object onto the web view (after calling DragTargetDragEnter). The
 /// object being dropped is |drag_data|, given as an argument to the previous
 /// DragTargetDragEnter call. This function is only used when window rendering
 /// is disabled.
 /// </summary>
 public unsafe virtual void DragTargetDrop(CefMouseEvent @event)
 {
     NativeInstance->DragTargetDrop((cef_mouse_event_t *)&@event);
     GC.KeepAlive(this);
 }
Example #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>
 public unsafe virtual void DragTargetDragOver(CefMouseEvent @event, CefDragOperationsMask allowedOps)
 {
     NativeInstance->DragTargetDragOver((cef_mouse_event_t *)&@event, allowedOps);
     GC.KeepAlive(this);
 }
Example #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);
 }
Example #4
0
 /// <summary>
 /// Send a mouse wheel event to the browser. The |x| and |y| coordinates are
 /// relative to the upper-left corner of the view. The |deltaX| and |deltaY|
 /// values represent the movement delta in the X and Y directions respectively.
 /// In order to scroll inside select popups with window rendering disabled
 /// cef_render_handler_t::GetScreenPoint should be implemented properly.
 /// </summary>
 public unsafe virtual void SendMouseWheelEvent(CefMouseEvent @event, int deltaX, int deltaY)
 {
     NativeInstance->SendMouseWheelEvent((cef_mouse_event_t *)&@event, deltaX, deltaY);
     GC.KeepAlive(this);
 }
Example #5
0
 /// <summary>
 /// Send a mouse move event to the browser. The |x| and |y| coordinates are
 /// relative to the upper-left corner of the view.
 /// </summary>
 public unsafe virtual void SendMouseMoveEvent(CefMouseEvent @event, bool mouseLeave)
 {
     NativeInstance->SendMouseMoveEvent((cef_mouse_event_t *)&@event, mouseLeave ? 1 : 0);
     GC.KeepAlive(this);
 }
Example #6
0
 /// <summary>
 /// Send a mouse click event to the browser. The |x| and |y| coordinates are
 /// relative to the upper-left corner of the view.
 /// </summary>
 public unsafe virtual void SendMouseClickEvent(CefMouseEvent @event, CefMouseButtonType type, bool mouseUp, int clickCount)
 {
     NativeInstance->SendMouseClickEvent((cef_mouse_event_t *)&@event, type, mouseUp ? 1 : 0, clickCount);
     GC.KeepAlive(this);
 }