Emit WindowCloseCancelled message when close is cancelled by user code.
This commit is contained in:
parent
adacc2bcf9
commit
411e1a3685
1 changed files with 3 additions and 1 deletions
|
@ -151,8 +151,10 @@ void NativeWindow::CloseWebContents() {
|
||||||
FOR_EACH_OBSERVER(NativeWindowObserver,
|
FOR_EACH_OBSERVER(NativeWindowObserver,
|
||||||
observers_,
|
observers_,
|
||||||
WillCloseWindow(&prevent_default));
|
WillCloseWindow(&prevent_default));
|
||||||
if (prevent_default)
|
if (prevent_default) {
|
||||||
|
WindowList::WindowCloseCancelled(this);
|
||||||
return;
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
content::WebContents* web_contents(GetWebContents());
|
content::WebContents* web_contents(GetWebContents());
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue