Пример #1
0
        private int on_drag_enter(cef_drag_handler_t *self, cef_browser_t *browser, cef_drag_data_t *dragData, CefDragOperationsMask mask)
        {
            CheckSelf(self);

            var m_browser  = CefBrowser.FromNative(browser);
            var m_dragData = CefDragData.FromNative(dragData);
            var m_result   = OnDragEnter(m_browser, m_dragData, mask);

            return(m_result ? 1 : 0);
        }
Пример #2
0
        private int start_dragging(cef_render_handler_t *self, cef_browser_t *browser, cef_drag_data_t *drag_data, CefDragOperationsMask allowed_ops, int x, int y)
        {
            CheckSelf(self);

            var m_browser  = CefBrowser.FromNative(browser);
            var m_dragData = CefDragData.FromNative(drag_data);

            var m_result = StartDragging(m_browser, m_dragData, allowed_ops, x, y);

            return(m_result ? 1 : 0);
        }
Пример #3
0
 /// <summary>
 /// Returns a copy of the current object.
 /// </summary>
 public CefDragData Clone()
 {
     return(CefDragData.FromNative(cef_drag_data_t.clone(_self)));
 }
Пример #4
0
 /// <summary>
 /// Create a new CefDragData object.
 /// </summary>
 public static CefDragData Create()
 {
     return(CefDragData.FromNative(cef_drag_data_t.create()));
 }