Add NativeWindowObserver::OnCloseButtonClicked
This commit is contained in:
parent
a25b49a127
commit
66fab65a1a
7 changed files with 35 additions and 13 deletions
|
@ -415,10 +415,7 @@ bool ScopedDisableResize::disable_resize_ = false;
|
|||
}
|
||||
|
||||
- (BOOL)windowShouldClose:(id)window {
|
||||
// When user tries to close the window by clicking the close button, we do
|
||||
// not close the window immediately, instead we try to close the web page
|
||||
// first, and when the web page is closed the window will also be closed.
|
||||
shell_->RequestToClosePage();
|
||||
shell_->NotifyWindowCloseButtonClicked();
|
||||
return NO;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue