Ejemplo n.º 1
0
 /// <summary>
 /// Call this method 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 method is only used when window rendering is disabled.
 /// </summary>
 public void DragTargetDrop(CefMouseEvent mouseEvent)
 {
     var n_mouseEvent = mouseEvent.ToNative();
     cef_browser_host_t.drag_target_drop(_self, &n_mouseEvent);
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Call this method each time the mouse is moved across the web view during
 /// a drag operation (after calling DragTargetDragEnter and before calling
 /// DragTargetDragLeave/DragTargetDrop).
 /// This method is only used when window rendering is disabled.
 /// </summary>
 public void DragTargetDragOver(CefMouseEvent mouseEvent, CefDragOperationsMask allowedOps)
 {
     var n_mouseEvent = mouseEvent.ToNative();
     cef_browser_host_t.drag_target_drag_over(_self, &n_mouseEvent, allowedOps);
 }
Ejemplo n.º 3
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 void SendMouseMoveEvent(CefMouseEvent @event, bool mouseLeave)
 {
     var n_event = @event.ToNative();
     cef_browser_host_t.send_mouse_move_event(_self, &n_event, mouseLeave ? 1 : 0);
 }
Ejemplo n.º 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
 /// CefRenderHandler::GetScreenPoint should be implemented properly.
 /// </summary>
 public void SendMouseWheelEvent(CefMouseEvent @event, int deltaX, int deltaY)
 {
     var n_event = @event.ToNative();
     cef_browser_host_t.send_mouse_wheel_event(_self, &n_event, deltaX, deltaY);
 }
Ejemplo n.º 5
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 void SendMouseClickEvent(CefMouseEvent @event, CefMouseButtonType type, bool mouseUp, int clickCount)
 {
     var n_event = @event.ToNative();
     cef_browser_host_t.send_mouse_click_event(_self, &n_event, type, mouseUp ? 1 : 0, clickCount);
 }