zhangqd / chromiumembedded

Automatically exported from code.google.com/p/chromiumembedded
0 stars 1 forks source link

OnDragEnter affects both internal and external drag events #1235

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
After implementing CefDragHandler::OnDragEnter and when returning true, 
internal drag and drop doesn't work on websites. When OnDragHandler callback is 
not implemented then it works fine. It also works fine when returning false in 
OnDragEnter. Description of that callback says that it affects only external 
drag events, see:

  ///
  // Called when an external drag event enters the browser window. |dragData|
  // contains the drag event data and |mask| represents the type of drag
  // operation. Return false for default drag handling behavior or true to
  // cancel the drag event.
  ///
  bool ClientHandler::OnDragEnter(CefRefPtr<CefBrowser> browser,
                       CefRefPtr<CefDragData> dragData,
                       DragOperationsMask mask)

Using CEF 3 branch 1650 revision 1562 on Windows.

I haven't been using CefDrangHandler with older CEF versions, so don't know how 
it behave earlier.

Tested drag and drop here: https://www.dartlang.org/samples/dnd/

Original issue reported on code.google.com by czarek.t...@gmail.com on 24 Mar 2014 at 2:58

GoogleCodeExporter commented 9 years ago
CEF is transitioning from Google Code to Bitbucket project hosting. If you 
would like to continue receiving notifications on this issue please add 
yourself as a Watcher at the new location: 
https://bitbucket.org/chromiumembedded/cef/issue/1235

Original comment by magreenb...@gmail.com on 14 Mar 2015 at 3:31