| 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 ASH_MUS_BRIDGE_WM_SHELL_MUS_H_ | 5 #ifndef ASH_MUS_BRIDGE_WM_SHELL_MUS_H_ |
| 6 #define ASH_MUS_BRIDGE_WM_SHELL_MUS_H_ | 6 #define ASH_MUS_BRIDGE_WM_SHELL_MUS_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <vector> | 10 #include <vector> |
| 11 | 11 |
| 12 #include "ash/common/wm_shell.h" | 12 #include "ash/common/wm_shell.h" |
| 13 #include "base/macros.h" | 13 #include "base/macros.h" |
| 14 #include "base/observer_list.h" | 14 #include "base/observer_list.h" |
| 15 #include "services/ui/public/cpp/window_tree_client_observer.h" | 15 #include "services/ui/public/cpp/window_tree_client_observer.h" |
| 16 | 16 |
| 17 namespace ui { | 17 namespace ui { |
| 18 class WindowTreeClient; | 18 class WindowTreeClient; |
| 19 } | 19 } |
| 20 | 20 |
| 21 namespace ash { | 21 namespace ash { |
| 22 namespace mus { | 22 namespace mus { |
| 23 | 23 |
| 24 class WmRootWindowControllerMus; | 24 class WmRootWindowControllerMus; |
| 25 class WmWindowMus; | 25 class WmWindowMus; |
| 26 | 26 |
| 27 // WmShell implementation for mus. | 27 // WmShell implementation for mus. |
| 28 class WmShellMus : public WmShell, public ::ui::WindowTreeClientObserver { | 28 class WmShellMus : public WmShell, public ::ui::WindowTreeClientObserver { |
| 29 public: | 29 public: |
| 30 explicit WmShellMus(::ui::WindowTreeClient* client); | 30 WmShellMus(ShellDelegate* delegate, ::ui::WindowTreeClient* client); |
| 31 ~WmShellMus() override; | 31 ~WmShellMus() override; |
| 32 | 32 |
| 33 static WmShellMus* Get(); | 33 static WmShellMus* Get(); |
| 34 | 34 |
| 35 void AddRootWindowController(WmRootWindowControllerMus* controller); | 35 void AddRootWindowController(WmRootWindowControllerMus* controller); |
| 36 void RemoveRootWindowController(WmRootWindowControllerMus* controller); | 36 void RemoveRootWindowController(WmRootWindowControllerMus* controller); |
| 37 | 37 |
| 38 // Returns the ancestor of |window| (including |window|) that is considered | 38 // Returns the ancestor of |window| (including |window|) that is considered |
| 39 // toplevel. |window| may be null. | 39 // toplevel. |window| may be null. |
| 40 static WmWindowMus* GetToplevelAncestor(::ui::Window* window); | 40 static WmWindowMus* GetToplevelAncestor(::ui::Window* window); |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 100 | 100 |
| 101 base::ObserverList<WmActivationObserver> activation_observers_; | 101 base::ObserverList<WmActivationObserver> activation_observers_; |
| 102 | 102 |
| 103 DISALLOW_COPY_AND_ASSIGN(WmShellMus); | 103 DISALLOW_COPY_AND_ASSIGN(WmShellMus); |
| 104 }; | 104 }; |
| 105 | 105 |
| 106 } // namespace mus | 106 } // namespace mus |
| 107 } // namespace ash | 107 } // namespace ash |
| 108 | 108 |
| 109 #endif // ASH_MUS_BRIDGE_WM_SHELL_MUS_H_ | 109 #endif // ASH_MUS_BRIDGE_WM_SHELL_MUS_H_ |
| OLD | NEW |