Use applicationShouldTerminate to control whether application should quit.

This commit is contained in:
Cheng Zhao 2013-06-26 17:22:24 +08:00
parent 6362e60a7b
commit adacc2bcf9
5 changed files with 33 additions and 19 deletions

View file

@ -48,9 +48,15 @@ class Browser : public WindowListObserver {
observers_.RemoveObserver(obs);
}
bool is_quiting() const { return is_quiting_; }
protected:
// Send the will-quit message and then terminate the application.
void NotifyAndTerminate();
// Tell the system we have cancelled quiting.
void CancelQuit();
bool is_quiting_;
private: