Chromium Embedded Framework (CEF)  115.2.0+g096e3eb+chromium-115.0.5790.13
CefDragHandler Class Reference

Implement this interface to handle events related to dragging. More...

#include "include/cef_drag_handler.h"

Inheritance diagram for CefDragHandler:
CefBaseRefCounted

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 > &regions)
 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 ()
 

Detailed Description

Implement this interface to handle events related to dragging.

The methods of this class will be called on the UI thread.

Member Typedef Documentation

◆ DragOperationsMask

Member Function Documentation

◆ OnDragEnter()

virtual bool CefDragHandler::OnDragEnter ( CefRefPtr< CefBrowser browser,
CefRefPtr< CefDragData dragData,
DragOperationsMask  mask 
)
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.

◆ OnDraggableRegionsChanged()

virtual void CefDragHandler::OnDraggableRegionsChanged ( CefRefPtr< CefBrowser browser,
CefRefPtr< CefFrame frame,
const std::vector< CefDraggableRegion > &  regions 
)
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.


The documentation for this class was generated from the following file: