mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
chrome: Add callback for already running app relaunch (fixes #3609)
Adds a new CefBrowserProcessHandler::OnAlreadyRunningAppRelaunch callback for when an already running app is relaunched with the same CefSettings.root_cache_path. Client apps should check the CefInitialize() return value for early exit of the relaunch source process.
This commit is contained in:
@ -17,9 +17,13 @@
|
||||
namespace client {
|
||||
|
||||
// static
|
||||
scoped_refptr<RootWindow> RootWindow::Create(bool use_views) {
|
||||
scoped_refptr<RootWindow> RootWindow::Create(
|
||||
bool use_views,
|
||||
scoped_refptr<RootWindow> parent_window) {
|
||||
if (use_views) {
|
||||
return new RootWindowViews();
|
||||
CHECK(!parent_window || parent_window->IsViewsHosted());
|
||||
return new RootWindowViews(
|
||||
static_cast<RootWindowViews*>(parent_window.get()));
|
||||
}
|
||||
|
||||
#if defined(OS_WIN)
|
||||
|
Reference in New Issue
Block a user