| Index: ash/common/wm/system_modal_container_layout_manager.cc
|
| diff --git a/ash/common/wm/system_modal_container_layout_manager.cc b/ash/common/wm/system_modal_container_layout_manager.cc
|
| index 4185abf49d47879c1da3b2e1b42f03f23e5157c8..1a895ab5e5ab4bfd0e2eb5a79393e73392b1826c 100644
|
| --- a/ash/common/wm/system_modal_container_layout_manager.cc
|
| +++ b/ash/common/wm/system_modal_container_layout_manager.cc
|
| @@ -52,6 +52,21 @@ SystemModalContainerLayoutManager::~SystemModalContainerLayoutManager() {
|
| ////////////////////////////////////////////////////////////////////////////////
|
| // SystemModalContainerLayoutManager, WmLayoutManager implementation:
|
|
|
| +void SystemModalContainerLayoutManager::OnChildWindowVisibilityChanged(
|
| + WmWindow* window,
|
| + bool visible) {
|
| + if (GetModalType(window) != ui::MODAL_TYPE_SYSTEM)
|
| + return;
|
| +
|
| + if (window->IsVisible()) {
|
| + DCHECK(!base::ContainsValue(modal_windows_, window));
|
| + AddModalWindow(window);
|
| + } else {
|
| + if (RemoveModalWindow(window))
|
| + WmShell::Get()->OnModalWindowRemoved(window);
|
| + }
|
| +}
|
| +
|
| void SystemModalContainerLayoutManager::OnWindowResized() {
|
| PositionDialogsAfterWorkAreaResize();
|
| }
|
| @@ -110,20 +125,6 @@ void SystemModalContainerLayoutManager::OnWindowPropertyChanged(
|
| }
|
| }
|
|
|
| -void SystemModalContainerLayoutManager::OnWindowVisibilityChanged(
|
| - WmWindow* window,
|
| - bool visible) {
|
| - if (GetModalType(window) != ui::MODAL_TYPE_SYSTEM)
|
| - return;
|
| -
|
| - if (window->IsVisible()) {
|
| - AddModalWindow(window);
|
| - } else {
|
| - RemoveModalWindow(window);
|
| - WmShell::Get()->OnModalWindowRemoved(window);
|
| - }
|
| -}
|
| -
|
| ////////////////////////////////////////////////////////////////////////////////
|
| // SystemModalContainerLayoutManager, Keyboard::KeybaordControllerObserver
|
| // implementation:
|
|
|