-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Drag and drop in WPF #171
Comments
It looks like the upstream bug has now been fixed. Is anybody able to pull in the latest Chromium? |
@amaitland Is working on merging in support for 1750 in cefsharp/cef-binary#11. He thinks it will be available something around next week :) |
This version is based on the latest stable release of CEF3 (3.1750.1738) |
Thanks for the quick response. This version is quite different! I notice that the browser object has been renamed from WebView to ChromiumWebBrowser. When I try to run it I got an error saying that I had to run Cef.Initialize() first. I added System.NullReferenceException was unhandled |
What version are you coming from, CefSharp1 something? If so, then oh yes under the hood (the upstream CEF and Chromium) it's quite different - multi-process etc.- for further discussion and info pointers see #394 (comment) Also CefSharp3 compared to CefSharp1 itself now has switched from being primarily written in C++ to the majority now being C# for better hackability to hopefully more .NET developers. |
Thanks. I got it working now with the latest version. I still don't seem to be able to handle drag and drop though. This is my code and the drag and drop demo does not work:
Or did your comment from above mean that we still need to wait for @amaitland to check in his latest code and then update from that Nuget source to a later version? |
See https://code.google.com/p/chromiumembedded/issues/detail?id=1032#c23 Yes, it's fixed upstream but not before the 1916 branch, which still hasn't got an official release, only nightly builds. So that we're about to merge 1750 doesn't do anything for drag n drop. Maybe you can work with Aaron in the Google Group who is trying to get to a running 2062 branch? |
With #532 on its way onto https://github.com/cefsharp/CefSharp/tree/cef/2062 It's less work to try out with http://html5demos.com/drag# now. I just did and it's still not working. I think the CEF bug to follow (and vote for by giving it a ⭐) now is https://code.google.com/p/chromiumembedded/issues/detail?id=1364&q=label%3AOSR |
From what I can tell we need to implement the appropriate OSR Methods are here https://bitbucket.org/chromiumembedded/branches-2171-cef3/src/10a08114355a477bfb4e29e06755763ad61b458e/include/cef_browser.h?at=master#cl-581 |
Did anyone look into this? |
@Bodekaer Go for it 👍 |
I'm on it :) |
Done :) |
Awesome-sovs! (Whish I had time to take it for a spin ... but sadly not today 😢) |
Hehe :) It works really nicely. And opens up so many new possibilities here, which is amazing. @myrnazhou, FYI we have drag drop now. Might be useful for native image drag drop at some point (low priority though). |
Thanks a bunch. Happy to help. Yeah, the primary thing that is missing is the ability to drag e.g. image/text out of the browser. If anyone wants to implement the former, please just let me know and I can help direct to the relevant code and documentation files. |
Hi @Bodekaer! Could you provide some pointers to what would be necessary to get drag and drop out of and within the browser working? (So that for example http://html5demos.com/drag would work in CefShrp.Wpf) |
Hey @ralphmayr, E.g. this issue might provide the relevant input (although related to CEF1 I believe): With that, you'll probably see that we need to implement a few C++ methods to support the CEF3 API for dragging within/out of the browser. |
The API docs are also quite handy http://magpcss.org/ceforum/apidocs3/index-all.html |
Also the |
Right now it's not supported.
See upstream bug - it also applies to CEF1.
The text was updated successfully, but these errors were encountered: