| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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_COMMON_WM_ROOT_CONTROLLER_H_ | 5 #ifndef ASH_WM_COMMON_WM_ROOT_CONTROLLER_H_ |
| 6 #define ASH_WM_COMMON_WM_ROOT_CONTROLLER_H_ | 6 #define ASH_WM_COMMON_WM_ROOT_CONTROLLER_H_ |
| 7 | 7 |
| 8 #include <stdint.h> |
| 9 |
| 8 #include "ash/ash_export.h" | 10 #include "ash/ash_export.h" |
| 9 #include "ash/wm/common/workspace/workspace_types.h" | 11 #include "ash/wm/common/workspace/workspace_types.h" |
| 10 | 12 |
| 11 namespace ash { | 13 namespace ash { |
| 12 namespace wm { | 14 namespace wm { |
| 13 | 15 |
| 14 class WmGlobals; | 16 class WmGlobals; |
| 15 class WmWindow; | 17 class WmWindow; |
| 16 | 18 |
| 19 // Provides state associated with a root of a window hierarchy. |
| 17 class ASH_EXPORT WmRootWindowController { | 20 class ASH_EXPORT WmRootWindowController { |
| 18 public: | 21 public: |
| 19 virtual ~WmRootWindowController() {} | 22 virtual ~WmRootWindowController() {} |
| 20 | 23 |
| 24 static WmRootWindowController* GetWithDisplayId(int64_t id); |
| 25 |
| 21 virtual bool HasShelf() = 0; | 26 virtual bool HasShelf() = 0; |
| 22 | 27 |
| 23 virtual WmGlobals* GetGlobals() = 0; | 28 virtual WmGlobals* GetGlobals() = 0; |
| 24 | 29 |
| 25 virtual WorkspaceWindowState GetWorkspaceWindowState() = 0; | 30 virtual WorkspaceWindowState GetWorkspaceWindowState() = 0; |
| 31 |
| 32 // Returns the window associated with this WmRootWindowController. |
| 33 virtual WmWindow* GetWindow() = 0; |
| 26 }; | 34 }; |
| 27 | 35 |
| 28 } // namespace wm | 36 } // namespace wm |
| 29 } // namespace ash | 37 } // namespace ash |
| 30 | 38 |
| 31 #endif // ASH_WM_COMMON_WM_ROOT_CONTROLLER_H_ | 39 #endif // ASH_WM_COMMON_WM_ROOT_CONTROLLER_H_ |
| OLD | NEW |