Add NativeWindowObserver::OnCloseButtonClicked

This commit is contained in:
Cheng Zhao 2018-02-22 16:15:21 +09:00
parent a25b49a127
commit 66fab65a1a
7 changed files with 35 additions and 13 deletions

View file

@ -37,6 +37,9 @@ class NativeWindowObserver {
// Called before the native window object is going to be destroyed.
virtual void WillDestroyNativeObject() {}
// Called when closed button is clicked.
virtual void OnCloseButtonClicked(bool* prevent_default) {}
// Called when the window is closed.
virtual void OnWindowClosed() {}