Chromium Code Reviews| 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/wm_types.h" | 9 #include "ash/wm/wm_types.h" |
|
James Cook
2017/05/15 21:57:39
still needed?
oshima
2017/05/16 08:22:09
Done.
| |
| 10 | 10 |
| 11 namespace ash { | 11 namespace ash { |
| 12 | 12 |
| 13 class WmWindow; | 13 class WmWindow; |
| 14 | 14 |
| 15 namespace wm { | |
| 16 class WindowState; | |
| 17 } | |
| 18 | |
| 19 // A delegate which can be set to create and control a backdrop which gets | 15 // A delegate which can be set to create and control a backdrop which gets |
| 20 // placed below the top level window. | 16 // placed below the top level window. |
| 21 class ASH_EXPORT WorkspaceLayoutManagerBackdropDelegate { | 17 class ASH_EXPORT BackdropDelegate { |
| 22 public: | 18 public: |
| 23 virtual ~WorkspaceLayoutManagerBackdropDelegate() {} | 19 virtual ~BackdropDelegate() {} |
| 24 | 20 |
| 25 // A window got added to the layout. | 21 // A window got added to the layout. |
| 26 virtual void OnWindowAddedToLayout(WmWindow* child) = 0; | 22 virtual bool HasBackdrop(WmWindow* window) = 0; |
| 27 | |
| 28 // A window got removed from the layout. | |
| 29 virtual void OnWindowRemovedFromLayout(WmWindow* child) = 0; | |
| 30 | |
| 31 // The visibility of a window has changed. | |
| 32 virtual void OnChildWindowVisibilityChanged(WmWindow* child, | |
| 33 bool visible) = 0; | |
| 34 | |
| 35 // The stacking order of a window has changed. | |
| 36 virtual void OnWindowStackingChanged(WmWindow* window) = 0; | |
| 37 | |
| 38 // A window state type has changed. | |
| 39 virtual void OnPostWindowStateTypeChange(wm::WindowState* window_state, | |
| 40 wm::WindowStateType old_type) = 0; | |
| 41 }; | 23 }; |
|
James Cook
2017/05/15 21:57:39
Hooray, smaller delegate!
oshima
2017/05/16 08:22:09
I was actually wondering if I should just make it
James Cook
2017/05/16 15:12:14
Either way is fine with me.
| |
| 42 | 24 |
| 43 } // namespace ash | 25 } // namespace ash |
| 44 | 26 |
| 45 #endif // ASH_WM_WORKSPACE_WORKSPACE_LAYOUT_MANAGER_BACKDROP_DELEGATE_H_ | 27 #endif // ASH_WM_WORKSPACE_WORKSPACE_LAYOUT_MANAGER_BACKDROP_DELEGATE_H_ |
| OLD | NEW |