summaryrefslogtreecommitdiffstats
path: root/ui/aura/window_observer.h
diff options
context:
space:
mode:
authorben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-02-01 04:06:35 +0000
committerben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-02-01 04:06:35 +0000
commit16690b0f338b90fa6365c60286af23678c29e9d6 (patch)
tree7da85cea2d095df6a83e71375b3083450adbd0cb /ui/aura/window_observer.h
parentcb288b63c936591fa6d78c8d5b54506775b8460e (diff)
downloadchromium_src-16690b0f338b90fa6365c60286af23678c29e9d6.zip
chromium_src-16690b0f338b90fa6365c60286af23678c29e9d6.tar.gz
chromium_src-16690b0f338b90fa6365c60286af23678c29e9d6.tar.bz2
Adds two new observer methods to allow code to be notified when a Window is added/removed from a RootWindow. This allows hierarchy-specific cleanup code to execute when a Window is removed rather than when it is destroyed, necessary for multiple root windows.
http://crbug.com/112131 TEST=see unittests Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=119976 Review URL: http://codereview.chromium.org/9315015 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@120025 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ui/aura/window_observer.h')
-rw-r--r--ui/aura/window_observer.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/ui/aura/window_observer.h b/ui/aura/window_observer.h
index a4f51ac..59360bf 100644
--- a/ui/aura/window_observer.h
+++ b/ui/aura/window_observer.h
@@ -58,6 +58,12 @@ class AURA_EXPORT WindowObserver {
// destructor). This is called after the window is removed from its parent.
virtual void OnWindowDestroyed(Window* window) {}
+ // Called when a Window has been added to a RootWindow.
+ virtual void OnWindowAddedToRootWindow(Window* window) {}
+
+ // Called when a Window is about to be removed from a RootWindow.
+ virtual void OnWindowRemovingFromRootWindow(Window* window) {}
+
protected:
virtual ~WindowObserver() {}
};