Should send "closed" event when native window is closed.

This commit is contained in:
Cheng Zhao 2014-04-23 10:24:46 +08:00
parent 8417f158b4
commit 1cb23a958c
5 changed files with 8 additions and 6 deletions

View file

@ -173,6 +173,11 @@ class NativeWindow : public brightray::DefaultWebContentsDelegate,
int child_process_id);
void OverrideWebkitPrefs(const GURL& url, WebPreferences* prefs);
// Public API used by platform-dependent delegates and observers to send UI
// related notifications.
void NotifyWindowClosed();
void NotifyWindowBlur();
void AddObserver(NativeWindowObserver* obs) {
observers_.AddObserver(obs);
}
@ -196,9 +201,6 @@ class NativeWindow : public brightray::DefaultWebContentsDelegate,
inspectable_web_contents_.get());
}
void NotifyWindowClosed();
void NotifyWindowBlur();
// Called when the window needs to update its draggable region.
virtual void UpdateDraggableRegions(
const std::vector<DraggableRegion>& regions) = 0;