| 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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 42 virtual void OnWindowResized() OVERRIDE; | 42 virtual void OnWindowResized() OVERRIDE; |
| 43 virtual void OnWindowAddedToLayout(aura::Window* child) OVERRIDE; | 43 virtual void OnWindowAddedToLayout(aura::Window* child) OVERRIDE; |
| 44 virtual void OnWillRemoveWindowFromLayout(aura::Window* child) OVERRIDE; | 44 virtual void OnWillRemoveWindowFromLayout(aura::Window* child) OVERRIDE; |
| 45 virtual void OnChildWindowVisibilityChanged(aura::Window* child, | 45 virtual void OnChildWindowVisibilityChanged(aura::Window* child, |
| 46 bool visible) OVERRIDE; | 46 bool visible) OVERRIDE; |
| 47 virtual void SetChildBounds(aura::Window* child, | 47 virtual void SetChildBounds(aura::Window* child, |
| 48 const gfx::Rect& requested_bounds) OVERRIDE; | 48 const gfx::Rect& requested_bounds) OVERRIDE; |
| 49 | 49 |
| 50 // RootWindowObserver overrides: | 50 // RootWindowObserver overrides: |
| 51 virtual void OnRootWindowResized(const gfx::Size& new_size) OVERRIDE; | 51 virtual void OnRootWindowResized(const gfx::Size& new_size) OVERRIDE; |
| 52 virtual void OnScreenWorkAreaInsetsChanged() OVERRIDE; | 52 virtual void OnMonitorWorkAreaInsetsChanged() OVERRIDE; |
| 53 | 53 |
| 54 // WindowObserver overrides: | 54 // WindowObserver overrides: |
| 55 virtual void OnWindowPropertyChanged(aura::Window* window, | 55 virtual void OnWindowPropertyChanged(aura::Window* window, |
| 56 const void* key, | 56 const void* key, |
| 57 intptr_t old) OVERRIDE; | 57 intptr_t old) OVERRIDE; |
| 58 | 58 |
| 59 private: | 59 private: |
| 60 // Update window bounds based on a change in show state. | 60 // Update window bounds based on a change in show state. |
| 61 void UpdateBoundsFromShowState(aura::Window* window); | 61 void UpdateBoundsFromShowState(aura::Window* window); |
| 62 | 62 |
| 63 // Adjusts the window sizes when the screen changes its size or its | 63 // Adjusts the window sizes when the screen changes its size or its |
| 64 // work area insets. | 64 // work area insets. |
| 65 void AdjustWindowSizesForScreenChange(); | 65 void AdjustWindowSizesForScreenChange(); |
| 66 | 66 |
| 67 // Set of windows we're listening to. | 67 // Set of windows we're listening to. |
| 68 WindowSet windows_; | 68 WindowSet windows_; |
| 69 | 69 |
| 70 DISALLOW_COPY_AND_ASSIGN(BaseLayoutManager); | 70 DISALLOW_COPY_AND_ASSIGN(BaseLayoutManager); |
| 71 }; | 71 }; |
| 72 | 72 |
| 73 } // namespace internal | 73 } // namespace internal |
| 74 } // namespace ash | 74 } // namespace ash |
| 75 | 75 |
| 76 #endif // ASH_WM_BASE_LAYOUT_MANAGER_H_ | 76 #endif // ASH_WM_BASE_LAYOUT_MANAGER_H_ |
| OLD | NEW |