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