| 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);
|
|
|