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