| 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 #include "ui/aura/window.h" | 5 #include "ash/ash_export.h" |
| 6 |
| 7 namespace gfx { |
| 8 class Rect; |
| 9 } |
| 10 namespace aura { |
| 11 class RootWindow; |
| 12 class Window; |
| 13 } |
| 6 | 14 |
| 7 namespace ash { | 15 namespace ash { |
| 8 namespace internal { | 16 namespace internal { |
| 9 | 17 |
| 10 // Check if after removal or hide of the given |removed_window| an automated | 18 // Check if after removal or hide of the given |removed_window| an automated |
| 11 // desktop location management can be performed and rearrange accordingly. | 19 // desktop location management can be performed and rearrange accordingly. |
| 12 void RearrangeVisibleWindowOnHideOrRemove(const aura::Window* removed_window); | 20 void RearrangeVisibleWindowOnHideOrRemove(const aura::Window* removed_window); |
| 13 | 21 |
| 14 // Check if after insertion or showing of the given |added_window| an automated | 22 // Check if after insertion or showing of the given |added_window| an automated |
| 15 // desktop location management can be performed and rearrange accordingly. | 23 // desktop location management can be performed and rearrange accordingly. |
| 16 void RearrangeVisibleWindowOnShow(aura::Window* added_window); | 24 void RearrangeVisibleWindowOnShow(aura::Window* added_window); |
| 17 | 25 |
| 18 } // namespace internal | 26 } // namespace internal |
| 27 |
| 28 // Returns the top window used for automated windows location |
| 29 // management. |
| 30 // TODO(oshima): This is temporarily made public and exported until we |
| 31 // move the initial bounds logic in window_sizer_ash.cc into ash. |
| 32 ASH_EXPORT aura::Window* GetTopWindowForNewWindow( |
| 33 const aura::RootWindow* root_window); |
| 34 |
| 19 } // namespace ash | 35 } // namespace ash |
| 20 | |
| OLD | NEW |