| 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 class Shell; | 16 class Connector; |
| 17 } | 17 } |
| 18 | 18 |
| 19 namespace mus { | 19 namespace mus { |
| 20 class WindowManagerClient; | 20 class WindowManagerClient; |
| 21 } | 21 } |
| 22 | 22 |
| 23 namespace mash { | 23 namespace mash { |
| 24 namespace wm { | 24 namespace wm { |
| 25 | 25 |
| 26 class LayoutManager; | 26 class LayoutManager; |
| (...skipping 11 matching lines...) Expand all Loading... |
| 38 static RootWindowController* CreateUsingWindowTreeHost( | 38 static RootWindowController* CreateUsingWindowTreeHost( |
| 39 WindowManagerApplication* app); | 39 WindowManagerApplication* app); |
| 40 static RootWindowController* CreateFromDisplay( | 40 static RootWindowController* CreateFromDisplay( |
| 41 WindowManagerApplication* app, | 41 WindowManagerApplication* app, |
| 42 mus::mojom::DisplayPtr display, | 42 mus::mojom::DisplayPtr display, |
| 43 mojo::InterfaceRequest<mus::mojom::WindowTreeClient> client_request); | 43 mojo::InterfaceRequest<mus::mojom::WindowTreeClient> client_request); |
| 44 | 44 |
| 45 // Deletes this. | 45 // Deletes this. |
| 46 void Destroy(); | 46 void Destroy(); |
| 47 | 47 |
| 48 mojo::Shell* GetShell(); | 48 mojo::Connector* GetConnector(); |
| 49 | 49 |
| 50 mus::Window* root() { return root_; } | 50 mus::Window* root() { return root_; } |
| 51 | 51 |
| 52 int window_count() { return window_count_; } | 52 int window_count() { return window_count_; } |
| 53 void IncrementWindowCount() { ++window_count_; } | 53 void IncrementWindowCount() { ++window_count_; } |
| 54 | 54 |
| 55 mus::Window* GetWindowForContainer(mojom::Container container); | 55 mus::Window* GetWindowForContainer(mojom::Container container); |
| 56 mus::Window* GetWindowById(mus::Id id); | 56 mus::Window* GetWindowById(mus::Id id); |
| 57 bool WindowIsContainer(const mus::Window* window) const; | 57 bool WindowIsContainer(const mus::Window* window) const; |
| 58 | 58 |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 94 | 94 |
| 95 mus::mojom::DisplayPtr display_; | 95 mus::mojom::DisplayPtr display_; |
| 96 | 96 |
| 97 DISALLOW_COPY_AND_ASSIGN(RootWindowController); | 97 DISALLOW_COPY_AND_ASSIGN(RootWindowController); |
| 98 }; | 98 }; |
| 99 | 99 |
| 100 } // namespace wm | 100 } // namespace wm |
| 101 } // namespace mash | 101 } // namespace mash |
| 102 | 102 |
| 103 #endif // MASH_WM_ROOT_WINDOW_CONTROLLER_H_ | 103 #endif // MASH_WM_ROOT_WINDOW_CONTROLLER_H_ |
| OLD | NEW |