Added 'show' & 'hide' events to browser-window, fixed visibilitychange event in renderer
This commit is contained in:
parent
ee61ab2d26
commit
c1267b2320
8 changed files with 88 additions and 60 deletions
|
@ -302,6 +302,8 @@ bool NativeWindowViews::IsFocused() {
|
|||
void NativeWindowViews::Show() {
|
||||
window_->native_widget_private()->ShowWithWindowState(GetRestoredState());
|
||||
|
||||
NotifyWindowShow();
|
||||
|
||||
#if defined(USE_X11)
|
||||
if (global_menu_bar_)
|
||||
global_menu_bar_->OnWindowMapped();
|
||||
|
@ -311,6 +313,8 @@ void NativeWindowViews::Show() {
|
|||
void NativeWindowViews::ShowInactive() {
|
||||
window_->ShowInactive();
|
||||
|
||||
NotifyWindowShow();
|
||||
|
||||
#if defined(USE_X11)
|
||||
if (global_menu_bar_)
|
||||
global_menu_bar_->OnWindowMapped();
|
||||
|
@ -320,6 +324,8 @@ void NativeWindowViews::ShowInactive() {
|
|||
void NativeWindowViews::Hide() {
|
||||
window_->Hide();
|
||||
|
||||
NotifyWindowHide();
|
||||
|
||||
#if defined(USE_X11)
|
||||
if (global_menu_bar_)
|
||||
global_menu_bar_->OnWindowUnmapped();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue