Added 'show' & 'hide' events to browser-window, fixed visibilitychange event in renderer

This commit is contained in:
Arek Sredzki 2016-03-08 09:36:41 -08:00
parent ee61ab2d26
commit c1267b2320
8 changed files with 88 additions and 60 deletions

View file

@ -42,6 +42,12 @@ class NativeWindowObserver {
// Called when window gains focus.
virtual void OnWindowFocus() {}
// Called when window is shown.
virtual void OnWindowShow() {}
// Called when window is hidden.
virtual void OnWindowHide() {}
// Called when window state changed.
virtual void OnWindowMaximize() {}
virtual void OnWindowUnmaximize() {}