Use applicationShouldTerminate to control whether application should quit.
This commit is contained in:
parent
6362e60a7b
commit
adacc2bcf9
5 changed files with 33 additions and 19 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue