Emit a new before-quit event at the start of Browser::Quit, which gives us a chance to cancel before any windows are closed.

This commit is contained in:
Charlie Hess 2015-02-25 19:33:42 -08:00
parent 0c99f3baa6
commit b6787a9b34
6 changed files with 32 additions and 4 deletions

View file

@ -11,6 +11,9 @@ namespace atom {
class BrowserObserver {
public:
// The browser is about to close all windows.
virtual void OnBeforeQuit(bool* prevent_default) {}
// The browser has closed all windows and will quit.
virtual void OnWillQuit(bool* prevent_default) {}