Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(56)

Side by Side Diff: ash/wm/common/wm_root_window_controller.h

Issue 1914093002: Refactors DockedWindowLayoutManager in terms of ash/wm/common (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@nuke_aura_window
Patch Set: comment Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « ash/wm/common/shelf/wm_shelf_types.h ('k') | ash/wm/dock/docked_window_layout_manager.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 namespace wm { 15 namespace wm {
16 16
17 class WmGlobals; 17 class WmGlobals;
18 class WmRootWindowControllerObserver; 18 class WmRootWindowControllerObserver;
19 class WmShelf;
19 class WmWindow; 20 class WmWindow;
20 21
21 // Provides state associated with a root of a window hierarchy. 22 // Provides state associated with a root of a window hierarchy.
22 class ASH_EXPORT WmRootWindowController { 23 class ASH_EXPORT WmRootWindowController {
23 public: 24 public:
24 virtual ~WmRootWindowController() {} 25 virtual ~WmRootWindowController() {}
25 26
26 static WmRootWindowController* GetWithDisplayId(int64_t id); 27 static WmRootWindowController* GetWithDisplayId(int64_t id);
27 28
28 virtual bool HasShelf() = 0; 29 virtual bool HasShelf() = 0;
29 30
30 virtual WmGlobals* GetGlobals() = 0; 31 virtual WmGlobals* GetGlobals() = 0;
31 32
32 virtual WorkspaceWindowState GetWorkspaceWindowState() = 0; 33 virtual WorkspaceWindowState GetWorkspaceWindowState() = 0;
33 34
35 virtual WmShelf* GetShelf() = 0;
36
34 // Returns the window associated with this WmRootWindowController. 37 // Returns the window associated with this WmRootWindowController.
35 virtual WmWindow* GetWindow() = 0; 38 virtual WmWindow* GetWindow() = 0;
36 39
37 // Configures |init_params| prior to initializing |widget|. 40 // Configures |init_params| prior to initializing |widget|.
38 // |shell_container_id| is the id of the container to parent |widget| to. 41 // |shell_container_id| is the id of the container to parent |widget| to.
39 virtual void ConfigureWidgetInitParamsForContainer( 42 virtual void ConfigureWidgetInitParamsForContainer(
40 views::Widget* widget, 43 views::Widget* widget,
41 int shell_container_id, 44 int shell_container_id,
42 views::Widget::InitParams* init_params) = 0; 45 views::Widget::InitParams* init_params) = 0;
43 46
44 virtual void AddObserver(WmRootWindowControllerObserver* observer) = 0; 47 virtual void AddObserver(WmRootWindowControllerObserver* observer) = 0;
45 virtual void RemoveObserver(WmRootWindowControllerObserver* observer) = 0; 48 virtual void RemoveObserver(WmRootWindowControllerObserver* observer) = 0;
46 }; 49 };
47 50
48 } // namespace wm 51 } // namespace wm
49 } // namespace ash 52 } // namespace ash
50 53
51 #endif // ASH_WM_COMMON_WM_ROOT_CONTROLLER_H_ 54 #endif // ASH_WM_COMMON_WM_ROOT_CONTROLLER_H_
OLDNEW
« no previous file with comments | « ash/wm/common/shelf/wm_shelf_types.h ('k') | ash/wm/dock/docked_window_layout_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698