示例#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);
        }
 /// <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 for default drag handling behavior or true to
 /// cancel the drag event.
 /// </summary>
 protected abstract bool OnDragEnter(CefBrowser browser, CefDragData dragData, CefDragOperationsMask mask);
示例#3
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 for default drag handling behavior or true to
 /// cancel the drag event.
 /// </summary>
 protected abstract bool OnDragEnter(CefBrowser browser, CefDragData dragData, CefDragOperationsMask mask);