Index: ash/wm/system_modal_container_layout_manager.cc |
diff --git a/ash/wm/system_modal_container_layout_manager.cc b/ash/wm/system_modal_container_layout_manager.cc |
index 8c32215bd16d0cbbec387c48d8cff26da00e892a..85916d8a79dc697ab33056e3e9275169d0a8403b 100644 |
--- a/ash/wm/system_modal_container_layout_manager.cc |
+++ b/ash/wm/system_modal_container_layout_manager.cc |
@@ -46,7 +46,8 @@ const int kCenterPixelDelta = 32; |
SystemModalContainerLayoutManager::SystemModalContainerLayoutManager( |
aura::Window* container) |
- : container_(container), |
+ : SnapToPixelLayoutManager(container), |
+ container_(container), |
modal_background_(NULL) { |
} |
@@ -86,19 +87,10 @@ void SystemModalContainerLayoutManager::OnWillRemoveWindowFromLayout( |
RemoveModalWindow(child); |
} |
-void SystemModalContainerLayoutManager::OnWindowRemovedFromLayout( |
- aura::Window* child) { |
-} |
- |
-void SystemModalContainerLayoutManager::OnChildWindowVisibilityChanged( |
- aura::Window* child, |
- bool visible) { |
-} |
- |
void SystemModalContainerLayoutManager::SetChildBounds( |
aura::Window* child, |
const gfx::Rect& requested_bounds) { |
- SetChildBoundsDirect(child, requested_bounds); |
+ SnapToPixelLayoutManager::SetChildBounds(child, requested_bounds); |
child->SetProperty(kCenteredKey, DialogIsCentered(requested_bounds)); |
} |