| 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_WORKSPACE_WORKSPACE_LAYOUT_MANAGER_DELEGATE_H_ | 5 #ifndef ASH_WM_WORKSPACE_WORKSPACE_LAYOUT_MANAGER_DELEGATE_H_ |
| 6 #define ASH_WM_WORKSPACE_WORKSPACE_LAYOUT_MANAGER_DELEGATE_H_ | 6 #define ASH_WM_WORKSPACE_WORKSPACE_LAYOUT_MANAGER_DELEGATE_H_ |
| 7 | 7 |
| 8 #include "ash/wm/wm_types.h" | 8 #include "ash/wm/wm_types.h" |
| 9 | 9 |
| 10 namespace aura { | 10 namespace aura { |
| 11 class Window; | 11 class Window; |
| 12 } | 12 } |
| 13 | 13 |
| 14 namespace ash { | 14 namespace ash { |
| 15 namespace wm { | 15 namespace wm { |
| 16 class WindowState; | 16 class WindowState; |
| 17 } | 17 } |
| 18 | 18 |
| 19 namespace internal { | |
| 20 | |
| 21 // A delegate which can be set to create and control a backdrop which gets | 19 // A delegate which can be set to create and control a backdrop which gets |
| 22 // placed below the top level window. | 20 // placed below the top level window. |
| 23 class WorkspaceLayoutManagerDelegate { | 21 class WorkspaceLayoutManagerDelegate { |
| 24 public: | 22 public: |
| 25 WorkspaceLayoutManagerDelegate() {} | 23 WorkspaceLayoutManagerDelegate() {} |
| 26 virtual ~WorkspaceLayoutManagerDelegate() {} | 24 virtual ~WorkspaceLayoutManagerDelegate() {} |
| 27 | 25 |
| 28 // A window got added to the layout. | 26 // A window got added to the layout. |
| 29 virtual void OnWindowAddedToLayout(aura::Window* child) = 0; | 27 virtual void OnWindowAddedToLayout(aura::Window* child) = 0; |
| 30 | 28 |
| 31 // A window got removed from the layout. | 29 // A window got removed from the layout. |
| 32 virtual void OnWindowRemovedFromLayout(aura::Window* child) = 0; | 30 virtual void OnWindowRemovedFromLayout(aura::Window* child) = 0; |
| 33 | 31 |
| 34 // The visibility of a window has changed. | 32 // The visibility of a window has changed. |
| 35 virtual void OnChildWindowVisibilityChanged(aura::Window* child, | 33 virtual void OnChildWindowVisibilityChanged(aura::Window* child, |
| 36 bool visible) = 0; | 34 bool visible) = 0; |
| 37 | 35 |
| 38 // The stacking order of a window has changed. | 36 // The stacking order of a window has changed. |
| 39 virtual void OnWindowStackingChanged(aura::Window* window) = 0; | 37 virtual void OnWindowStackingChanged(aura::Window* window) = 0; |
| 40 | 38 |
| 41 // A window state type has changed. | 39 // A window state type has changed. |
| 42 virtual void OnPostWindowStateTypeChange(wm::WindowState* window_state, | 40 virtual void OnPostWindowStateTypeChange(wm::WindowState* window_state, |
| 43 wm::WindowStateType old_type) = 0; | 41 wm::WindowStateType old_type) = 0; |
| 44 }; | 42 }; |
| 45 | 43 |
| 46 } // namespace internal | |
| 47 } // namespace ash | 44 } // namespace ash |
| 48 | 45 |
| 49 #endif // ASH_WM_WORKSPACE_WORKSPACE_LAYOUT_MANAGER_DELEGATE_H_ | 46 #endif // ASH_WM_WORKSPACE_WORKSPACE_LAYOUT_MANAGER_DELEGATE_H_ |
| OLD | NEW |