Skip to content

Latest commit

 

History

History
46 lines (31 loc) · 1.62 KB

File metadata and controls

46 lines (31 loc) · 1.62 KB

Project will move to github. Find this wiki page at the new address: https://github.com/cztomczak/cefpython/wiki/DragHandler


DragHandler callbacks

Implement this interface to handle events related to dragging. The methods of this class will be called on the UI thread.

For an example of how to implement a handler see cefpython.CreateBrowser(). For a list of all handler interfaces see API > Client handlers.

The DragHandler tests can be found in the wxpython.py script.

CEF 1

bool OnDragStart(Browser browser, DragData dragData, DragOperation mask)

Called when the browser window initiates a drag event. |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.

The DragOperation mask can be checked against cefpython.Drag.Operation dictionary that consists of following keys:

None

Copy
Link
Generic
Private
Move
Delete
Every

bool OnDragEnter(Browser browser, DragData dragData, DragOperation mask)

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.
For the DragOperation mask values see the OnDragStart() description.