diff options
Diffstat (limited to 'chrome/views/window_delegate.h')
-rw-r--r-- | chrome/views/window_delegate.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/chrome/views/window_delegate.h b/chrome/views/window_delegate.h index 7d0cb44..065f684 100644 --- a/chrome/views/window_delegate.h +++ b/chrome/views/window_delegate.h @@ -113,7 +113,7 @@ class WindowDelegate { bool maximized, bool always_on_top); - // Retreives the window's bounds, maximized and always-on-top states. By + // Retrieves the window's bounds, maximized and always-on-top states. By // default, this uses the process' local state keyed by window name (See // GetWindowName above). This behavior can be overridden to provide // additional functionality. @@ -124,6 +124,11 @@ class WindowDelegate { // Called when the window closes. virtual void WindowClosing() { } + // Called when the window is destroyed. No events must be sent or received + // after this point. The delegate can use this opportunity to delete itself at + // this time if necessary. + virtual void DeleteDelegate() { } + // Returns the View that is contained within this Window. virtual View* GetContentsView() { return NULL; |