OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef ASH_COMMON_WM_WINDOW_POSITIONING_UTILS_H_ | 5 #ifndef ASH_COMMON_WM_WINDOW_POSITIONING_UTILS_H_ |
6 #define ASH_COMMON_WM_WINDOW_POSITIONING_UTILS_H_ | 6 #define ASH_COMMON_WM_WINDOW_POSITIONING_UTILS_H_ |
7 | 7 |
8 #include "ash/ash_export.h" | 8 #include "ash/ash_export.h" |
9 | 9 |
10 namespace gfx { | 10 namespace gfx { |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 // Returns the bounds of a left snapped window with default width in parent | 44 // Returns the bounds of a left snapped window with default width in parent |
45 // coordinates. | 45 // coordinates. |
46 ASH_EXPORT gfx::Rect GetDefaultLeftSnappedWindowBoundsInParent( | 46 ASH_EXPORT gfx::Rect GetDefaultLeftSnappedWindowBoundsInParent( |
47 WmWindow* window); | 47 WmWindow* window); |
48 | 48 |
49 // Returns the bounds of a right snapped window with default width in parent | 49 // Returns the bounds of a right snapped window with default width in parent |
50 // coordinates. | 50 // coordinates. |
51 ASH_EXPORT gfx::Rect GetDefaultRightSnappedWindowBoundsInParent( | 51 ASH_EXPORT gfx::Rect GetDefaultRightSnappedWindowBoundsInParent( |
52 WmWindow* window); | 52 WmWindow* window); |
53 | 53 |
| 54 // Moves the window to the center of the display. |
| 55 ASH_EXPORT void CenterWindow(WmWindow* window); |
| 56 |
54 } // namespace wm | 57 } // namespace wm |
55 } // namespace ash | 58 } // namespace ash |
56 | 59 |
57 #endif // ASH_COMMON_WM_WINDOW_POSITIONING_UTILS_H_ | 60 #endif // ASH_COMMON_WM_WINDOW_POSITIONING_UTILS_H_ |
OLD | NEW |