Passing file drag-and-drop events on Window into CEF OSR

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.

Passing file drag-and-drop events on Window into CEF OSR

Postby Gazoo » Tue Oct 17, 2023 4:29 am

Hello,

I'd like to confirm that in order to support dragging and dropping files from - say - the windows file explorer, into an application using CEF configured for off-screen rendering, I'd have to implement/replicate the functionality triggered ~Line 319 in osr_window_win.cc (https://github.com/chromiumembedded/cef/blob/8d7001adc358691ee249b9855fefd206d5f558d8/tests/cefclient/browser/osr_window_win.cc#L317C46-L317C46), yes?

Or is there possibly a simpler way to get 'dropping files on to my application' to trigger events inside of JS running in CEF?

Cheers,
Gazoo
Gazoo
Techie
 
Posts: 10
Joined: Fri Aug 18, 2023 8:48 am

Re: Passing file drag-and-drop events on Window into CEF OSR

Postby magreenblatt » Tue Oct 17, 2023 9:10 am

yes?

Yes, you need to implement a drop target using OS APIs and execute the necessary drop-related CEF methods.
magreenblatt
Site Admin
 
Posts: 12409
Joined: Fri May 29, 2009 6:57 pm

Re: Passing file drag-and-drop events on Window into CEF OSR

Postby Gazoo » Tue Oct 17, 2023 1:12 pm

Gotcha - Appreciate the reply, thanks for all you do magreenblatt - keep it up!
Gazoo
Techie
 
Posts: 10
Joined: Fri Aug 18, 2023 8:48 am


Return to Support Forum

Who is online

Users browsing this forum: No registered users and 200 guests