| Index: ash/wm/panels/panel_layout_manager.cc
|
| ===================================================================
|
| --- ash/wm/panels/panel_layout_manager.cc (revision 262842)
|
| +++ ash/wm/panels/panel_layout_manager.cc (working copy)
|
| @@ -370,7 +370,6 @@
|
| panel_info.slide_in = true;
|
| }
|
| panel_windows_.push_back(panel_info);
|
| - child->AddObserver(this);
|
| wm::GetWindowState(child)->AddObserver(this);
|
| Relayout();
|
| }
|
| @@ -387,7 +386,6 @@
|
| delete found->callout_widget;
|
| panel_windows_.erase(found);
|
| }
|
| - child->RemoveObserver(this);
|
| wm::GetWindowState(child)->RemoveObserver(this);
|
|
|
| if (dragged_panel_ == child)
|
| @@ -401,6 +399,8 @@
|
|
|
| void PanelLayoutManager::OnChildWindowVisibilityChanged(aura::Window* child,
|
| bool visible) {
|
| + if (visible)
|
| + wm::GetWindowState(child)->Restore();
|
| Relayout();
|
| }
|
|
|
| @@ -480,12 +480,6 @@
|
| RestorePanel(window_state->window());
|
| }
|
|
|
| -void PanelLayoutManager::OnWindowVisibilityChanged(
|
| - aura::Window* window, bool visible) {
|
| - if (visible)
|
| - wm::GetWindowState(window)->Restore();
|
| -}
|
| -
|
| ////////////////////////////////////////////////////////////////////////////////
|
| // PanelLayoutManager, aura::client::ActivationChangeObserver implementation:
|
|
|
|
|