xxfxxf / chromiumembedded

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

Add CefDragHandler callbacks for modifying URL drag/drop behavior #363

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
By default, a URL drag can be dropped anywhere on a browser view and the 
default action is to navigate. It would be better if:

1. URL drops could be treated as other drop types where only certain HTML 
elements accept drops.
2. The default URL drop action could be overridden/canceled.

Original issue reported on code.google.com by magreenb...@gmail.com on 4 Oct 2011 at 2:11

GoogleCodeExporter commented 9 years ago

Original comment by magreenb...@gmail.com on 4 Oct 2011 at 2:19

GoogleCodeExporter commented 9 years ago
Revision 320 adds a new NAVTYPE_LINKDROPPED value to the cef_handler_navtype_t 
enum passed to OnBeforeResourceLoad() that will be used when navigation is 
resulting from a drop.

Original comment by magreenb...@gmail.com on 18 Oct 2011 at 12:24

GoogleCodeExporter commented 9 years ago

Original comment by magreenb...@gmail.com on 18 Oct 2011 at 12:24

GoogleCodeExporter commented 9 years ago
Comment #2 should say OnBeforeBrowse() instead of OnBeforeResourceLoad().

Original comment by magreenb...@gmail.com on 18 Oct 2011 at 1:52

GoogleCodeExporter commented 9 years ago
Revision 327 adds a CefBrowserSettings.load_drops_disabled option for disabling 
default navigation resulting from drag & drop of URLs.

Original comment by magreenb...@gmail.com on 19 Oct 2011 at 4:38