| 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 |
| 11 namespace aura { | 11 namespace aura { |
| 12 class Window; | 12 class Window; |
| 13 } | 13 } |
| 14 | 14 |
| 15 namespace ui { | 15 namespace ui { |
| 16 class Layer; | 16 class Layer; |
| 17 } | 17 } |
| 18 | 18 |
| 19 namespace views { | 19 namespace views { |
| 20 class Widget; | 20 class Widget; |
| 21 } | 21 } |
| 22 | 22 |
| 23 namespace ash { | 23 namespace ash { |
| 24 | 24 |
| 25 namespace internal { | |
| 26 | |
| 27 // A background which gets created for a container |window| and which gets | 25 // A background which gets created for a container |window| and which gets |
| 28 // stacked behind the topmost window (within that container) covering the | 26 // stacked behind the topmost window (within that container) covering the |
| 29 // entire container. | 27 // entire container. |
| 30 class WorkspaceBackdropDelegate : public aura::WindowObserver, | 28 class WorkspaceBackdropDelegate : public aura::WindowObserver, |
| 31 public WorkspaceLayoutManagerDelegate { | 29 public WorkspaceLayoutManagerDelegate { |
| 32 public: | 30 public: |
| 33 explicit WorkspaceBackdropDelegate(aura::Window* container); | 31 explicit WorkspaceBackdropDelegate(aura::Window* container); |
| 34 virtual ~WorkspaceBackdropDelegate(); | 32 virtual ~WorkspaceBackdropDelegate(); |
| 35 | 33 |
| 36 // WindowObserver overrides: | 34 // WindowObserver overrides: |
| (...skipping 29 matching lines...) Expand all Loading... |
| 66 | 64 |
| 67 // The window which is being "maximized". | 65 // The window which is being "maximized". |
| 68 aura::Window* container_; | 66 aura::Window* container_; |
| 69 | 67 |
| 70 // If true, the |RestackOrHideWindow| might recurse. | 68 // If true, the |RestackOrHideWindow| might recurse. |
| 71 bool in_restacking_; | 69 bool in_restacking_; |
| 72 | 70 |
| 73 DISALLOW_COPY_AND_ASSIGN(WorkspaceBackdropDelegate); | 71 DISALLOW_COPY_AND_ASSIGN(WorkspaceBackdropDelegate); |
| 74 }; | 72 }; |
| 75 | 73 |
| 76 } // namespace internal | |
| 77 | |
| 78 } // namespace ash | 74 } // namespace ash |
| 79 | 75 |
| 80 #endif // ASH_WM_MAXIMIZE_MODE_WORKSPACE_BACKDROP_DELEGATE_H_ | 76 #endif // ASH_WM_MAXIMIZE_MODE_WORKSPACE_BACKDROP_DELEGATE_H_ |
| OLD | NEW |