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> | 8 #include <stdint.h> |
9 | 9 |
10 #include "ash/ash_export.h" | 10 #include "ash/ash_export.h" |
11 #include "ash/wm/common/workspace/workspace_types.h" | 11 #include "ash/wm/common/workspace/workspace_types.h" |
12 #include "ui/views/widget/widget.h" | 12 #include "ui/views/widget/widget.h" |
13 | 13 |
14 namespace ash { | 14 namespace ash { |
| 15 |
| 16 class AlwaysOnTopController; |
| 17 |
15 namespace wm { | 18 namespace wm { |
16 | 19 |
17 class WmGlobals; | 20 class WmGlobals; |
18 class WmRootWindowControllerObserver; | 21 class WmRootWindowControllerObserver; |
19 class WmShelf; | 22 class WmShelf; |
20 class WmWindow; | 23 class WmWindow; |
21 | 24 |
22 // Provides state associated with a root of a window hierarchy. | 25 // Provides state associated with a root of a window hierarchy. |
23 class ASH_EXPORT WmRootWindowController { | 26 class ASH_EXPORT WmRootWindowController { |
24 public: | 27 public: |
25 virtual ~WmRootWindowController() {} | 28 virtual ~WmRootWindowController() {} |
26 | 29 |
27 static WmRootWindowController* GetWithDisplayId(int64_t id); | 30 static WmRootWindowController* GetWithDisplayId(int64_t id); |
28 | 31 |
29 virtual bool HasShelf() = 0; | 32 virtual bool HasShelf() = 0; |
30 | 33 |
31 virtual WmGlobals* GetGlobals() = 0; | 34 virtual WmGlobals* GetGlobals() = 0; |
32 | 35 |
33 virtual WorkspaceWindowState GetWorkspaceWindowState() = 0; | 36 virtual WorkspaceWindowState GetWorkspaceWindowState() = 0; |
34 | 37 |
| 38 virtual AlwaysOnTopController* GetAlwaysOnTopController() = 0; |
| 39 |
35 virtual WmShelf* GetShelf() = 0; | 40 virtual WmShelf* GetShelf() = 0; |
36 | 41 |
37 // Returns the window associated with this WmRootWindowController. | 42 // Returns the window associated with this WmRootWindowController. |
38 virtual WmWindow* GetWindow() = 0; | 43 virtual WmWindow* GetWindow() = 0; |
39 | 44 |
40 // Configures |init_params| prior to initializing |widget|. | 45 // Configures |init_params| prior to initializing |widget|. |
41 // |shell_container_id| is the id of the container to parent |widget| to. | 46 // |shell_container_id| is the id of the container to parent |widget| to. |
42 virtual void ConfigureWidgetInitParamsForContainer( | 47 virtual void ConfigureWidgetInitParamsForContainer( |
43 views::Widget* widget, | 48 views::Widget* widget, |
44 int shell_container_id, | 49 int shell_container_id, |
45 views::Widget::InitParams* init_params) = 0; | 50 views::Widget::InitParams* init_params) = 0; |
46 | 51 |
47 virtual void AddObserver(WmRootWindowControllerObserver* observer) = 0; | 52 virtual void AddObserver(WmRootWindowControllerObserver* observer) = 0; |
48 virtual void RemoveObserver(WmRootWindowControllerObserver* observer) = 0; | 53 virtual void RemoveObserver(WmRootWindowControllerObserver* observer) = 0; |
49 }; | 54 }; |
50 | 55 |
51 } // namespace wm | 56 } // namespace wm |
52 } // namespace ash | 57 } // namespace ash |
53 | 58 |
54 #endif // ASH_WM_COMMON_WM_ROOT_CONTROLLER_H_ | 59 #endif // ASH_WM_COMMON_WM_ROOT_CONTROLLER_H_ |
OLD | NEW |