| 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 | 13 |
| 13 namespace ash { | 14 namespace ash { |
| 14 namespace wm { | 15 namespace wm { |
| 15 | 16 |
| 16 class WmGlobals; | 17 class WmGlobals; |
| 17 class WmWindow; | 18 class WmWindow; |
| 18 | 19 |
| 19 // Provides state associated with a root of a window hierarchy. | 20 // Provides state associated with a root of a window hierarchy. |
| 20 class ASH_EXPORT WmRootWindowController { | 21 class ASH_EXPORT WmRootWindowController { |
| 21 public: | 22 public: |
| 22 virtual ~WmRootWindowController() {} | 23 virtual ~WmRootWindowController() {} |
| 23 | 24 |
| 24 static WmRootWindowController* GetWithDisplayId(int64_t id); | 25 static WmRootWindowController* GetWithDisplayId(int64_t id); |
| 25 | 26 |
| 26 virtual bool HasShelf() = 0; | 27 virtual bool HasShelf() = 0; |
| 27 | 28 |
| 28 virtual WmGlobals* GetGlobals() = 0; | 29 virtual WmGlobals* GetGlobals() = 0; |
| 29 | 30 |
| 30 virtual WorkspaceWindowState GetWorkspaceWindowState() = 0; | 31 virtual WorkspaceWindowState GetWorkspaceWindowState() = 0; |
| 31 | 32 |
| 32 // Returns the window associated with this WmRootWindowController. | 33 // Returns the window associated with this WmRootWindowController. |
| 33 virtual WmWindow* GetWindow() = 0; | 34 virtual WmWindow* GetWindow() = 0; |
| 35 |
| 36 // Configures |init_params| prior to initializing |widget|. |
| 37 // |shell_container_id| is the id of the container to parent |widget| to. |
| 38 virtual void ConfigureWidgetInitParamsForContainer( |
| 39 views::Widget* widget, |
| 40 int shell_container_id, |
| 41 views::Widget::InitParams* init_params) = 0; |
| 34 }; | 42 }; |
| 35 | 43 |
| 36 } // namespace wm | 44 } // namespace wm |
| 37 } // namespace ash | 45 } // namespace ash |
| 38 | 46 |
| 39 #endif // ASH_WM_COMMON_WM_ROOT_CONTROLLER_H_ | 47 #endif // ASH_WM_COMMON_WM_ROOT_CONTROLLER_H_ |
| OLD | NEW |