Add Browser class to controll when the application should quit.

This commit is contained in:
Cheng Zhao 2013-05-02 23:43:23 +08:00
parent 8cf1050730
commit d151d494bd
12 changed files with 138 additions and 7 deletions

View file

@ -38,6 +38,9 @@ class WindowList {
static void AddWindow(NativeWindow* window);
static void RemoveWindow(NativeWindow* window);
// Called by window when a close is cancelled by beforeunload handler.
static void WindowCloseCancelled(NativeWindow* window);
// Adds and removes |observer| from the observer list.
static void AddObserver(WindowListObserver* observer);
static void RemoveObserver(WindowListObserver* observer);