mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
Expose drag image via CefDragData (issue #1715)
This commit is contained in:
@@ -39,6 +39,7 @@
|
||||
#pragma once
|
||||
|
||||
#include "include/cef_base.h"
|
||||
#include "include/cef_image.h"
|
||||
#include "include/cef_stream.h"
|
||||
#include <vector>
|
||||
|
||||
@@ -193,6 +194,25 @@ class CefDragData : public virtual CefBaseRefCounted {
|
||||
///
|
||||
/*--cef(optional_param=display_name)--*/
|
||||
virtual void AddFile(const CefString& path, const CefString& display_name) =0;
|
||||
|
||||
///
|
||||
// Get the image representation of drag data. May return NULL if no image
|
||||
// representation is available.
|
||||
///
|
||||
/*--cef()--*/
|
||||
virtual CefRefPtr<CefImage> GetImage() =0;
|
||||
|
||||
///
|
||||
// Get the image hotspot (drag start location relative to image dimensions).
|
||||
///
|
||||
/*--cef()--*/
|
||||
virtual CefPoint GetImageHotspot() =0;
|
||||
|
||||
///
|
||||
// Returns true if an image representation of drag data is available.
|
||||
///
|
||||
/*--cef()--*/
|
||||
virtual bool HasImage() =0;
|
||||
};
|
||||
|
||||
#endif // CEF_INCLUDE_CEF_DRAG_DATA_H_
|
||||
|
Reference in New Issue
Block a user