Chromium Code Reviews| Index: ash/wm/window_util.h |
| diff --git a/ash/wm/window_util.h b/ash/wm/window_util.h |
| index fd77505c40065f38c76bb888d5aa7414abb2f40d..97ff6327296b73c877c02cd81010ee7a29ee1ed1 100644 |
| --- a/ash/wm/window_util.h |
| +++ b/ash/wm/window_util.h |
| @@ -15,6 +15,7 @@ class Window; |
| namespace gfx { |
| class Rect; |
| +class Size; |
| } |
| namespace ui { |
| @@ -47,6 +48,10 @@ ASH_EXPORT bool IsWindowMinimized(aura::Window* window); |
| // Moves the window to the center of the display. |
| ASH_EXPORT void CenterWindow(aura::Window* window); |
| +// Adjust |bounds| so that the size does not exceeds |max_size|. |
|
pkotwicz
2014/02/13 02:26:16
Nit: Adjust -> Adjusts
exceeds -> exceed
|
| +ASH_EXPORT void AdjustBoundsSmallerThan(const gfx::Size& max_size, |
| + gfx::Rect* bounds); |
| + |
| // Move the given bounds inside the given |visible_area| in parent coordinates, |
| // including a safety margin given by |kMinimumOnScreenArea|. |
| // This also ensures that the top of the bounds is visible. |