| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_WM_WINDOW_UTIL_H_ | 5 #ifndef ASH_WM_WINDOW_UTIL_H_ |
| 6 #define ASH_WM_WINDOW_UTIL_H_ | 6 #define ASH_WM_WINDOW_UTIL_H_ |
| 7 | 7 |
| 8 #include "ash/ash_export.h" | 8 #include "ash/ash_export.h" |
| 9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
| 10 #include "ui/base/ui_base_types.h" | 10 #include "ui/base/ui_base_types.h" |
| (...skipping 29 matching lines...) Expand all Loading... |
| 40 // If you're looking for a function to get the activatable "top level" window, | 40 // If you're looking for a function to get the activatable "top level" window, |
| 41 // this is probably what you're looking for. | 41 // this is probably what you're looking for. |
| 42 ASH_EXPORT aura::Window* GetActivatableWindow(aura::Window* window); | 42 ASH_EXPORT aura::Window* GetActivatableWindow(aura::Window* window); |
| 43 | 43 |
| 44 // TODO(oshima): remove this. | 44 // TODO(oshima): remove this. |
| 45 ASH_EXPORT bool IsWindowMinimized(aura::Window* window); | 45 ASH_EXPORT bool IsWindowMinimized(aura::Window* window); |
| 46 | 46 |
| 47 // Moves the window to the center of the display. | 47 // Moves the window to the center of the display. |
| 48 ASH_EXPORT void CenterWindow(aura::Window* window); | 48 ASH_EXPORT void CenterWindow(aura::Window* window); |
| 49 | 49 |
| 50 // Change the availability of animation to the fullscreen of the |window|. | |
| 51 ASH_EXPORT void SetAnimateToFullscreen(aura::Window* window, bool animate); | |
| 52 | |
| 53 // Move the given bounds inside the given |visible_area| in parent coordinates, | 50 // Move the given bounds inside the given |visible_area| in parent coordinates, |
| 54 // including a safety margin given by |kMinimumOnScreenArea|. | 51 // including a safety margin given by |kMinimumOnScreenArea|. |
| 55 // This also ensures that the top of the bounds is visible. | 52 // This also ensures that the top of the bounds is visible. |
| 56 ASH_EXPORT void AdjustBoundsToEnsureMinimumWindowVisibility( | 53 ASH_EXPORT void AdjustBoundsToEnsureMinimumWindowVisibility( |
| 57 const gfx::Rect& visible_area, | 54 const gfx::Rect& visible_area, |
| 58 gfx::Rect* bounds); | 55 gfx::Rect* bounds); |
| 59 | 56 |
| 60 // Move the given bounds inside the given |visible_area| in parent coordinates, | 57 // Move the given bounds inside the given |visible_area| in parent coordinates, |
| 61 // including a safety margin given by |min_width| and |min_height|. | 58 // including a safety margin given by |min_width| and |min_height|. |
| 62 // This also ensures that the top of the bounds is visible. | 59 // This also ensures that the top of the bounds is visible. |
| (...skipping 13 matching lines...) Expand all Loading... |
| 76 aura::Window* child); | 73 aura::Window* child); |
| 77 | 74 |
| 78 // Changes the parent of all transient children of a |child| to |window|. | 75 // Changes the parent of all transient children of a |child| to |window|. |
| 79 void ReparentTransientChildrenOfChild(aura::Window* window, | 76 void ReparentTransientChildrenOfChild(aura::Window* window, |
| 80 aura::Window* child); | 77 aura::Window* child); |
| 81 | 78 |
| 82 } // namespace wm | 79 } // namespace wm |
| 83 } // namespace ash | 80 } // namespace ash |
| 84 | 81 |
| 85 #endif // ASH_WM_WINDOW_UTIL_H_ | 82 #endif // ASH_WM_WINDOW_UTIL_H_ |
| OLD | NEW |