| Index: ash/common/wm/window_positioning_utils.cc
|
| diff --git a/ash/common/wm/window_positioning_utils.cc b/ash/common/wm/window_positioning_utils.cc
|
| index 61dbf8f333268eef944b5ee0b02826b846d336a6..37d36061ba0f62b06aad2a20d8ec9acd0eb6699c 100644
|
| --- a/ash/common/wm/window_positioning_utils.cc
|
| +++ b/ash/common/wm/window_positioning_utils.cc
|
| @@ -6,6 +6,8 @@
|
|
|
| #include <algorithm>
|
|
|
| +#include "ash/common/wm/window_state.h"
|
| +#include "ash/common/wm/wm_event.h"
|
| #include "ash/common/wm/wm_screen_util.h"
|
| #include "ash/common/wm_window.h"
|
| #include "ui/gfx/geometry/rect.h"
|
| @@ -77,5 +79,10 @@ gfx::Rect GetDefaultRightSnappedWindowBoundsInParent(WmWindow* window) {
|
| width, work_area_in_parent.height());
|
| }
|
|
|
| +void CenterWindow(WmWindow* window) {
|
| + WMEvent event(WM_EVENT_CENTER);
|
| + window->GetWindowState()->OnWMEvent(&event);
|
| +}
|
| +
|
| } // namespace wm
|
| } // namespace ash
|
|
|