Shutdown gracefully, fixes #227.

This commit is contained in:
Cheng Zhao 2014-04-10 15:22:17 +08:00
parent 538bd1116d
commit f0d9ee4ca9
5 changed files with 14 additions and 23 deletions

View file

@ -26,8 +26,8 @@ class Browser : public WindowListObserver {
// Try to close all windows and quit the application.
void Quit();
// Quit the application immediately without cleanup work.
void Terminate();
// Cleanup everything and shutdown the application gracefully.
void Shutdown();
// Focus the application.
void Focus();
@ -88,8 +88,8 @@ class Browser : public WindowListObserver {
// Returns the name of application bundle or executable file.
std::string GetExecutableFileProductName() const;
// Send the will-quit message and then terminate the application.
void NotifyAndTerminate();
// Send the will-quit message and then shutdown the application.
void NotifyAndShutdown();
// Tell the system we have cancelled quiting.
void CancelQuit();