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

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

Issue 1898223002: Removes most aura dependencies from WindowResizer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@remove_aura_from_window_state
Patch Set: nit and merge 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/coordinate_conversion.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>
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_
OLDNEW
« no previous file with comments | « ash/wm/common/wm_globals.h ('k') | ash/wm/coordinate_conversion.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698