Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(210)

Unified Diff: ui/aura/window_observer.h

Issue 9315015: Adds two new observer methods to allow code to be notified when a Window is added/removed from a ... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 8 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/aura/window.cc ('k') | ui/aura/window_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/aura/window_observer.h
===================================================================
--- ui/aura/window_observer.h (revision 119986)
+++ ui/aura/window_observer.h (working copy)
@@ -58,6 +58,12 @@
// 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() {}
};
« no previous file with comments | « ui/aura/window.cc ('k') | ui/aura/window_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698