| 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 27 matching lines...) Expand all Loading... |
| 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* GetFocusedWindow() override; | 46 ash::wm::WmWindow* GetFocusedWindow() override; |
| 47 ash::wm::WmWindow* GetActiveWindow() override; | 47 ash::wm::WmWindow* GetActiveWindow() override; |
| 48 ash::wm::WmWindow* GetPrimaryRootWindow() override; |
| 48 ash::wm::WmWindow* GetRootWindowForDisplayId(int64_t display_id) override; | 49 ash::wm::WmWindow* GetRootWindowForDisplayId(int64_t display_id) override; |
| 49 ash::wm::WmWindow* GetRootWindowForNewWindows() override; | 50 ash::wm::WmWindow* GetRootWindowForNewWindows() override; |
| 51 std::vector<ash::wm::WmWindow*> GetMruWindowList() override; |
| 50 std::vector<ash::wm::WmWindow*> GetMruWindowListIgnoreModals() override; | 52 std::vector<ash::wm::WmWindow*> GetMruWindowListIgnoreModals() override; |
| 51 bool IsForceMaximizeOnFirstRun() override; | 53 bool IsForceMaximizeOnFirstRun() override; |
| 52 bool IsUserSessionBlocked() override; | 54 bool IsUserSessionBlocked() override; |
| 53 bool IsScreenLocked() override; | 55 bool IsScreenLocked() override; |
| 54 void LockCursor() override; | 56 void LockCursor() override; |
| 55 void UnlockCursor() override; | 57 void UnlockCursor() override; |
| 56 std::vector<ash::wm::WmWindow*> GetAllRootWindows() override; | 58 std::vector<ash::wm::WmWindow*> GetAllRootWindows() override; |
| 57 void RecordUserMetricsAction(ash::wm::WmUserMetricsAction action) override; | 59 void RecordUserMetricsAction(ash::wm::WmUserMetricsAction action) override; |
| 58 std::unique_ptr<ash::WindowResizer> CreateDragWindowResizer( | 60 std::unique_ptr<ash::WindowResizer> CreateDragWindowResizer( |
| 59 std::unique_ptr<ash::WindowResizer> next_window_resizer, | 61 std::unique_ptr<ash::WindowResizer> next_window_resizer, |
| (...skipping 27 matching lines...) Expand all Loading... |
| 87 | 89 |
| 88 base::ObserverList<ash::wm::WmActivationObserver> activation_observers_; | 90 base::ObserverList<ash::wm::WmActivationObserver> activation_observers_; |
| 89 | 91 |
| 90 DISALLOW_COPY_AND_ASSIGN(WmGlobalsMus); | 92 DISALLOW_COPY_AND_ASSIGN(WmGlobalsMus); |
| 91 }; | 93 }; |
| 92 | 94 |
| 93 } // namespace wm | 95 } // namespace wm |
| 94 } // namespace mash | 96 } // namespace mash |
| 95 | 97 |
| 96 #endif // MASH_WM_BRIDGE_WM_GLOBALS_MUS_H_ | 98 #endif // MASH_WM_BRIDGE_WM_GLOBALS_MUS_H_ |
| OLD | NEW |