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:
@@ -23,10 +23,11 @@ class MainContextImpl : public MainContext {
|
||||
bool terminate_when_all_windows_closed);
|
||||
|
||||
// MainContext members.
|
||||
CefRefPtr<CefCommandLine> GetCommandLine() override;
|
||||
std::string GetConsoleLogPath() override;
|
||||
std::string GetDownloadPath(const std::string& file_name) override;
|
||||
std::string GetAppWorkingDirectory() override;
|
||||
std::string GetMainURL() override;
|
||||
std::string GetMainURL(CefRefPtr<CefCommandLine> command_line) override;
|
||||
cef_color_t GetBackgroundColor() override;
|
||||
bool UseChromeRuntime() override;
|
||||
bool UseChromeRuntimeNative() override;
|
||||
@@ -69,7 +70,6 @@ class MainContextImpl : public MainContext {
|
||||
bool initialized_ = false;
|
||||
bool shutdown_ = false;
|
||||
|
||||
std::string main_url_;
|
||||
cef_color_t background_color_ = 0;
|
||||
cef_color_t browser_background_color_ = 0;
|
||||
bool use_windowless_rendering_;
|
||||
|
Reference in New Issue
Block a user