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

Unified Diff: ui/aura/window.h

Issue 8700013: Release aura::Desktop event handler windows on detaching an ancestor window. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Use parent_ to access parent. Created 9 years, 1 month 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/desktop.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
diff --git a/ui/aura/window.h b/ui/aura/window.h
index 9e1f05f972ad8a6ee824148c4bb2035356b04a6e..8aa38fdf68cb201937b17e35b62f760c2dcc4bda 100644
--- a/ui/aura/window.h
+++ b/ui/aura/window.h
@@ -146,6 +146,9 @@ class AURA_EXPORT Window : public ui::LayerDelegate {
const Windows& children() const { return children_; }
+ // Returns true if this Window contains |other| somewhere in its children.
+ bool Contains(const Window* other) const;
+
// Adds or removes |child| as a transient child of this window. Transient
// children get the following behavior:
// . The transient parent destroys any transient children when it is
« no previous file with comments | « ui/aura/desktop.cc ('k') | ui/aura/window.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698