Chromium Embedded Framework (CEF)
126.2.0+g5c56e98+chromium-126.0.6478.62
|
Implement this interface to handle events related to dragging. More...
#include "include/cef_drag_handler.h"
Public Types | |
typedef cef_drag_operations_mask_t | DragOperationsMask |
Public Member Functions | |
virtual bool | OnDragEnter (CefRefPtr< CefBrowser > browser, CefRefPtr< CefDragData > dragData, DragOperationsMask mask) |
Called when an external drag event enters the browser window. More... | |
virtual void | OnDraggableRegionsChanged (CefRefPtr< CefBrowser > browser, CefRefPtr< CefFrame > frame, const std::vector< CefDraggableRegion > ®ions) |
Called whenever draggable regions for the browser window change. More... | |
Public Member Functions inherited from CefBaseRefCounted | |
virtual void | AddRef () const =0 |
Called to increment the reference count for the object. More... | |
virtual bool | Release () const =0 |
Called to decrement the reference count for the object. More... | |
virtual bool | HasOneRef () const =0 |
Returns true if the reference count is 1. More... | |
virtual bool | HasAtLeastOneRef () const =0 |
Returns true if the reference count is at least 1. More... | |
Additional Inherited Members | |
Protected Member Functions inherited from CefBaseRefCounted | |
virtual | ~CefBaseRefCounted () |
Implement this interface to handle events related to dragging.
The methods of this class will be called on the UI thread.
|
inlinevirtual |
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.
|
inlinevirtual |
Called whenever draggable regions for the browser window change.
These can be specified using the '-webkit-app-region: drag/no-drag' CSS-property. If draggable regions are never defined in a document this method will also never be called. If the last draggable region is removed from a document this method will be called with an empty vector.