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

Unified Diff: ui/aura/window.cc

Issue 8247012: Positions the launcher in the bottom left corner. Adds ShellDelegate (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix TestDesktopDelegate Created 9 years, 2 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
Index: ui/aura/window.cc
diff --git a/ui/aura/window.cc b/ui/aura/window.cc
index 07c48e64fc089fbc2a43102b87cbb791ca4dba68..f0a4fab9c9d5b937103b33008cdcba8136a51fa5 100644
--- a/ui/aura/window.cc
+++ b/ui/aura/window.cc
@@ -205,11 +205,15 @@ void Window::AddChild(Window* child) {
child->parent_ = this;
layer_->Add(child->layer_.get());
children_.push_back(child);
+ if (GetRoot())
+ Desktop::GetInstance()->WindowAdded(child);
}
void Window::RemoveChild(Window* child) {
Windows::iterator i = std::find(children_.begin(), children_.end(), child);
DCHECK(i != children_.end());
+ if (GetRoot())
+ Desktop::GetInstance()->WillRemoveWindow(child);
child->parent_ = NULL;
layer_->Remove(child->layer_.get());
children_.erase(i);

Powered by Google App Engine
This is Rietveld 408576698