| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_MAXIMIZE_MODE_WORKSPACE_BACKDROP_DELEGATE_H_ | 5 #ifndef ASH_WM_MAXIMIZE_MODE_WORKSPACE_BACKDROP_DELEGATE_H_ |
| 6 #define ASH_WM_MAXIMIZE_MODE_WORKSPACE_BACKDROP_DELEGATE_H_ | 6 #define ASH_WM_MAXIMIZE_MODE_WORKSPACE_BACKDROP_DELEGATE_H_ |
| 7 | 7 |
| 8 #include "ash/wm/workspace/workspace_layout_manager_delegate.h" | 8 #include "ash/wm/workspace/workspace_layout_manager_delegate.h" |
| 9 #include "ui/aura/window_observer.h" | 9 #include "ui/aura/window_observer.h" |
| 10 | 10 |
| (...skipping 27 matching lines...) Expand all Loading... |
| 38 | 38 |
| 39 // WorkspaceLayoutManagerDelegate overrides: | 39 // WorkspaceLayoutManagerDelegate overrides: |
| 40 virtual void OnWindowAddedToLayout(aura::Window* child) OVERRIDE; | 40 virtual void OnWindowAddedToLayout(aura::Window* child) OVERRIDE; |
| 41 virtual void OnWindowRemovedFromLayout(aura::Window* child) OVERRIDE; | 41 virtual void OnWindowRemovedFromLayout(aura::Window* child) OVERRIDE; |
| 42 virtual void OnChildWindowVisibilityChanged(aura::Window* child, | 42 virtual void OnChildWindowVisibilityChanged(aura::Window* child, |
| 43 bool visible) OVERRIDE; | 43 bool visible) OVERRIDE; |
| 44 virtual void OnWindowStackingChanged(aura::Window* window) OVERRIDE; | 44 virtual void OnWindowStackingChanged(aura::Window* window) OVERRIDE; |
| 45 virtual void OnPostWindowStateTypeChange( | 45 virtual void OnPostWindowStateTypeChange( |
| 46 wm::WindowState* window_state, | 46 wm::WindowState* window_state, |
| 47 wm::WindowStateType old_type) OVERRIDE; | 47 wm::WindowStateType old_type) OVERRIDE; |
| 48 virtual void OnDisplayWorkAreaInsetsChanged() OVERRIDE; |
| 48 | 49 |
| 49 private: | 50 private: |
| 50 // Restack the backdrop relatively to the other windows in the container. | 51 // Restack the backdrop relatively to the other windows in the container. |
| 51 void RestackBackdrop(); | 52 void RestackBackdrop(); |
| 52 | 53 |
| 53 // Returns the current visible top level window in the container. | 54 // Returns the current visible top level window in the container. |
| 54 aura::Window* GetCurrentTopWindow(); | 55 aura::Window* GetCurrentTopWindow(); |
| 55 | 56 |
| 56 // Position & size the background over the container window. | 57 // Position & size the background over the container window. |
| 57 void AdjustToContainerBounds(); | 58 void AdjustToContainerBounds(); |
| 58 | 59 |
| 59 // Show the overlay. | 60 // Show the overlay. |
| 60 void Show(); | 61 void Show(); |
| 61 | 62 |
| 62 // The background which covers the rest of the screen. | 63 // The background which covers the rest of the screen. |
| 63 views::Widget* background_; | 64 views::Widget* background_; |
| 64 | 65 |
| 65 // The window which is being "maximized". | 66 // The window which is being "maximized". |
| 66 aura::Window* container_; | 67 aura::Window* container_; |
| 67 | 68 |
| 68 // If true, the |RestackOrHideWindow| might recurse. | 69 // If true, the |RestackOrHideWindow| might recurse. |
| 69 bool in_restacking_; | 70 bool in_restacking_; |
| 70 | 71 |
| 71 DISALLOW_COPY_AND_ASSIGN(WorkspaceBackdropDelegate); | 72 DISALLOW_COPY_AND_ASSIGN(WorkspaceBackdropDelegate); |
| 72 }; | 73 }; |
| 73 | 74 |
| 74 } // namespace ash | 75 } // namespace ash |
| 75 | 76 |
| 76 #endif // ASH_WM_MAXIMIZE_MODE_WORKSPACE_BACKDROP_DELEGATE_H_ | 77 #endif // ASH_WM_MAXIMIZE_MODE_WORKSPACE_BACKDROP_DELEGATE_H_ |
| OLD | NEW |