Supporting Drag and drop in offscreen rendering

Having problems with building or using CEF's C/C++ APIs? This forum is here to help. Please do not post bug reports or feature requests here.

Supporting Drag and drop in offscreen rendering

Postby lologadgeto » Sat Dec 03, 2011 3:15 pm

I have started to integrate CEF into my 3d engine using the offscreen rendering functionality and I would like to integrate drag and drop as shown in http://html5demos.com/drag
As of now I don't manage to make it work and I have noticed that CEFclient offscreen rendering sample does not support it also.

Is there any way to support it or is it a new functionality?

Thanks for your help!
lologadgeto
Newbie
 
Posts: 2
Joined: Sat Dec 03, 2011 3:05 pm

Re: Supporting Drag and drop in offscreen rendering

Postby magreenblatt » Mon Dec 05, 2011 7:01 am

HTML5 drag and drop is not currently supported in off-screen rendering mode because CEF does not have a window to act as a drag source or drop target. It would be possible to expose the renderer callbacks but you would need to implement drag sources and drop targets yourself as appropriate for your application.
magreenblatt
Site Admin
 
Posts: 12409
Joined: Fri May 29, 2009 6:57 pm

Re: Supporting Drag and drop in offscreen rendering

Postby ataranto » Tue Mar 20, 2012 5:31 pm

What kind of window are we talking about? It looks like if i disable the check, drags are intiiated correctly but drop targets don't exist. Can you elaborate a bit on what it would take to add this?

Created an issue to track:
http://code.google.com/p/chromiumembedd ... ail?id=554
ataranto
Techie
 
Posts: 31
Joined: Fri Feb 25, 2011 4:13 pm

Re: Supporting Drag and drop in offscreen rendering

Postby magreenblatt » Wed Mar 21, 2012 11:36 am

Operating systems provide interfaces for drag&drop integration. For example, IDropSource on Windows and NSDraggingSource on Mac. These calls need to be handled by a window or view that forwards to the WebView drag methods.
magreenblatt
Site Admin
 
Posts: 12409
Joined: Fri May 29, 2009 6:57 pm

Re: Supporting Drag and drop in offscreen rendering

Postby ataranto » Thu Mar 22, 2012 5:16 pm

I will spend some time investigating if it is feasible to use the hwnd passed to CefWindowInfo::SetAsOffscreen() as the window for drag events.
ataranto
Techie
 
Posts: 31
Joined: Fri Feb 25, 2011 4:13 pm

Re: Supporting Drag and drop in offscreen rendering

Postby ataranto » Thu Mar 22, 2012 9:30 pm

I tried instantiating WebDragSource() with the hwnd passsed to CefWindowInfo::SetAsOffscreen() but drags still don't initiate successfully. Not sure why, I may spend more time investing tomorrow.
ataranto
Techie
 
Posts: 31
Joined: Fri Feb 25, 2011 4:13 pm

Re: Supporting Drag and drop in offscreen rendering

Postby rndbit » Mon Sep 23, 2013 7:04 am

does cef1 support drag&drop in off-screen rendering mode?

im in exactly same situation as thread author, want to be sure if its worth downgrading.
rndbit
Newbie
 
Posts: 7
Joined: Sat Mar 23, 2013 8:56 am

Re: Supporting Drag and drop in offscreen rendering

Postby magreenblatt » Mon Sep 23, 2013 7:39 am

rndbit wrote:does cef1 support drag&drop in off-screen rendering mode?

No
magreenblatt
Site Admin
 
Posts: 12409
Joined: Fri May 29, 2009 6:57 pm

Re: Supporting Drag and drop in offscreen rendering

Postby atai » Mon Feb 10, 2014 3:33 am

One more question about drad&drop:

Does CEF3 support drag&drop in off-screen rendering mode?
atai
Techie
 
Posts: 22
Joined: Fri Jan 24, 2014 9:47 pm

Re: Supporting Drag and drop in offscreen rendering

Postby magreenblatt » Mon Feb 10, 2014 9:33 am

atai wrote:One more question about drad&drop:

Does CEF3 support drag&drop in off-screen rendering mode?

No.
magreenblatt
Site Admin
 
Posts: 12409
Joined: Fri May 29, 2009 6:57 pm

Next

Return to Support Forum

Who is online

Users browsing this forum: No registered users and 190 guests