Expose drag image via CefDragData (issue #1715)

This commit is contained in:
Marshall Greenblatt
2017-05-11 14:22:21 -04:00
parent eaa0942690
commit 67e23b472a
9 changed files with 192 additions and 2 deletions

View File

@@ -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_