Add NativeWindowObserver::OnCloseButtonClicked
This commit is contained in:
parent
a25b49a127
commit
66fab65a1a
7 changed files with 35 additions and 13 deletions
|
@ -124,7 +124,8 @@ class NativeWindowClientView : public views::ClientView {
|
|||
virtual ~NativeWindowClientView() {}
|
||||
|
||||
bool CanClose() override {
|
||||
static_cast<NativeWindowViews*>(contents_view())->RequestToClosePage();
|
||||
static_cast<NativeWindowViews*>(contents_view())->
|
||||
NotifyWindowCloseButtonClicked();
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue