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

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

Issue 1943603002: Makes ash/wm/common a library (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: merge again 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
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 "ash/wm/common/ash_wm_common_export.h"
9
10 #include "ash/ash_export.h"
11 #include "ash/wm/common/workspace/workspace_types.h" 9 #include "ash/wm/common/workspace/workspace_types.h"
12 #include "ui/views/widget/widget.h" 10 #include "ui/views/widget/widget.h"
13 11
14 namespace gfx { 12 namespace gfx {
15 class Point; 13 class Point;
16 } 14 }
17 15
18 namespace ash { 16 namespace ash {
19 17
20 class AlwaysOnTopController; 18 class AlwaysOnTopController;
21 19
22 namespace wm { 20 namespace wm {
23 21
24 class WmGlobals; 22 class WmGlobals;
25 class WmRootWindowControllerObserver; 23 class WmRootWindowControllerObserver;
26 class WmShelf; 24 class WmShelf;
27 class WmWindow; 25 class WmWindow;
28 26
29 // Provides state associated with a root of a window hierarchy. 27 // Provides state associated with a root of a window hierarchy.
30 class ASH_EXPORT WmRootWindowController { 28 class ASH_WM_COMMON_EXPORT WmRootWindowController {
31 public: 29 public:
32 virtual ~WmRootWindowController() {} 30 virtual ~WmRootWindowController() {}
33 31
34 static WmRootWindowController* GetWithDisplayId(int64_t id);
35
36 virtual bool HasShelf() = 0; 32 virtual bool HasShelf() = 0;
37 33
38 virtual WmGlobals* GetGlobals() = 0; 34 virtual WmGlobals* GetGlobals() = 0;
39 35
40 virtual WorkspaceWindowState GetWorkspaceWindowState() = 0; 36 virtual WorkspaceWindowState GetWorkspaceWindowState() = 0;
41 37
42 virtual AlwaysOnTopController* GetAlwaysOnTopController() = 0; 38 virtual AlwaysOnTopController* GetAlwaysOnTopController() = 0;
43 39
44 virtual WmShelf* GetShelf() = 0; 40 virtual WmShelf* GetShelf() = 0;
45 41
(...skipping 15 matching lines...) Expand all
61 virtual WmWindow* FindEventTarget(const gfx::Point& location_in_screen) = 0; 57 virtual WmWindow* FindEventTarget(const gfx::Point& location_in_screen) = 0;
62 58
63 virtual void AddObserver(WmRootWindowControllerObserver* observer) = 0; 59 virtual void AddObserver(WmRootWindowControllerObserver* observer) = 0;
64 virtual void RemoveObserver(WmRootWindowControllerObserver* observer) = 0; 60 virtual void RemoveObserver(WmRootWindowControllerObserver* observer) = 0;
65 }; 61 };
66 62
67 } // namespace wm 63 } // namespace wm
68 } // namespace ash 64 } // namespace ash
69 65
70 #endif // ASH_WM_COMMON_WM_ROOT_CONTROLLER_H_ 66 #endif // ASH_WM_COMMON_WM_ROOT_CONTROLLER_H_
OLDNEW
« no previous file with comments | « ash/wm/common/wm_overview_mode_observer.h ('k') | ash/wm/common/wm_root_window_controller_observer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698