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

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

Issue 1907863002: Converts DockedWindowLayoutManager to common ash/wm types (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: comment Created 4 years, 8 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/wm_globals.h ('k') | ash/wm/common/wm_snap_to_pixel_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 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_
OLDNEW
« no previous file with comments | « ash/wm/common/wm_globals.h ('k') | ash/wm/common/wm_snap_to_pixel_layout_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698