Skip to content
This repository was archived by the owner on Sep 2, 2021. It is now read-only.

Commit c29290f

Browse files
committed
Enable DispatchCloseToNextBrowser
1 parent a3b2804 commit c29290f

3 files changed

Lines changed: 8 additions & 1 deletion

File tree

appshell/appshell_process_message.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -402,7 +402,7 @@ namespace appshell {
402402

403403
// The DispatchCloseToNextBrowser() call initiates a quit sequence. The app will
404404
// quit if all browser windows are closed.
405-
// handler->DispatchCloseToNextBrowser();
405+
handler->DispatchCloseToNextBrowser();
406406

407407
} else if (message_name == "AbortQuit") {
408408
// Parameters - none

appshell/browser/client_handler.cc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -833,4 +833,9 @@ bool ClientHandler::ExecuteTestMenu(int command_id) {
833833
return false;
834834
}
835835

836+
void ClientHandler::DispatchCloseToNextBrowser()
837+
{
838+
MainContext::Get()->GetRootWindowManager()->CloseAllWindows(false);
839+
}
840+
836841
} // namespace client

appshell/browser/client_handler.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -266,6 +266,8 @@ class ClientHandler : public CefClient,
266266
// Returns true if this handler uses off-screen rendering.
267267
bool is_osr() const { return is_osr_; }
268268

269+
void DispatchCloseToNextBrowser();
270+
269271
private:
270272
// Create a new popup window using the specified information. |is_devtools|
271273
// will be true if the window will be used for DevTools. Return true to

0 commit comments

Comments
 (0)