chrome: Add support for reparenting of popups with Views (see issue #2969)

This commit is contained in:
Marshall Greenblatt
2021-04-02 16:53:17 -04:00
parent 6ad29642e2
commit c04592e2a7
14 changed files with 326 additions and 128 deletions

View File

@@ -51,8 +51,13 @@ struct CefBrowserCreateParams {
#if defined(TOOLKIT_VIEWS)
// The BrowserView that will own a Views-hosted browser. Will be nullptr for
// popup browsers (the BrowserView will be created later in that case).
// popup browsers.
CefRefPtr<CefBrowserView> browser_view;
// True if this browser is a popup and has a Views-hosted opener, in which
// case the BrowserView for this browser will be created later (from
// PopupWebContentsCreated).
bool popup_with_views_hosted_opener = false;
#endif
// Client implementation. May be nullptr.