| 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/ash_export.h" | 8 #include "ash/ash_export.h" |
| 9 #include "ash/wm/workspace/workspace_layout_manager_delegate.h" | 9 #include "ash/wm/workspace/workspace_layout_manager_backdrop_delegate.h" |
| 10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
| 11 #include "base/macros.h" | 11 #include "base/macros.h" |
| 12 #include "ui/aura/window_observer.h" | 12 #include "ui/aura/window_observer.h" |
| 13 | 13 |
| 14 namespace aura { | 14 namespace aura { |
| 15 class Window; | 15 class Window; |
| 16 } | 16 } |
| 17 | 17 |
| 18 namespace ui { | 18 namespace ui { |
| 19 class Layer; | 19 class Layer; |
| 20 } | 20 } |
| 21 | 21 |
| 22 namespace views { | 22 namespace views { |
| 23 class Widget; | 23 class Widget; |
| 24 } | 24 } |
| 25 | 25 |
| 26 namespace ash { | 26 namespace ash { |
| 27 | 27 |
| 28 // A background which gets created for a container |window| and which gets | 28 // A background which gets created for a container |window| and which gets |
| 29 // stacked behind the topmost window (within that container) covering the | 29 // stacked behind the topmost window (within that container) covering the |
| 30 // entire container. | 30 // entire container. |
| 31 class ASH_EXPORT WorkspaceBackdropDelegate | 31 class ASH_EXPORT WorkspaceBackdropDelegate |
| 32 : public aura::WindowObserver, | 32 : public aura::WindowObserver, |
| 33 public NON_EXPORTED_BASE(WorkspaceLayoutManagerDelegate) { | 33 public WorkspaceLayoutManagerBackdropDelegate { |
| 34 public: | 34 public: |
| 35 explicit WorkspaceBackdropDelegate(aura::Window* container); | 35 explicit WorkspaceBackdropDelegate(aura::Window* container); |
| 36 ~WorkspaceBackdropDelegate() override; | 36 ~WorkspaceBackdropDelegate() override; |
| 37 | 37 |
| 38 // WindowObserver overrides: | 38 // WindowObserver overrides: |
| 39 void OnWindowBoundsChanged(aura::Window* window, | 39 void OnWindowBoundsChanged(aura::Window* window, |
| 40 const gfx::Rect& old_bounds, | 40 const gfx::Rect& old_bounds, |
| 41 const gfx::Rect& new_bounds) override; | 41 const gfx::Rect& new_bounds) override; |
| 42 | 42 |
| 43 // WorkspaceLayoutManagerDelegate overrides: | 43 // WorkspaceLayoutManagerBackdropDelegate overrides: |
| 44 void OnWindowAddedToLayout(aura::Window* child) override; | 44 void OnWindowAddedToLayout(aura::Window* child) override; |
| 45 void OnWindowRemovedFromLayout(aura::Window* child) override; | 45 void OnWindowRemovedFromLayout(aura::Window* child) override; |
| 46 void OnChildWindowVisibilityChanged(aura::Window* child, | 46 void OnChildWindowVisibilityChanged(aura::Window* child, |
| 47 bool visible) override; | 47 bool visible) override; |
| 48 void OnWindowStackingChanged(aura::Window* window) override; | 48 void OnWindowStackingChanged(aura::Window* window) override; |
| 49 void OnPostWindowStateTypeChange(wm::WindowState* window_state, | 49 void OnPostWindowStateTypeChange(wm::WindowState* window_state, |
| 50 wm::WindowStateType old_type) override; | 50 wm::WindowStateType old_type) override; |
| 51 void OnDisplayWorkAreaInsetsChanged() override; | 51 void OnDisplayWorkAreaInsetsChanged() override; |
| 52 | 52 |
| 53 private: | 53 private: |
| (...skipping 17 matching lines...) Expand all Loading... |
| 71 | 71 |
| 72 // If true, the |RestackOrHideWindow| might recurse. | 72 // If true, the |RestackOrHideWindow| might recurse. |
| 73 bool in_restacking_; | 73 bool in_restacking_; |
| 74 | 74 |
| 75 DISALLOW_COPY_AND_ASSIGN(WorkspaceBackdropDelegate); | 75 DISALLOW_COPY_AND_ASSIGN(WorkspaceBackdropDelegate); |
| 76 }; | 76 }; |
| 77 | 77 |
| 78 } // namespace ash | 78 } // namespace ash |
| 79 | 79 |
| 80 #endif // ASH_WM_MAXIMIZE_MODE_WORKSPACE_BACKDROP_DELEGATE_H_ | 80 #endif // ASH_WM_MAXIMIZE_MODE_WORKSPACE_BACKDROP_DELEGATE_H_ |
| OLD | NEW |