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:
Marshall Greenblatt
2011-10-18 00:23:32 +00:00
parent 78c23fc30b
commit 7130cc4f26
6 changed files with 34 additions and 5 deletions

View File

@@ -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;