Project will move to github. Find this wiki page at the new address: https://github.com/cztomczak/cefpython/wiki/DragHandler
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.
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
DragOperationmask can be checked againstcefpython.Drag.Operationdictionary 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 theDragOperationmask values see theOnDragStart()description.