| 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_ROOT_WINDOW_CONTROLLER_H_ | 5 #ifndef MASH_WM_ROOT_WINDOW_CONTROLLER_H_ |
| 6 #define MASH_WM_ROOT_WINDOW_CONTROLLER_H_ | 6 #define MASH_WM_ROOT_WINDOW_CONTROLLER_H_ |
| 7 | 7 |
| 8 #include "components/mus/public/cpp/window_observer.h" | 8 #include "components/mus/public/cpp/window_observer.h" |
| 9 #include "components/mus/public/cpp/window_tree_delegate.h" | 9 #include "components/mus/public/cpp/window_tree_delegate.h" |
| 10 #include "components/mus/public/interfaces/window_manager_constants.mojom.h" | 10 #include "components/mus/public/interfaces/window_manager_constants.mojom.h" |
| 11 #include "components/mus/public/interfaces/window_tree_host.mojom.h" | 11 #include "components/mus/public/interfaces/window_tree_host.mojom.h" |
| 12 #include "mash/wm/public/interfaces/container.mojom.h" | 12 #include "mash/wm/public/interfaces/container.mojom.h" |
| 13 #include "mojo/public/cpp/bindings/binding.h" | 13 #include "mojo/public/cpp/bindings/binding.h" |
| 14 | 14 |
| 15 namespace mojo { | 15 namespace mojo { |
| 16 namespace shell { | |
| 17 namespace mojom { | |
| 18 class Shell; | 16 class Shell; |
| 19 } | 17 } |
| 20 } | |
| 21 } | |
| 22 | 18 |
| 23 namespace mus { | 19 namespace mus { |
| 24 class WindowManagerClient; | 20 class WindowManagerClient; |
| 25 } | 21 } |
| 26 | 22 |
| 27 namespace mash { | 23 namespace mash { |
| 28 namespace wm { | 24 namespace wm { |
| 29 | 25 |
| 30 class BackgroundLayout; | 26 class BackgroundLayout; |
| 31 class ScreenlockLayout; | 27 class ScreenlockLayout; |
| (...skipping 13 matching lines...) Expand all Loading... |
| 45 static RootWindowController* CreateUsingWindowTreeHost( | 41 static RootWindowController* CreateUsingWindowTreeHost( |
| 46 WindowManagerApplication* app); | 42 WindowManagerApplication* app); |
| 47 static RootWindowController* CreateFromDisplay( | 43 static RootWindowController* CreateFromDisplay( |
| 48 WindowManagerApplication* app, | 44 WindowManagerApplication* app, |
| 49 mus::mojom::DisplayPtr display, | 45 mus::mojom::DisplayPtr display, |
| 50 mojo::InterfaceRequest<mus::mojom::WindowTreeClient> client_request); | 46 mojo::InterfaceRequest<mus::mojom::WindowTreeClient> client_request); |
| 51 | 47 |
| 52 // Deletes this. | 48 // Deletes this. |
| 53 void Destroy(); | 49 void Destroy(); |
| 54 | 50 |
| 55 mojo::shell::mojom::Shell* GetShell(); | 51 mojo::Shell* GetShell(); |
| 56 | 52 |
| 57 mus::Window* root() { return root_; } | 53 mus::Window* root() { return root_; } |
| 58 | 54 |
| 59 int window_count() { return window_count_; } | 55 int window_count() { return window_count_; } |
| 60 void IncrementWindowCount() { ++window_count_; } | 56 void IncrementWindowCount() { ++window_count_; } |
| 61 | 57 |
| 62 mus::Window* GetWindowForContainer(mojom::Container container); | 58 mus::Window* GetWindowForContainer(mojom::Container container); |
| 63 mus::Window* GetWindowById(mus::Id id); | 59 mus::Window* GetWindowById(mus::Id id); |
| 64 bool WindowIsContainer(const mus::Window* window) const; | 60 bool WindowIsContainer(const mus::Window* window) const; |
| 65 | 61 |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 104 | 100 |
| 105 mus::mojom::DisplayPtr display_; | 101 mus::mojom::DisplayPtr display_; |
| 106 | 102 |
| 107 DISALLOW_COPY_AND_ASSIGN(RootWindowController); | 103 DISALLOW_COPY_AND_ASSIGN(RootWindowController); |
| 108 }; | 104 }; |
| 109 | 105 |
| 110 } // namespace wm | 106 } // namespace wm |
| 111 } // namespace mash | 107 } // namespace mash |
| 112 | 108 |
| 113 #endif // MASH_WM_ROOT_WINDOW_CONTROLLER_H_ | 109 #endif // MASH_WM_ROOT_WINDOW_CONTROLLER_H_ |
| OLD | NEW |