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