diff options
author | oshima@google.com <oshima@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-11-10 17:06:27 +0000 |
---|---|---|
committer | oshima@google.com <oshima@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-11-10 17:06:27 +0000 |
commit | ca163e027cdc3a8c8b8883323de2378e00acad6c (patch) | |
tree | fa6ed1d41dcc85de620ca9425ba6403ad1578edb /ui/aura/window.h | |
parent | 9509f619e4b7320591f4181104a9b714fe50fb09 (diff) | |
download | chromium_src-ca163e027cdc3a8c8b8883323de2378e00acad6c.zip chromium_src-ca163e027cdc3a8c8b8883323de2378e00acad6c.tar.gz chromium_src-ca163e027cdc3a8c8b8883323de2378e00acad6c.tar.bz2 |
Reset capture/focus window when the window is detachd from desktop
This was causing crash in a couple of browser tests because the desktop was accessing
the focused_window which has already been deleted.
BUG=103490
TEST=added new test cases to window_unittests
Review URL: http://codereview.chromium.org/8510020
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@109443 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ui/aura/window.h')
-rw-r--r-- | ui/aura/window.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ui/aura/window.h b/ui/aura/window.h index 7c49d77..f66c04b 100644 --- a/ui/aura/window.h +++ b/ui/aura/window.h @@ -278,6 +278,10 @@ class AURA_EXPORT Window : public ui::LayerDelegate { // Returns the desktop or NULL if we aren't yet attached to a desktop. virtual Desktop* GetDesktop(); + // Called when the |window| is detached from the desktop by being + // removed from its parent. + virtual void WindowDetachedFromDesktop(aura::Window* window); + private: friend class LayoutManager; |