mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
- Add CefDragHandler to support examination of drag data and cancellation of drag requests (issue #297).
- Mac: Fix dragging of URLs by providing a default image if no drag image is supplied. git-svn-id: https://chromiumembedded.googlecode.com/svn/trunk@279 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
This commit is contained in:
@@ -12,6 +12,7 @@
|
||||
|
||||
#include "libcef_dll/ctocpp/client_ctocpp.h"
|
||||
#include "libcef_dll/ctocpp/display_handler_ctocpp.h"
|
||||
#include "libcef_dll/ctocpp/drag_handler_ctocpp.h"
|
||||
#include "libcef_dll/ctocpp/find_handler_ctocpp.h"
|
||||
#include "libcef_dll/ctocpp/focus_handler_ctocpp.h"
|
||||
#include "libcef_dll/ctocpp/jsbinding_handler_ctocpp.h"
|
||||
@@ -175,6 +176,18 @@ CefRefPtr<CefRenderHandler> CefClientCToCpp::GetRenderHandler()
|
||||
return NULL;
|
||||
}
|
||||
|
||||
CefRefPtr<CefDragHandler> CefClientCToCpp::GetDragHandler()
|
||||
{
|
||||
if (CEF_MEMBER_MISSING(struct_, get_drag_handler))
|
||||
return NULL;
|
||||
|
||||
cef_drag_handler_t* handlerStruct = struct_->get_drag_handler(struct_);
|
||||
if(handlerStruct)
|
||||
return CefDragHandlerCToCpp::Wrap(handlerStruct);
|
||||
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
#ifndef NDEBUG
|
||||
template<> long CefCToCpp<CefClientCToCpp, CefClient,
|
||||
|
Reference in New Issue
Block a user