mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
Add a new NAVTYPE_LINKDROPPED value to the cef_handler_navtype_t enum passed to OnBeforeResourceLoad() that will be passed when navigation is resulting from a drop (issue #363).
git-svn-id: https://chromiumembedded.googlecode.com/svn/trunk@320 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
This commit is contained in:
@@ -738,9 +738,15 @@ WebNavigationPolicy BrowserWebViewDelegate::decidePolicyForNavigation(
|
||||
if(map.size() > 0)
|
||||
static_cast<CefRequestImpl*>(req.get())->SetHeaderMap(map);
|
||||
|
||||
cef_handler_navtype_t navType;
|
||||
if (browser_->is_dropping())
|
||||
navType = NAVTYPE_LINKDROPPED;
|
||||
else
|
||||
navType = (cef_handler_navtype_t)type;
|
||||
|
||||
// Notify the handler of a browse request
|
||||
bool handled = handler->OnBeforeBrowse(browser_,
|
||||
browser_->UIT_GetCefFrame(frame), req, (cef_handler_navtype_t)type,
|
||||
browser_->UIT_GetCefFrame(frame), req, navType,
|
||||
is_redirect);
|
||||
if(handled)
|
||||
return WebKit::WebNavigationPolicyIgnore;
|
||||
|
Reference in New Issue
Block a user