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 MASH_WM_BRIDGE_WM_GLOBALS_MUS_H_ | 5 #ifndef MASH_WM_BRIDGE_WM_GLOBALS_MUS_H_ |
6 #define MASH_WM_BRIDGE_WM_GLOBALS_MUS_H_ | 6 #define MASH_WM_BRIDGE_WM_GLOBALS_MUS_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <vector> | 10 #include <vector> |
(...skipping 25 matching lines...) Expand all Loading... |
36 void AddRootWindowController(WmRootWindowControllerMus* controller); | 36 void AddRootWindowController(WmRootWindowControllerMus* controller); |
37 void RemoveRootWindowController(WmRootWindowControllerMus* controller); | 37 void RemoveRootWindowController(WmRootWindowControllerMus* controller); |
38 | 38 |
39 // Returns the ancestor of |window| (including |window|) that is considered | 39 // Returns the ancestor of |window| (including |window|) that is considered |
40 // toplevel. |window| may be null. | 40 // toplevel. |window| may be null. |
41 static WmWindowMus* GetToplevelAncestor(mus::Window* window); | 41 static WmWindowMus* GetToplevelAncestor(mus::Window* window); |
42 | 42 |
43 WmRootWindowControllerMus* GetRootWindowControllerWithDisplayId(int64_t id); | 43 WmRootWindowControllerMus* GetRootWindowControllerWithDisplayId(int64_t id); |
44 | 44 |
45 // WmGlobals: | 45 // WmGlobals: |
| 46 ash::wm::WmWindow* NewContainerWindow() override; |
46 ash::wm::WmWindow* GetFocusedWindow() override; | 47 ash::wm::WmWindow* GetFocusedWindow() override; |
47 ash::wm::WmWindow* GetActiveWindow() override; | 48 ash::wm::WmWindow* GetActiveWindow() override; |
48 ash::wm::WmWindow* GetPrimaryRootWindow() override; | 49 ash::wm::WmWindow* GetPrimaryRootWindow() override; |
49 ash::wm::WmWindow* GetRootWindowForDisplayId(int64_t display_id) override; | 50 ash::wm::WmWindow* GetRootWindowForDisplayId(int64_t display_id) override; |
50 ash::wm::WmWindow* GetRootWindowForNewWindows() override; | 51 ash::wm::WmWindow* GetRootWindowForNewWindows() override; |
51 std::vector<ash::wm::WmWindow*> GetMruWindowList() override; | 52 std::vector<ash::wm::WmWindow*> GetMruWindowList() override; |
52 std::vector<ash::wm::WmWindow*> GetMruWindowListIgnoreModals() override; | 53 std::vector<ash::wm::WmWindow*> GetMruWindowListIgnoreModals() override; |
53 bool IsForceMaximizeOnFirstRun() override; | 54 bool IsForceMaximizeOnFirstRun() override; |
54 bool IsUserSessionBlocked() override; | 55 bool IsUserSessionBlocked() override; |
55 bool IsScreenLocked() override; | 56 bool IsScreenLocked() override; |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
89 | 90 |
90 base::ObserverList<ash::wm::WmActivationObserver> activation_observers_; | 91 base::ObserverList<ash::wm::WmActivationObserver> activation_observers_; |
91 | 92 |
92 DISALLOW_COPY_AND_ASSIGN(WmGlobalsMus); | 93 DISALLOW_COPY_AND_ASSIGN(WmGlobalsMus); |
93 }; | 94 }; |
94 | 95 |
95 } // namespace wm | 96 } // namespace wm |
96 } // namespace mash | 97 } // namespace mash |
97 | 98 |
98 #endif // MASH_WM_BRIDGE_WM_GLOBALS_MUS_H_ | 99 #endif // MASH_WM_BRIDGE_WM_GLOBALS_MUS_H_ |
OLD | NEW |