Index: ash/wm/window_util.cc |
=================================================================== |
--- ash/wm/window_util.cc (revision 133983) |
+++ ash/wm/window_util.cc (working copy) |
@@ -8,9 +8,6 @@ |
#include "ash/wm/activation_controller.h" |
#include "ui/aura/client/activation_client.h" |
#include "ui/aura/client/aura_constants.h" |
-#include "ui/aura/env.h" |
-#include "ui/aura/monitor.h" |
-#include "ui/aura/monitor_manager.h" |
#include "ui/aura/root_window.h" |
#include "ui/aura/window.h" |
#include "ui/aura/window_property.h" |
@@ -99,13 +96,5 @@ |
window->SetProperty(aura::client::kShowStateKey, ui::SHOW_STATE_NORMAL); |
} |
-void CenterWindow(aura::Window* window) { |
- const aura::Monitor* monitor = aura::Env::GetInstance()->monitor_manager()-> |
- GetMonitorNearestWindow(window); |
- gfx::Rect center = monitor->GetWorkAreaBounds().Center( |
- window->bounds().size()); |
- window->SetBounds(center); |
-} |
- |
} // namespace wm |
} // namespace ash |