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