Add |has_external_parent| flag in Chromium patches to avoid behavior changes

when the widget is not parented to an external window (issue #1749).
This commit is contained in:
Marshall Greenblatt
2015-10-26 14:23:08 -04:00
parent 1f86d24d48
commit e0974ea64d
4 changed files with 235 additions and 126 deletions

View File

@ -2676,6 +2676,11 @@ void CefBrowserHostImpl::RenderViewCreated(
registrar_->Add(this, content::NOTIFICATION_FOCUS_CHANGED_IN_PAGE,
content::Source<content::RenderViewHost>(render_view_host));
}
// Indicate that the view has an external parent (namely us). This changes the
// default view behavior in some cases (e.g. focus handling on Linux).
if (render_view_host->GetView())
render_view_host->GetView()->SetHasExternalParent(true);
}
void CefBrowserHostImpl::RenderViewDeleted(