| 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, bool animate); | 75 void UpdateBoundsFromShowState(aura::Window* window); |
| 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); | |
| 81 | 76 |
| 82 // Adjusts the window sizes when the screen changes its size or its | 77 // Adjusts the window sizes when the screen changes its size or its |
| 83 // work area insets. | 78 // work area insets. |
| 84 void AdjustWindowSizesForScreenChange(); | 79 void AdjustWindowSizesForScreenChange(); |
| 85 | 80 |
| 86 // Set of windows we're listening to. | 81 // Set of windows we're listening to. |
| 87 WindowSet windows_; | 82 WindowSet windows_; |
| 88 | 83 |
| 89 aura::RootWindow* root_window_; | 84 aura::RootWindow* root_window_; |
| 90 | 85 |
| 91 DISALLOW_COPY_AND_ASSIGN(BaseLayoutManager); | 86 DISALLOW_COPY_AND_ASSIGN(BaseLayoutManager); |
| 92 }; | 87 }; |
| 93 | 88 |
| 94 } // namespace internal | 89 } // namespace internal |
| 95 } // namespace ash | 90 } // namespace ash |
| 96 | 91 |
| 97 #endif // ASH_WM_BASE_LAYOUT_MANAGER_H_ | 92 #endif // ASH_WM_BASE_LAYOUT_MANAGER_H_ |
| OLD | NEW |