| 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_BASE_LAYOUT_MANAGER_H_ | 5 #ifndef ASH_WM_BASE_LAYOUT_MANAGER_H_ |
| 6 #define ASH_WM_BASE_LAYOUT_MANAGER_H_ | 6 #define ASH_WM_BASE_LAYOUT_MANAGER_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <set> | 9 #include <set> |
| 10 | 10 |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 65 intptr_t old) OVERRIDE; | 65 intptr_t old) OVERRIDE; |
| 66 virtual void OnWindowDestroying(aura::Window* window) OVERRIDE; | 66 virtual void OnWindowDestroying(aura::Window* window) OVERRIDE; |
| 67 | 67 |
| 68 protected: | 68 protected: |
| 69 // Invoked from OnWindowPropertyChanged() if |kShowStateKey| changes. | 69 // Invoked from OnWindowPropertyChanged() if |kShowStateKey| changes. |
| 70 virtual void ShowStateChanged(aura::Window* window, | 70 virtual void ShowStateChanged(aura::Window* window, |
| 71 ui::WindowShowState last_show_state); | 71 ui::WindowShowState last_show_state); |
| 72 | 72 |
| 73 private: | 73 private: |
| 74 // Update window bounds based on a change in show state. | 74 // Update window bounds based on a change in show state. |
| 75 void UpdateBoundsFromShowState(aura::Window* window); | 75 void UpdateBoundsFromShowState(aura::Window* window, bool animate); |
| 76 |
| 77 // Updates window bounds and animates when requested and possible. |
| 78 void MaybeAnimateToBounds(aura::Window* window, |
| 79 bool animate, |
| 80 const gfx::Rect& new_bounds); |
| 76 | 81 |
| 77 // Adjusts the window sizes when the screen changes its size or its | 82 // Adjusts the window sizes when the screen changes its size or its |
| 78 // work area insets. | 83 // work area insets. |
| 79 void AdjustWindowSizesForScreenChange(); | 84 void AdjustWindowSizesForScreenChange(); |
| 80 | 85 |
| 81 // Set of windows we're listening to. | 86 // Set of windows we're listening to. |
| 82 WindowSet windows_; | 87 WindowSet windows_; |
| 83 | 88 |
| 84 aura::RootWindow* root_window_; | 89 aura::RootWindow* root_window_; |
| 85 | 90 |
| 86 DISALLOW_COPY_AND_ASSIGN(BaseLayoutManager); | 91 DISALLOW_COPY_AND_ASSIGN(BaseLayoutManager); |
| 87 }; | 92 }; |
| 88 | 93 |
| 89 } // namespace internal | 94 } // namespace internal |
| 90 } // namespace ash | 95 } // namespace ash |
| 91 | 96 |
| 92 #endif // ASH_WM_BASE_LAYOUT_MANAGER_H_ | 97 #endif // ASH_WM_BASE_LAYOUT_MANAGER_H_ |
| OLD | NEW |