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

Unified Diff: ui/aura/window.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/root_window.cc ('k') | ui/aura/window.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/aura/window.h
===================================================================
--- ui/aura/window.h (revision 119986)
+++ ui/aura/window.h (working copy)
@@ -293,16 +293,6 @@
// propagation for any windows behind it in the z-order.
bool StopsEventPropagation() const;
- protected:
- // Called when the |window| is being detached from the root window
- // by being removed from its parent. It is called before |parent_| is
- // set to NULL.
- virtual void OnWindowDetachingFromRootWindow(aura::Window* window);
-
- // Called when the |window| is attached to the root window by being added
- // to its parent.
- virtual void OnWindowAttachedToRootWindow(aura::Window* window);
-
private:
friend class LayoutManager;
@@ -332,6 +322,11 @@
// Called when this window's stacking order among its siblings is changed.
void OnStackingChanged();
+ // Notifies observers registered with this Window (and its subtree) when the
+ // Window has been added or is about to be removed from a RootWindow.
+ void NotifyAddedToRootWindow();
+ void NotifyRemovingFromRootWindow();
+
// Overridden from ui::LayerDelegate:
virtual void OnPaintLayer(gfx::Canvas* canvas) OVERRIDE;
« no previous file with comments | « ui/aura/root_window.cc ('k') | ui/aura/window.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698